Skip to content
On this page

mxcad API 文档 / 3d / MxApp3DType

Class: MxApp3DType

3d.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

NameType
Keyextends "eventModesSelected" | "eventAddToTree" | "eventRemoveFromTree" | "eventFileSave" | "eventRebuildTree" | "eventUpdatePointer" | "eventUpdateViewSize"

Parameters

NameTypeDescription
eventnumber | Key事件名称
...dataParameters<{ 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

NameType
impany

Returns

void


off

off<Key>(event, callback?): void

销毁事件

Type parameters

NameType
Keyextends "eventModesSelected" | "eventAddToTree" | "eventRemoveFromTree" | "eventFileSave" | "eventRebuildTree" | "eventUpdatePointer" | "eventUpdateViewSize"

Parameters

NameTypeDescription
eventKey事件名称
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

NameType
Keyextends "eventModesSelected" | "eventAddToTree" | "eventRemoveFromTree" | "eventFileSave" | "eventRebuildTree" | "eventUpdatePointer" | "eventUpdateViewSize"

Parameters

NameTypeDescription
eventKey事件名称
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