new ClippingPlaneEditor(project, optionsopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
project |
Project | 工程对象 |
|||||||||||||||||||||
options |
Object |
<optional> |
包含以下选项的参数 Properties
|
Members
-
axisLength :Number
-
旋转轴半径,默认根据工程范围设置
-
clippingPlaneCenter :Cartesian3
-
获取世界坐标系下的剖切面中心
-
clippingPlaneWorldNormal :Cartesian3
-
获取世界坐标系下的剖切面法向量
-
dragEnd :Event
-
剖切面拖动结束的事件
-
dragStart :Event
-
剖切面拖动开始的事件
-
rotateSpeed :Number
-
旋转速度
- Default Value:
- 1
Methods
-
addClippingPlane(type, center, dimensions)
-
添加剖切面,比如X,Y,Z,XYZ
Parameters:
Name Type Description type
String "X","Y","Z","XYZ"(剖切盒)
center
Cartesian3 剖切面或者剖切盒中心点,世界坐标
dimensions
Cartesian3 剖切盒长宽高,单位米
-
addClippingPlaneByWorldNormal(center, normal, dimensionsopt)
-
根据剖切面的大小和长宽设置剖切面的
Parameters:
Name Type Attributes Description center
Cartesian3 剖切面中心点(世界坐标系)
normal
Cartesian3 剖切面法向量(世界坐标系)
dimensions
Cartesian2 <optional>
剖切面长宽,单位米
-
destroy()
-
销毁clippingPlaneEditor
-
setPlaneVisibility(value, faces)
-
Parameters:
Name Type Description value
Boolean 是否显示
faces
Array.<String> ['X','Y','Z','-X','-Y','-Z']