Skip to content
Last updated

API / geotoolkit3d / scene / plane / PlaneMaterial / PlaneMaterial

Class: PlaneMaterial

plane.PlaneMaterial.PlaneMaterial

Plane material. Is responsible for handling the plane image and overlay parameters and rendering.

Hierarchy

Table of contents

Constructors
  • [new PlaneMaterial(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.scene-3.plane.planematerial.planematerial.md#new planematerial(options))
Methods

Contents

Constructors

new PlaneMaterial(options)

• new PlaneMaterial(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

MeshColorMapLambertMaterial.constructor

Methods

dispose

▸ dispose(): void

Returns

void

Inherited from

MeshColorMapLambertMaterial.dispose


getClassName

▸ getClassName(): string

Returns

string

Inherited from

MeshColorMapLambertMaterial.getClassName


getColormapSize

▸ getColormapSize(): number

Retrieve the color map size

Returns

number

current colormap size

Inherited from

MeshColorMapLambertMaterial.getColormapSize


getImageTextureDimension

▸ getImageTextureDimension(vec2?): Vector2

Returns the dimension of the plane base image texture, if any.

Parameters

Name Type Description
Optional vec2Vector2(optional) the Vector2 to hold the dimension, to avoid creating new object.

Returns

Vector2


getOptions

▸ getOptions(): OptionsBaseOut

Get the MeshColorMapLambertMaterial options.

Returns

OptionsBaseOut

Inherited from

MeshColorMapLambertMaterial.getOptions


getOptionsMultiColorMap

▸ getOptionsMultiColorMap(): Required<Options&gt;

Returns

Required<Options&gt;

Inherited from

MeshColorMapLambertMaterial.getOptionsMultiColorMap


getOverlay

▸ getOverlay(): Group<Node&gt;

Return the overlay Group holding the 2D shapes

Returns

Group<Node&gt;


getOverlayTexture

▸ getOverlayTexture(): CanvasTexture

Returns the texture of the overlay, if any.

Returns

CanvasTexture


getOverlayTextureDimension

▸ getOverlayTextureDimension(vec2?): Vector2

Returns the dimension of the plane overlay texture, if any.

Parameters

Name Type Description
Optional vec2Vector2(optional) the Vector2 to hold the dimension, to avoid creating new object.

Returns

Vector2


onBeforeCompile

▸ onBeforeCompile(parameters, renderer): void

Parameters

Name Type
parametersWebGLProgramParametersWithUniforms
rendererWebGLRenderer

Returns

void

Inherited from

MeshColorMapLambertMaterial.onBeforeCompile


setOptions

▸ setOptions(options?): PlaneMaterial

Set this material options.

Parameters

Name Type
Optional optionsOptionsBase

Returns

PlaneMaterial

Overrides

MeshColorMapLambertMaterial.setOptions


setOptionsMultiColorMap

▸ setOptionsMultiColorMap(options): PlaneMaterial

Parameters

Name Type
optionsOptions

Returns

PlaneMaterial

Inherited from

MeshColorMapLambertMaterial.setOptionsMultiColorMap


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

MeshColorMapLambertMaterial.getClassName