Skip to main content

Class: Contour<ArrayType, GridType, MapType>

Defined in: Contour.ts:85

A field of contoured data.

Example

// Create a contoured height field, with black contours every 30 m (assuming the height field is in 
// meters).
const contours = new Contour(height_field, {color: '#000000', interval: 30});

Extends

Type Parameters

Type Parameter
ArrayType extends TypedArray
GridType extends StructuredGrid
MapType extends MapLikeType

Constructors

Constructor

new Contour<ArrayType, GridType, MapType>(field, opts): Contour<ArrayType, GridType, MapType>

Defined in: Contour.ts:97

Create a contoured field

Parameters

ParameterTypeDescription
fieldRawScalarField<ArrayType, GridType>The field to contour
optsContourOptionsOptions for creating the contours

Returns

Contour<ArrayType, GridType, MapType>

Overrides

PlotComponent.constructor

Properties

PropertyModifierTypeDefined in
optsreadonlyRequired<ContourOptions>Contour.ts:87

Methods

getContours()

getContours(): Promise<ContourData>

Defined in: Contour.ts:170

Returns

Promise<ContourData>


updateField()

updateField(field): Promise<void>

Defined in: Contour.ts:111

Update the data displayed as contours

Parameters

ParameterTypeDescription
fieldRawScalarField<ArrayType, GridType>The new field to contour

Returns

Promise<void>