org.osm2world.core.heightmap.data
public abstract class AbstractCellularTerrainElevation extends Object implements CellularTerrainElevation
Constructor and Description |
---|
AbstractCellularTerrainElevation(AxisAlignedBoundingBoxXZ boundary,
int numPointsX,
int numPointsZ) |
Modifier and Type | Method and Description |
---|---|
PolygonXYZ |
getBoundaryPolygon()
returns the boundary created from the first and last rows and columns
of the grid.
|
PolygonXZ |
getBoundaryPolygonXZ()
returns the boundary created from the first and last rows and columns
of the grid.
|
Iterable<? extends TerrainElevationCell> |
getCells()
returns Iterable over cells.
|
protected abstract Float |
getElevation(VectorXZ pos) |
TerrainPoint[][] |
getTerrainPointGrid() |
Collection<TerrainPoint> |
getTerrainPoints() |
public AbstractCellularTerrainElevation(AxisAlignedBoundingBoxXZ boundary, int numPointsX, int numPointsZ)
public Collection<TerrainPoint> getTerrainPoints()
getTerrainPoints
in interface TerrainElevation
public TerrainPoint[][] getTerrainPointGrid()
getTerrainPointGrid
in interface CellularTerrainElevation
public PolygonXYZ getBoundaryPolygon()
CellularTerrainElevation
TerrainPoint
s' elevations have already
been set to non-null values.getBoundaryPolygon
in interface CellularTerrainElevation
public PolygonXZ getBoundaryPolygonXZ()
CellularTerrainElevation
getBoundaryPolygonXZ
in interface CellularTerrainElevation
public Iterable<? extends TerrainElevationCell> getCells()
CellularTerrainElevation
getCells
in interface CellularTerrainElevation
protected abstract Float getElevation(VectorXZ pos)