Skip to main content

Class: FragmentClippingExtensionPlugin

Plugins.FragmentClippingExtensionPlugin

Hierarchy

Implements

Properties

PluginType

Static Readonly PluginType: "FragmentClippingExtensionPlugin1"


FRAGMENT_CLIPPING_EXTENSION_GLTF_EXTENSION

Static Readonly FRAGMENT_CLIPPING_EXTENSION_GLTF_EXTENSION: "WEBGI_materials_fragment_clipping_extension"


enabled

enabled: boolean = true

Overrides

AViewerPlugin.enabled


dependencies

dependencies: (typeof AssetManagerPlugin | typeof GBufferPlugin)[]

Implementation of

IViewerPluginAsync.dependencies


materialExtension

Readonly materialExtension: MaterialExtension


_dirty

Protected _dirty: boolean = false

Inherited from

AViewerPlugin._dirty


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

AViewerPlugin._viewer

Methods

AddFragmentClipping

Static AddFragmentClipping(material, position?, params?, mode?, invert?): boolean

Parameters

NameType
materialIMaterial<any, IMaterialEventMap>
position?Vector4
params?Vector4
mode?FragmentClippingMode
invert?boolean

Returns

boolean


onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onDispose

Inherited from

AViewerPlugin.onDispose


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IViewerPluginAsync.toJSON

Inherited from

AViewerPlugin.toJSON


fromJSON

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

Parameters

NameType
dataany
meta?any

Returns

null | FragmentClippingExtensionPlugin | Promise<null | FragmentClippingExtensionPlugin>

Implementation of

IViewerPluginAsync.fromJSON

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

Implementation of

IViewerPluginAsync.storeState

Inherited from

AViewerPlugin.storeState


loadState

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

Parameters

NameType
prefix?string
storage?Storage

Returns

Promise<void>

Implementation of

IViewerPluginAsync.loadState

Inherited from

AViewerPlugin.loadState


setDirty

setDirty(): void

Returns

void


onAdded

onAdded(v): Promise<void>

Parameters

NameType
vViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onAdded

Overrides

AViewerPlugin.onAdded


onRemove

onRemove(v): Promise<void>

Parameters

NameType
vViewerApp

Returns

Promise<void>

Implementation of

IViewerPluginAsync.onRemove

Overrides

AViewerPlugin.onRemove


_storeKey

Protected _storeKey(prefix?): string

Parameters

NameType
prefix?string

Returns

string

Inherited from

AViewerPlugin._storeKey

Accessors

dirty

get dirty(): boolean

Returns

boolean

Implementation of

IViewerPluginAsync.dirty

Inherited from

AViewerPlugin.dirty

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Implementation of

IViewerPluginAsync.dirty

Inherited from

AViewerPlugin.dirty


viewer

get viewer(): undefined | ViewerApp

Returns

undefined | ViewerApp

Inherited from

AViewerPlugin.viewer

Constructors

constructor

new FragmentClippingExtensionPlugin()

Overrides

AViewerPlugin.constructor