Last updated

API / geotoolkit / contour / grid / ContourAbstractGrid / ContourAbstractGrid

Class: ContourAbstractGrid

grid.ContourAbstractGrid.ContourAbstractGrid

Base class for a contour grid that has hole values and a grid-to-model transformation. There are only two implementations for now: ContourRectangularGrid and ContourTriangularGrid.

Hierarchy

Table of contents

Constructors
Accessors
Methods

Contents

Constructors

new ContourAbstractGrid()

Protected new ContourAbstractGrid()

Accessors

SpaceReserveRatio

Static get SpaceReserveRatio(): number

The space reserve ratio

Returns

number

Methods

clearGrid

clearGrid(): void

Empties the Grid

Returns

void


convertToSafeFloat64

convertToSafeFloat64(value): number

Converts the value that is not altered when setting to a Float64Array value.

Parameters

Name Type Description
valuenumberThe value that will be converted to a safe double.

Returns

number

safeValue The converted value.


getBuildRange

Abstract getBuildRange(netRange, realRange): void

Gets the build range

Parameters

Name Type Description
netRangeGridRangeThe range for the net
realRangeGridRangeThe range for the data

Returns

void


getClassName

getClassName(): string

Returns

string


getGridToModel

getGridToModel(): Transformation

Gets the grid-to-model transformation

Returns

Transformation

transformation Grid-To-Model transformation


getMaxValue

Abstract getMaxValue(): number

Return maximum value in contour grid

Returns

number


getMinValue

Abstract getMinValue(): number

Return minimum value in contour grid

Returns

number


getModelLimits

Abstract getModelLimits(): Rect

Gets the model limits of the data

Returns

Rect

modelLimits


getRange

Abstract getRange(): GridRange

Gets the Grid Range

Returns

GridRange

gridRange


getValueAtModelPoint

getValueAtModelPoint(modelPoint): number

Gets the altitude at the give model point location.

Parameters

Name Type Description
modelPointPointThe model point

Returns

number

value The model point's value


needRebuild

needRebuild(): boolean

Returns grid rebuild state.

Returns

boolean

needRebuild True if grid is to be rebuilt (data changed)


setGridToModel

setGridToModel(transformation): void

Sets the grid-to-model transformation

Parameters

Name Type Description
transformationTransformationGrid-To-Model transformation

Returns

void


setRange

Abstract setRange(gridRange): void

Sets the Grid Range

Parameters

Name Type Description
gridRangeGridRangeThe grid z-value range.

Returns

void


getClassName

Static getClassName(): string

Returns

string