mxcad API 文档 / MxApp3DType
Class: MxApp3DType
MxCppType 类
Hierarchy
default
<{eventAddToTree
: (node
:string
) =>void
;eventFileSave
: (fileName
:string
) =>void
;eventModesSelected
: (ids
:number
[]) =>void
;eventRebuildTree
: (tree_str
:string
) =>void
;eventRemoveFromTree
: (ids
:number
[]) =>void
;eventUpdatePointer
: (pointer
:number
[]) =>void
;eventUpdateViewSize
: (pointer
:number
[]) =>void
}>↳
MxApp3DType
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new MxApp3DType()
Inherited from
PubSub<{ eventModesSelected: (ids: number[]) => void; eventAddToTree: (node: string) => void; eventRemoveFromTree: (ids: number[]) => void; eventFileSave: (fileName: string) => void; eventRebuildTree: (tree_str: string) => void; eventUpdatePointer: (pointer: number[]) => void; eventUpdateViewSize: (pointer: number[]) => void; }>.constructor
Properties
cpp_app
• cpp_app: any
events
• events: Object
Index signature
▪ [x: EventType
]: Events
[keyof Events
][]
Inherited from
PubSub.events
globalMethods
• globalMethods: any
imp
• Optional
imp: any
tool
• tool: any
Methods
emit
▸ emit<Key
>(event
, ...data
): void
发布
Type parameters
Name | Type |
---|---|
Key | extends "eventModesSelected" | "eventAddToTree" | "eventRemoveFromTree" | "eventFileSave" | "eventRebuildTree" | "eventUpdatePointer" | "eventUpdateViewSize" |
Parameters
Name | Type | Description |
---|---|---|
event | number | Key | 事件名称 |
...data | Parameters <{ eventAddToTree : (node : string ) => void ; eventFileSave : (fileName : string ) => void ; eventModesSelected : (ids : number []) => void ; eventRebuildTree : (tree_str : string ) => void ; eventRemoveFromTree : (ids : number []) => void ; eventUpdatePointer : (pointer : number []) => void ; eventUpdateViewSize : (pointer : number []) => void }[Key ]> | 载荷 |
Returns
void
Inherited from
PubSub.emit
init
▸ init(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void
off
▸ off<Key
>(event
, callback?
): void
销毁事件
Type parameters
Name | Type |
---|---|
Key | extends "eventModesSelected" | "eventAddToTree" | "eventRemoveFromTree" | "eventFileSave" | "eventRebuildTree" | "eventUpdatePointer" | "eventUpdateViewSize" |
Parameters
Name | Type | Description |
---|---|---|
event | Key | 事件名称 |
callback? | (ids : number []) => void | (node : string ) => void | (ids : number []) => void | (fileName : string ) => void | (tree_str : string ) => void | (pointer : number []) => void | (pointer : number []) => void | 事件方法 |
Returns
void
Inherited from
PubSub.off
on
▸ on<Key
>(event
, callback
): void
订阅
Type parameters
Name | Type |
---|---|
Key | extends "eventModesSelected" | "eventAddToTree" | "eventRemoveFromTree" | "eventFileSave" | "eventRebuildTree" | "eventUpdatePointer" | "eventUpdateViewSize" |
Parameters
Name | Type | Description |
---|---|---|
event | Key | 事件名称 |
callback | (ids : number []) => void | (node : string ) => void | (ids : number []) => void | (fileName : string ) => void | (tree_str : string ) => void | (pointer : number []) => void | (pointer : number []) => void | 事件回调 |
Returns
void
Inherited from
PubSub.on