Class: Section
Memberof
M3D.Shapes
Description
剖面
Hierarchy
-
↳
Section
Table of contents
Constructors
Properties
Accessors
Methods
- addEffect
- addLine
- addNewPlane
- addPlane
- addSelectedShape
- clearLines
- clearPlanes
- clearSelectedShapes
- enablePlanes
- enableSectionBox
- getAlpha
- getBoundingBox
- getColor
- getDrawables
- getEffect
- getEnable
- getEvents
- getId
- getIsFrontShow
- getIsReverseClipping
- getIsShowCappingPlane
- getLiens
- getLocalTransform
- getName
- getNeedClip
- getObjectId
- getPlaneById
- getPlaneByObjectId
- getPlaneList
- getPosition
- getProperties
- getProto
- getRenderShapes
- getRotation
- getScene
- getSectionBox
- getSelectedShapes
- getShapeType
- getShapes
- getShowClipPlane
- getShowPlaneRect
- getType
- getWorldBoundingBox
- getWorldTransform
- isPreSelected
- isSelected
- isVisible
- post
- postUpdateMessage
- registerEvent
- removeEffect
- removeEvent
- removeLine
- removePlane
- removeSelectedShape
- send
- sendClipMessage
- sendEffectMessage
- setAlpha
- setColor
- setDrawRection
- setEffect
- setFrontShow
- setId
- setIsReverseClipping
- setIsShowCappingPlane
- setName
- setNeedClip
- setObjectId
- setPosition
- setScene
- setSectionBox
- setSelected
- setShapeType
- setShowClipPlane
- setShowPlaneRect
- setShowSectionLine
- setTransform
- setVisible
- setWorldTransform
- update
- useSelected
Constructors
constructor
• new Section(): Section
Returns
Description
构造函数
Overrides
Properties
id
• id: number
Inherited from
count
▪ Static
count: number
Inherited from
isProto
▪ Static
isProto: string
Inherited from
pVertexHeader
▪ Static
pVertexHeader: string
Inherited from
Accessors
isProto
• get
isProto(): boolean
Returns
boolean
Description
获取是否为原型对象
Inherited from
ComplexShape.isProto
• set
isProto(v
): void
Parameters
Name | Type |
---|---|
v | boolean |
Returns
void
Description
设置是否为原型对象
Inherited from
ComplexShape.isProto
Methods
addEffect
▸ addEffect(effectType
): void
Parameters
Name | Type |
---|---|
effectType | number |
Returns
void
Description
添加特效效果
Inherited from
addLine
▸ addLine(line
): void
Parameters
Name | Type | Description |
---|---|---|
line | SectionLine | SectionLine类型 |
Returns
void
Description
添加剖切线
addNewPlane
▸ addNewPlane(plane
): boolean
Parameters
Name | Type | Description |
---|---|---|
plane | SectionPlane | 剖切面对象 |
Returns
boolean
Description
添加剖切面对象
addPlane
▸ addPlane(plane
): boolean
Parameters
Name | Type | Description |
---|---|---|
plane | SectionPlane | 剖切面对象 |
Returns
boolean
Description
添加剖切面对象
addSelectedShape
▸ addSelectedShape(shape
): void
Parameters
Name | Type |
---|---|
shape | Shape |
Returns
void
Description
添加选择剖切的对象
clearLines
▸ clearLines(): void
Returns
void
Description
清空剖切线
clearPlanes
▸ clearPlanes(): void
Returns
void
Description
清除所有平面
clearSelectedShapes
▸ clearSelectedShapes(): void
Returns
void
Description
清空所有的选择剖切的对象
enablePlanes
▸ enablePlanes(enable
): void
Parameters
Name | Type | Description |
---|---|---|
enable | boolean | 可用 yes;不可用 false |
Returns
void
Description
设置所有平面是否可用
enableSectionBox
▸ enableSectionBox(enable
): boolean
Parameters
Name | Type |
---|---|
enable | boolean |
Returns
boolean
Description
设置包围盒剖切是否启用
getAlpha
▸ getAlpha(): number
Returns
number
Description
获取透明度
Inherited from
getBoundingBox
▸ getBoundingBox(): BoundingBox
Returns
Description
获取包围盒
Inherited from
getColor
▸ getColor(): Color
Returns
Description
获取颜色
Inherited from
getDrawables
▸ getDrawables(): void
Returns
void
Description
获取渲染数据
Inherited from
getEffect
▸ getEffect(): number
Returns
number
Description
获取效果
Inherited from
getEnable
▸ getEnable(): boolean
Returns
boolean
Description
获取剖切是否启用
getEvents
▸ getEvents(): M3DEvent
[]
Returns
M3DEvent
[]
Description
获得事件列表
Inherited from
getId
▸ getId(): number
Returns
number
Description
获取id
Inherited from
getIsFrontShow
▸ getIsFrontShow(): boolean
Returns
boolean
Description
获取是否前端显示
Inherited from
getIsReverseClipping
▸ getIsReverseClipping(): boolean
Returns
boolean
是否反向剖切,boolean类型
Description
获取是否反向剖切
getIsShowCappingPlane
▸ getIsShowCappingPlane(): boolean
Returns
boolean
是否显示剖切盖面,boolean类型
Description
获取是否显示剖切盖面
getLiens
▸ getLiens(): SectionLine
[]
Returns
剖切线的数组,SectionLine类型
Description
获取所有剖切线
getLocalTransform
▸ getLocalTransform(): Matrix4
Returns
Description
获取shape的局部矩阵
Inherited from
ComplexShape.getLocalTransform
getName
▸ getName(): string
Returns
string
Description
获取实例名称
Inherited from
getNeedClip
▸ getNeedClip(): boolean
Returns
boolean
Description
获取是否需要剖切
Inherited from
getObjectId
▸ getObjectId(): number
Returns
number
Description
获取ObjectId
Inherited from
getPlaneById
▸ getPlaneById(sectionPlaneId
): SectionPlane
Parameters
Name | Type |
---|---|
sectionPlaneId | number |
Returns
SectionPlane对象
Description
根据ID获取剖面
getPlaneByObjectId
▸ getPlaneByObjectId(objectId
): SectionPlane
Parameters
Name | Type |
---|---|
objectId | number |
Returns
SectionPlane对象
Description
根据ObjectId获取剖面
getPlaneList
▸ getPlaneList(): SectionPlane
[]
Returns
剖切面列表
Description
获取剖切面列表
getPosition
▸ getPosition(): Vector3
Returns
Description
获取位置
Inherited from
getProperties
▸ getProperties(): PropertySet
Returns
Description
获取属性管理器
Inherited from
getProto
▸ getProto(): Shape
Returns
Description
获取原型
Inherited from
getRenderShapes
▸ getRenderShapes(): RenderableShape
[]
Returns
Description
获取可绘制对象列表
Overrides
getRotation
▸ getRotation(): Quaternion
Returns
Description
获取空间旋转信息
Inherited from
getScene
▸ getScene(): Scene
Returns
场景对象
Description
获取场景对象
Inherited from
getSectionBox
▸ getSectionBox(): SectionBox
Returns
Description
获取包围盒剖切对象
getSelectedShapes
▸ getSelectedShapes(): Shape
[]
Returns
Shape
[]
所有的选择剖切的对象
Description
返回所有的选择剖切的对象
getShapeType
▸ getShapeType(): ShapeType
Returns
Description
获取Shape类型
Inherited from
getShapes
▸ getShapes(): Shape
[]
Returns
Shape
[]
Description
获取普通对象
Inherited from
getShowClipPlane
▸ getShowClipPlane(): boolean
Returns
boolean
是否显示剖切面,boolean类型
Description
获取是否显示剖切面
getShowPlaneRect
▸ getShowPlaneRect(): boolean
Returns
boolean
是否显示剖切轮廓线,boolean类型
Description
获取是否显示平面长方形
getType
▸ getType(): ShapeType
Returns
Shape类型
Description
获取Shape类型
getWorldBoundingBox
▸ getWorldBoundingBox(): BoundingBox
Returns
Description
获取世界包围盒
Inherited from
ComplexShape.getWorldBoundingBox
getWorldTransform
▸ getWorldTransform(): Matrix4
Returns
Description
获取shape的世界矩阵
Inherited from
ComplexShape.getWorldTransform
isPreSelected
▸ isPreSelected(): boolean
Returns
boolean
Description
是否预选中
Inherited from
isSelected
▸ isSelected(): boolean
Returns
boolean
Description
是否被选中