Frame / SView / Actions / SectionAction
Class: SectionAction
Memberof
SView.Actions
Description
剖切Action
Export
Hierarchy
-
Action
↳
SectionAction
Table of contents
Constructors
Properties
Methods
- addSelectedShape
- clearSelectedShapes
- execute
- getEvents
- getId
- getSection
- getSelectedShapes
- registerEvent
- removeEvent
- removeSelectedShape
- setDirection
- setId
- setPosition
- setScene
- setSection
- setVisible
Constructors
constructor
• new SectionAction(isHide
, type?
): SectionAction
Parameters
Name | Type |
---|---|
isHide | boolean |
type? | ClipType |
Returns
Memberof
SectionAction
Overrides
M3D.Actions.Action.constructor
Properties
id
• id: number
Inherited from
M3D.Actions.Action.id
count
▪ Static
count: number
Inherited from
M3D.Actions.Action.count
Methods
addSelectedShape
▸ addSelectedShape(shape
): void
Parameters
Name | Type |
---|---|
shape | Shape |
Returns
void
Description
添加指定剖切的模型对象
Memberof
SectionAction
clearSelectedShapes
▸ clearSelectedShapes(): void
Returns
void
Description
清空指定剖模型对象
Memberof
SectionAction
execute
▸ execute(): ActionState
Returns
ActionState
Description
执行Action
Inherited from
M3D.Actions.Action.execute
getEvents
▸ getEvents(): M3DEvent
[]
Returns
M3DEvent
[]
Description
获得事件列表
Inherited from
M3D.Actions.Action.getEvents
getId
▸ getId(): number
Returns
number
Description
获取id
Inherited from
M3D.Actions.Action.getId
getSection
▸ getSection(): Section
Returns
Section
Description
获取剖切对象
Memberof
SectionAction
getSelectedShapes
▸ getSelectedShapes(): Shape
[]
Returns
Shape
[]
Description
获取指定剖切对象
Memberof
SectionAction
registerEvent
▸ registerEvent(event
): void
Parameters
Name | Type | Description |
---|---|---|
event | M3DEvent | M3D事件 |
Returns
void
Description
注册事件
Inherited from
M3D.Actions.Action.registerEvent
removeEvent
▸ removeEvent(): void
Returns
void
Description
删除事件
Inherited from
M3D.Actions.Action.removeEvent
removeSelectedShape
▸ removeSelectedShape(shape
): boolean
Parameters
Name | Type |
---|---|
shape | Shape |
Returns
boolean
Description
删除指定剖模型对象
Memberof
SectionAction