Skip to main content

Class: ContactShadowGroundPlugin<TMesh>

Plugins.ContactShadowGroundPlugin

Type parameters

NameType
TMeshextends Mesh<BufferGeometry, MeshStandardMaterial> | Reflector2 = Mesh<BufferGeometry, MeshStandardMaterial> | Reflector2

Hierarchy

Implements

Properties

PluginType

Static Readonly PluginType: "ContactShadowGroundPlugin"

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:39


dependencies

dependencies: Class<IViewerPlugin<IViewerApp, boolean>>[]

Implementation of

IViewerPlugin.dependencies

Inherited from

BaseGroundPlugin.dependencies

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:52


visible

visible: boolean = true

Inherited from

BaseGroundPlugin.visible

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:77


size

size: number = 8

Inherited from

BaseGroundPlugin.size

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:80


yOffset

yOffset: number = 0

Inherited from

BaseGroundPlugin.yOffset

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:83


renderToDepth

renderToDepth: boolean = true

Inherited from

BaseGroundPlugin.renderToDepth

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:86


tonemapGround

tonemapGround: boolean = true

Inherited from

BaseGroundPlugin.tonemapGround

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:89


limitCameraAboveGround

limitCameraAboveGround: boolean = false

Inherited from

BaseGroundPlugin.limitCameraAboveGround

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:92


enableRefreshTransform

enableRefreshTransform: boolean = true

Extra flag for plugins to disable transform refresh like when animating or dragging

Inherited from

BaseGroundPlugin.enableRefreshTransform

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:184


contactShadows

contactShadows: boolean = true

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:42


blurAmount

blurAmount: number = 1

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:46


shadowScale

shadowScale: number = 1

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:49


shadowHeight

shadowHeight: number = 5

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:52


shadowCamera

shadowCamera: OrthographicCamera

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:56


_dirty

Protected _dirty: boolean = false

Inherited from

BaseGroundPlugin._dirty

Defined in

webgi/src/core/AViewerPlugin.ts:23


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

BaseGroundPlugin._viewer

Defined in

webgi/src/core/AViewerPlugin.ts:27


_geometry

Protected _geometry: BufferGeometry<NormalBufferAttributes, Event, string>

Inherited from

BaseGroundPlugin._geometry

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:41


_material

Protected Optional _material: MeshStandardMaterial2

Inherited from

BaseGroundPlugin._material

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:44


_mesh

Protected Optional _mesh: TMesh

Inherited from

BaseGroundPlugin._mesh

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:47


_options

Protected _options: GroundOptions

Inherited from

BaseGroundPlugin._options

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:48


_manager

Protected Optional _manager: AssetManagerPlugin

Inherited from

BaseGroundPlugin._manager

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:49


_uiConfig

Protected Optional _uiConfig: UiObjectConfig<any, string>

Inherited from

BaseGroundPlugin._uiConfig

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:333

Accessors

dirty

get dirty(): boolean

Returns

boolean

Implementation of

IViewerPlugin.dirty

Inherited from

BaseGroundPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:16

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Implementation of

IViewerPlugin.dirty

Inherited from

BaseGroundPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:20


enabled

get enabled(): boolean

Returns

boolean

Inherited from

BaseGroundPlugin.enabled

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:22

