Class: SwitchNodeBasePlugin
Plugins.SwitchNodeBasePlugin
Hierarchy
AViewerPlugin
<""
>↳
SwitchNodeBasePlugin
Accessors
dirty
• get
dirty(): boolean
Returns
boolean
Inherited from
AViewerPlugin.dirty
• set
dirty(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
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
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Inherited from
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Inherited from
fromJSON
▸ fromJSON(data
, meta?
): null
| SwitchNodeBasePlugin
| Promise
<null
| SwitchNodeBasePlugin
>
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| SwitchNodeBasePlugin
| Promise
<null
| SwitchNodeBasePlugin
>
Inherited from
exportState
▸ exportState(): any
Returns
any
Inherited from
importState
▸ importState(state
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | any |
Returns
Promise
<void
>
Inherited from
storeState
▸ storeState(prefix?
, storage?
, data?
): void
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
data? | any |
Returns
void
Inherited from
loadState
▸ loadState(prefix?
, storage?
): Promise
<void
>
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
Returns
Promise
<void
>
Inherited from
onAdded
▸ onAdded(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Overrides
onRemove
▸ onRemove(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Overrides
refreshUi
▸ refreshUi(): void
Returns
void
snapIcons
▸ snapIcons(): void
Snapshots icons and puts in the userdata.__icon
Returns
void
_storeKey
▸ Protected
_storeKey(prefix?
): string
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
string
Inherited from
_refreshUi
▸ Protected
_refreshUi(): boolean
Returns
boolean
_selectedSwitchNode
▸ Protected
_selectedSwitchNode(): undefined
| Object3D
<Object3DEventMap
>
Returns
undefined
| Object3D
<Object3DEventMap
>
Properties
enabled
• enabled: boolean
= true
Overrides
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
_viewer
• Protected
Optional
_viewer: ViewerApp
Inherited from
Constructors
constructor
• new SwitchNodeBasePlugin()