Skip to main content

Class: SwitchNodeBasePlugin

Plugins.SwitchNodeBasePlugin

Hierarchy

Accessors

dirty

get dirty(): boolean

Returns

boolean

Inherited from

AViewerPlugin.dirty

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

AViewerPlugin.dirty


viewer

get viewer(): undefined | ViewerApp

Returns

undefined | ViewerApp

Inherited from

AViewerPlugin.viewer

Methods

onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

AViewerPlugin.onDispose


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Inherited from

AViewerPlugin.toJSON


fromJSON

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

Parameters

NameType
dataany
meta?any

Returns

null | SwitchNodeBasePlugin | Promise<null | SwitchNodeBasePlugin>

Inherited from

AViewerPlugin.fromJSON


exportState

exportState(): any

Returns

any

Inherited from

AViewerPlugin.exportState


importState

importState(state): Promise<void>

Parameters

NameType
stateany

Returns

Promise<void>

Inherited from

AViewerPlugin.importState


storeState

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

Parameters

NameType
prefix?string
storage?Storage
data?any

Returns

void

Inherited from

AViewerPlugin.storeState


loadState

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

Parameters

NameType
prefix?string
storage?Storage

Returns

Promise<void>

Inherited from

AViewerPlugin.loadState


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Overrides

AViewerPlugin.onAdded


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Overrides

AViewerPlugin.onRemove


refreshUi

refreshUi(): void

Returns

void


snapIcons

snapIcons(): void

Snapshots icons and puts in the userdata.__icon

Returns

void


_storeKey

Protected _storeKey(prefix?): string

Parameters

NameType
prefix?string

Returns

string

Inherited from

AViewerPlugin._storeKey


_refreshUi

Protected _refreshUi(): boolean

Returns

boolean


_selectedSwitchNode

Protected _selectedSwitchNode(): undefined | Object3D<Object3DEventMap>

Returns

undefined | Object3D<Object3DEventMap>

Properties

enabled

enabled: boolean = true

Overrides

AViewerPlugin.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


dependencies

dependencies: typeof AssetManagerPlugin[]


variations

variations: ObjectSwitchNode[] = []


uiConfig

uiConfig: UiObjectConfig<any, string>


_dirty

Protected _dirty: boolean = false

Inherited from

AViewerPlugin._dirty


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

AViewerPlugin._viewer

Constructors

constructor

new SwitchNodeBasePlugin()

Overrides

AViewerPlugin.constructor