Class: SwitchNodePlugin
Plugins.SwitchNodePlugin
Hierarchy
↳
SwitchNodePlugin
Properties
PluginType
▪ Static Readonly PluginType: "SwitchNodePlugin"
enabled
• enabled: boolean = true
Inherited from
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
_dirty
• Protected _dirty: boolean = false
Inherited from
_viewer
• Protected Optional _viewer: ViewerApp
Inherited from
Accessors
dirty
• get dirty(): boolean
Returns
boolean
Inherited from
SwitchNodeBasePlugin.dirty
• set dirty(value): void
Parameters
| Name | Type |
|---|---|
value | boolean |
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
| Name | Type |
|---|---|
viewer | ViewerApp |
Returns
Promise<void>
Inherited from
SwitchNodeBasePlugin.onDispose
toJSON
▸ toJSON(meta?): any
Parameters
| Name | Type |
|---|---|
meta? | any |
Returns
any
Inherited from
fromJSON
▸ fromJSON(data, meta?): null | SwitchNodePlugin | Promise<null | SwitchNodePlugin>
Parameters
| Name | Type |
|---|---|
data | any |
meta? | any |
Returns
null | SwitchNodePlugin | Promise<null | SwitchNodePlugin>
Inherited from
exportState
▸ exportState(): any
Returns
any
Inherited from
SwitchNodeBasePlugin.exportState
importState
▸ importState(state): Promise<void>
Parameters
| Name | Type |
|---|---|
state | any |
Returns
Promise<void>
Inherited from
SwitchNodeBasePlugin.importState
storeState
▸ storeState(prefix?, storage?, data?): void
Parameters
| Name | Type |
|---|---|
prefix? | string |
storage? | Storage |
data? | any |
Returns
void
Inherited from
SwitchNodeBasePlugin.storeState
loadState
▸ loadState(prefix?, storage?): Promise<void>
Parameters
| Name | Type |
|---|---|
prefix? | string |
storage? | Storage |
Returns
Promise<void>
Inherited from
SwitchNodeBasePlugin.loadState
onAdded
▸ onAdded(viewer): Promise<void>
Parameters
| Name | Type |
|---|---|
viewer | ViewerApp |
Returns
Promise<void>
Inherited from
onRemove
▸ onRemove(viewer): Promise<void>
Parameters
| Name | Type |
|---|---|
viewer | ViewerApp |
Returns
Promise<void>
Inherited from
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
| Name | Type |
|---|---|
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()