Skip to content

Class: Contour3DLayer

Defined in: plot3d/contour3d.ts:60

3D contour: iso-height lines of a grid, each drawn at its own level height (y = level) so they stack into a floating topographic map. Marching squares on the CPU, per-vertex colored by level.

Implements

Constructors

Constructor

ts
new Contour3DLayer(gl, opts): Contour3DLayer;

Defined in: plot3d/contour3d.ts:80

Parameters

ParameterType
glWebGL2RenderingContext
optsContour3DOptions

Returns

Contour3DLayer

Properties

id

ts
readonly id: string;

Defined in: plot3d/contour3d.ts:61

Implementation of

Layer3D.id


name?

ts
readonly optional name?: string;

Defined in: plot3d/contour3d.ts:62

Series name for the legend (optional).

Implementation of

Layer3D.name

Methods

bounds3()

ts
bounds3(): Bounds3 | null;

Defined in: plot3d/contour3d.ts:173

Returns

Bounds3 | null

Implementation of

Layer3D.bounds3


colorInfo()

ts
colorInfo(): ColorInfo | null;

Defined in: plot3d/contour3d.ts:175

Colormap + value range for a colorbar, if this layer is colormapped.

Returns

ColorInfo | null

Implementation of

Layer3D.colorInfo


dispose()

ts
dispose(): void;

Defined in: plot3d/contour3d.ts:186

Returns

void

Implementation of

Layer3D.dispose


draw()

ts
draw(gl, mvp): void;

Defined in: plot3d/contour3d.ts:177

Parameters

ParameterType
glWebGL2RenderingContext
mvpMat4

Returns

void

Implementation of

Layer3D.draw


setData()

ts
setData(values, opts?): void;

Defined in: plot3d/contour3d.ts:163

Stream a new scalar field (contours recomputed). Call plot.refresh() after.

Parameters

ParameterType
valuesArrayLike<number>
opts?{ cols?: number; extentX?: Range; extentZ?: Range; rows?: number; }
opts.cols?number
opts.extentX?Range
opts.extentZ?Range
opts.rows?number

Returns

void

MIT licensed. WebGL2 required.