Frame / SView / Actions / CreateModelViewAction
Class: CreateModelViewAction
SView.Actions.CreateModelViewAction
Memberof
SVie.Actions
Description
创建视图Action
Export
Implements
Hierarchy
-
Action
↳
CreateModelViewAction
Implements
Publisher
Table of contents
Constructors
Properties
- currentModelViewId
- currentModelViewName
- currentModelViewServerId
- currentModelViewSnapshotUrl
- id
- modelView
- modelViews
- scene
- count
Methods
- addModelView
- addModelViewList
- addServerModelView
- execute
- getAnnotationIdsRelationModelView
- getEvents
- getId
- getModelBoardIdsRelationModelView
- getPMIIdsRelationModelView
- getSectionPlaneIdsRelationModelView
- registerEvent
- removeEvent
- setId
- setParameter
- setScene
- updateViewByCurrentScene
Constructors
constructor
• new CreateModelViewAction(): CreateModelViewAction
Returns
Memberof
CreateModelViewAction
Overrides
M3D.Actions.Action.constructor
Properties
currentModelViewId
• currentModelViewId: string
currentModelViewName
• currentModelViewName: string
currentModelViewServerId
• currentModelViewServerId: string
currentModelViewSnapshotUrl
• currentModelViewSnapshotUrl: any
id
• id: number
Inherited from
M3D.Actions.Action.id
modelView
• modelView: ModelView
modelViews
• modelViews: ModelViews
scene
• scene: Scene
count
▪ Static
count: number
Inherited from
M3D.Actions.Action.count
Methods
addModelView
▸ addModelView(): void
Returns
void
Description
添加视图
Memberof
CreateModelViewAction
addModelViewList
▸ addModelViewList(modelView
): void
Parameters
Name | Type |
---|---|
modelView | ModelView |
Returns
void
Description
将视图添加至视图列表
Memberof
CreateModelViewAction
addServerModelView
▸ addServerModelView(isResetImage?
, modelView?
): Promise
<string
>
Parameters
Name | Type | Description |
---|---|---|
isResetImage? | boolean | |
modelView? | any | 视图对象,若不传,则使用Action中的modelView |
Returns
Promise
<string
>
结果为‘0’时添加成功
Description
添加在线视图
Memberof
CreateModelViewAction
execute
▸ execute(): ActionState
Returns
ActionState
Description
执行Action
Inherited from
M3D.Actions.Action.execute
getAnnotationIdsRelationModelView
▸ getAnnotationIdsRelationModelView(): void
Returns
void
Description
获得视图关联的AnnotationID
Memberof
CreateModelViewAction
getEvents
▸ getEvents(): M3DEvent
[]
Returns
M3DEvent
[]
Description
获得事件列表
Inherited from
M3D.Actions.Action.getEvents