Skip to main content

Class: SwitchNodePlugin

Plugins.SwitchNodePlugin

Hierarchy​

Properties​

PluginType​

▪ Static Readonly PluginType: "SwitchNodePlugin"


enabled​

• enabled: boolean = true

Inherited from​

SwitchNodeBasePlugin.enabled


autoSnapIcons​

• autoSnapIcons: boolean = false

If true, the plugin will automatically take snapshots of the icons in _refreshUi and put them in the object.userdata.__icon Otherwise, call snapIcons manually

Inherited from​

SwitchNodeBasePlugin.autoSnapIcons


dependencies​

• dependencies: typeof AssetManagerPlugin[]

Inherited from​

SwitchNodeBasePlugin.dependencies


variations​

• variations: ObjectSwitchNode[] = []

Inherited from​

SwitchNodeBasePlugin.variations


uiConfig​

• uiConfig: UiObjectConfig<any, string>

Inherited from​

SwitchNodeBasePlugin.uiConfig


_dirty​

• Protected _dirty: boolean = false

Inherited from​

SwitchNodeBasePlugin._dirty


_viewer​

• Protected Optional _viewer: ViewerApp

Inherited from​

SwitchNodeBasePlugin._viewer

Accessors​

dirty​

• get dirty(): boolean

Returns​

boolean

Inherited from​

SwitchNodeBasePlugin.dirty

• set dirty(value): void

Parameters​

NameType
valueboolean

Returns​

void

Inherited from​

SwitchNodeBasePlugin.dirty


viewer​

• get viewer(): undefined | ViewerApp

Returns​

undefined | ViewerApp

Inherited from​

SwitchNodeBasePlugin.viewer

Methods​

onDispose​

▸ onDispose(viewer): Promise<void>

Parameters​

NameType
viewerViewerApp

Returns​

Promise<void>

Inherited from​

SwitchNodeBasePlugin.onDispose


toJSON​

▸ toJSON(meta?): any

Parameters​

NameType
meta?any

Returns​

any

Inherited from​

SwitchNodeBasePlugin.toJSON


fromJSON​

▸ fromJSON(data, meta?): null | SwitchNodePlugin | Promise<null | SwitchNodePlugin>

Parameters​

NameType
dataany
meta?any

Returns​

null | SwitchNodePlugin | Promise<null | SwitchNodePlugin>

Inherited from​

SwitchNodeBasePlugin.fromJSON


exportState​

▸ exportState(): any

Returns​

any

Inherited from​

SwitchNodeBasePlugin.exportState


importState​

▸ importState(state): Promise<void>

Parameters​

NameType
stateany

Returns​

Promise<void>

Inherited from​

SwitchNodeBasePlugin.importState


storeState​

▸ storeState(prefix?, storage?, data?): void

Parameters​

NameType
prefix?string
storage?Storage
data?any

Returns​

void

Inherited from​

SwitchNodeBasePlugin.storeState


loadState​

▸ loadState(prefix?, storage?): Promise<void>

Parameters​

NameType
prefix?string
storage?Storage

Returns​

Promise<void>

Inherited from​

SwitchNodeBasePlugin.loadState


onAdded​

▸ onAdded(viewer): Promise<void>

Parameters​

NameType
viewerViewerApp

Returns​

Promise<void>

Inherited from​

SwitchNodeBasePlugin.onAdded


onRemove​

▸ onRemove(viewer): Promise<void>

Parameters​

NameType
viewerViewerApp

Returns​

Promise<void>

Inherited from​

SwitchNodeBasePlugin.onRemove


refreshUi​

▸ refreshUi(): void

Returns​

void

Inherited from​

SwitchNodeBasePlugin.refreshUi


snapIcons​

▸ snapIcons(): void

Snapshots icons and puts in the userdata.__icon

Returns​

void

Inherited from​

SwitchNodeBasePlugin.snapIcons


_storeKey​

▸ Protected _storeKey(prefix?): string

Parameters​

NameType
prefix?string

Returns​

string

Inherited from​

SwitchNodeBasePlugin._storeKey


_selectedSwitchNode​

▸ Protected _selectedSwitchNode(): undefined | Object3D<Object3DEventMap>

Returns​

undefined | Object3D<Object3DEventMap>

Inherited from​

SwitchNodeBasePlugin._selectedSwitchNode


_refreshUi​

▸ Protected _refreshUi(): boolean

Returns​

boolean

Overrides​

SwitchNodeBasePlugin._refreshUi

Constructors​

constructor​

• new SwitchNodePlugin()

Inherited from​

SwitchNodeBasePlugin.constructor