API / geotoolkit / contour / grid / ContourAbstractGrid / 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.
ContourAbstractGrid
Constructors
Accessors
Methods
Accessors
• Static get SpaceReserveRatio(): number
The space reserve ratio
number
Methods
▸ clearGrid(): void
Empties the Grid
void
▸ convertToSafeFloat64(value): number
Converts the value that is not altered when setting to a Float64Array value.
| Name | Type | Description |
|---|---|---|
value | number | The value that will be converted to a safe double. |
number
safeValue The converted value.
▸ Abstract getBuildRange(netRange, realRange): void
Gets the build range
| Name | Type | Description |
|---|---|---|
netRange | GridRange | The range for the net |
realRange | GridRange | The range for the data |
void
▸ getClassName(): string
string
▸ getGridToModel(): Transformation
Gets the grid-to-model transformation
transformation Grid-To-Model transformation
▸ Abstract getMaxValue(): number
Return maximum value in contour grid
number
▸ Abstract getMinValue(): number
Return minimum value in contour grid
number
▸ Abstract getModelLimits(): Rect
Gets the model limits of the data
modelLimits
▸ Abstract getRange(): GridRange
Gets the Grid Range
gridRange
▸ getValueAtModelPoint(modelPoint): number
Gets the altitude at the give model point location.
| Name | Type | Description |
|---|---|---|
modelPoint | Point | The model point |
number
value The model point's value
▸ needRebuild(): boolean
Returns grid rebuild state.
boolean
needRebuild True if grid is to be rebuilt (data changed)
▸ setGridToModel(transformation): void
Sets the grid-to-model transformation
| Name | Type | Description |
|---|---|---|
transformation | Transformation | Grid-To-Model transformation |
void
▸ Abstract setRange(gridRange): void
Sets the Grid Range
| Name | Type | Description |
|---|---|---|
gridRange | GridRange | The grid z-value range. |
void
▸ Static getClassName(): string
string