set enabled(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

BaseGroundPlugin.enabled

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:26


material

get material(): undefined | MeshStandardMaterial2

Returns

undefined | MeshStandardMaterial2

Inherited from

BaseGroundPlugin.material

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:30


mesh

get mesh(): undefined | IModel<TMesh>

Returns

undefined | IModel<TMesh>

Inherited from

BaseGroundPlugin.mesh

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:34


autoAdjustTransform

get autoAdjustTransform(): boolean

Returns

boolean

Inherited from

BaseGroundPlugin.autoAdjustTransform

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:94

set autoAdjustTransform(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

BaseGroundPlugin.autoAdjustTransform

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:97


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

IViewerPlugin.uiConfig

Inherited from

BaseGroundPlugin.uiConfig

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:341

Methods

toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IViewerPlugin.toJSON

Inherited from

BaseGroundPlugin.toJSON

Defined in

webgi/src/core/AViewerPlugin.ts:45


exportState

exportState(): any

Returns

any

Inherited from

BaseGroundPlugin.exportState

Defined in

webgi/src/core/AViewerPlugin.ts:64


importState

importState(state): Promise<void>

Parameters

NameType
stateany

Returns

Promise<void>

Inherited from

BaseGroundPlugin.importState

Defined in

webgi/src/core/AViewerPlugin.ts:67


storeState

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

Parameters

NameType
prefix?string
storage?Storage
data?any

Returns

void

Implementation of

IViewerPlugin.storeState

Inherited from

BaseGroundPlugin.storeState

Defined in

webgi/src/core/AViewerPlugin.ts:74


loadState

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

Parameters

NameType
prefix?string
storage?Storage

Returns

Promise<void>

Implementation of

IViewerPlugin.loadState

Inherited from

BaseGroundPlugin.loadState

Defined in

webgi/src/core/AViewerPlugin.ts:84


refreshTransform

refreshTransform(): void

Returns

void

Inherited from

BaseGroundPlugin.refreshTransform

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:186


setOptions

setOptions(options): void

Parameters

NameType
optionsPartial<GroundOptions>

Returns

void

Inherited from

BaseGroundPlugin.setOptions

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:312


fromJSON

fromJSON(data, meta?): null | ContactShadowGroundPlugin<TMesh>

Parameters

NameType
dataany
meta?any

Returns

null | ContactShadowGroundPlugin<TMesh>

Implementation of

IViewerPlugin.fromJSON

Inherited from

BaseGroundPlugin.fromJSON

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:325


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onAdded

Overrides

BaseGroundPlugin.onAdded

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:69


onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onDispose

Overrides

BaseGroundPlugin.onDispose

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:158


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onRemove

Overrides

BaseGroundPlugin.onRemove

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:162


refreshOptions

refreshOptions(): void

Returns

void

Overrides

BaseGroundPlugin.refreshOptions

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:200


_storeKey

Protected _storeKey(prefix?): string

Parameters

NameType
prefix?string

Returns

string

Inherited from

BaseGroundPlugin._storeKey

Defined in

webgi/src/core/AViewerPlugin.ts:60


_createMesh

Protected _createMesh(): Mesh<BufferGeometry<NormalBufferAttributes, Event, string>, Material<Event, string> | Material<Event, string>[]>

Returns

Mesh<BufferGeometry<NormalBufferAttributes, Event, string>, Material<Event, string> | Material<Event, string>[]>

Inherited from

BaseGroundPlugin._createMesh

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:101


_onSceneUpdate

Protected _onSceneUpdate(event?): void

Parameters

NameType
event?IEvent<string>

Returns

void

Inherited from

BaseGroundPlugin._onSceneUpdate

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:175


_postFrame

Protected _postFrame(): void

Returns

void

Overrides

BaseGroundPlugin._postFrame

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:108


_preRender

Protected _preRender(): void

Returns

void

Overrides

BaseGroundPlugin._preRender

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:114


_refreshTransform

Protected _refreshTransform(): void

Returns

void

Overrides

BaseGroundPlugin._refreshTransform

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:166


_removeMaterial

Protected _removeMaterial(): void

Returns

void

Overrides

BaseGroundPlugin._removeMaterial

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:193


_refreshMaterial

Protected _refreshMaterial(): boolean

Returns

boolean

Overrides

BaseGroundPlugin._refreshMaterial

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:206


_extraUiConfig

Protected _extraUiConfig(): (UiObjectConfig<any, string> | () => UiObjectConfig<any, string> | UiObjectConfig<any, string>[])[]

Returns

(UiObjectConfig<any, string> | () => UiObjectConfig<any, string> | UiObjectConfig<any, string>[])[]

Overrides

BaseGroundPlugin._extraUiConfig

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:228

Constructors

constructor

new ContactShadowGroundPlugin<TMesh>(options?, showDebug?)

Type parameters

NameType
TMeshextends Mesh<BufferGeometry<NormalBufferAttributes, Event, string>, MeshStandardMaterial<Event, "">> | Reflector2 = Mesh<BufferGeometry<NormalBufferAttributes, Event, string>, MeshStandardMaterial<Event, "">> | Reflector2

Parameters

NameTypeDefault value
optionsPartial<GroundOptions>{}
showDebugbooleanfalse

Overrides

BaseGroundPlugin.constructor

Defined in

webgi/src/plugins/ContactShadowGroundPlugin.ts:59