Skip to main content

Class: BaseGroundPlugin<TMesh>

Plugins.BaseGroundPlugin

Type parameters

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

Hierarchy

Implements

Accessors

dirty

get dirty(): boolean

Returns

boolean

Implementation of

IViewerPlugin.dirty

Inherited from

AViewerPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:18

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Implementation of

IViewerPlugin.dirty

Inherited from

AViewerPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:22


enabled

get enabled(): boolean

Returns

boolean

Overrides

AViewerPlugin.enabled

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:20

set enabled(value): void

Parameters

NameType
valueboolean

Returns

void

Overrides

AViewerPlugin.enabled

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:24


material

get material(): undefined | MeshStandardMaterial2

Returns

undefined | MeshStandardMaterial2

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:28


mesh

get mesh(): undefined | IModel<TMesh>

Returns

undefined | IModel<TMesh>

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:32


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

IViewerPlugin.uiConfig

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:323

Methods

toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IViewerPlugin.toJSON

Inherited from

AViewerPlugin.toJSON

Defined in

webgi/src/core/AViewerPlugin.ts:47


addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

void

Implementation of

IViewerPlugin.addEventListener

Inherited from

AViewerPlugin.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:48


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

boolean

Implementation of

IViewerPlugin.hasEventListener

Inherited from

AViewerPlugin.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:56


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

void

Implementation of

IViewerPlugin.removeEventListener

Inherited from

AViewerPlugin.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"" | "serialize" | "deserialize">

Returns

void

Implementation of

IViewerPlugin.dispatchEvent

Inherited from

AViewerPlugin.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onAdded

Overrides

AViewerPlugin.onAdded

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:97


onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onDispose

Overrides

AViewerPlugin.onDispose

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:139


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onRemove

Overrides

AViewerPlugin.onRemove

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:146


refreshTransform

refreshTransform(): void

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:171


refreshOptions

refreshOptions(): void

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:180


setOptions

setOptions(options): void

Parameters

NameType
optionsPartial<GroundOptions>

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:294


fromJSON

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

Parameters

NameType
dataany
meta?any

Returns

null | BaseGroundPlugin<TMesh>

Implementation of

IViewerPlugin.fromJSON

Overrides

AViewerPlugin.fromJSON

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:307


_createMesh

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

Returns

Mesh<BufferGeometry, Material | Material[]>

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:92


_postFrame

Protected _postFrame(): void

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:129


_preRender

Protected _preRender(): void

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:135


_removeMaterial

Protected _removeMaterial(): void

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:157


_onSceneUpdate

Protected _onSceneUpdate(event): void

Parameters

NameType
eventIEvent<string>

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:165


_refreshTransform

Protected _refreshTransform(): void

Returns

void

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:207


_refreshMaterial

Protected _refreshMaterial(): boolean

Returns

boolean

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:242


_extraUiConfig

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

Returns

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

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:317

Properties

dependencies

dependencies: Class<IViewerPlugin<IViewerApp>>[]

Implementation of

IViewerPlugin.dependencies

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:50


visible

visible: boolean = true

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:75


size

size: number = 8

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:78


yOffset

yOffset: number = 0

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:81


renderToDepth

renderToDepth: boolean = true

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:84


tonemapGround

tonemapGround: boolean = true

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:87


limitCameraAboveGround

limitCameraAboveGround: boolean = false

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:90


_dirty

Protected _dirty: boolean = false

Inherited from

AViewerPlugin._dirty

Defined in

webgi/src/core/AViewerPlugin.ts:25


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

AViewerPlugin._viewer

Defined in

webgi/src/core/AViewerPlugin.ts:29


_geometry

Protected _geometry: BufferGeometry

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:39


_material

Protected Optional _material: MeshStandardMaterial2

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:42


_mesh

Protected Optional _mesh: TMesh

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:45


_options

Protected _options: GroundOptions

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:46


_manager

Protected Optional _manager: AssetManagerPlugin

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:47


_uiConfig

Protected Optional _uiConfig: UiObjectConfig<any, string>

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:315

Constructors

constructor

new BaseGroundPlugin<TMesh>(options?)

Type parameters

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

Parameters

NameType
optionsPartial<GroundOptions>

Overrides

AViewerPlugin.constructor

Defined in

webgi/src/plugins/BaseGroundPlugin.ts:52