org.osm2world.core.heightmap.data
Interface CellularTerrainElevation

All Superinterfaces:
TerrainElevation
All Known Implementing Classes:
AbstractCellularTerrainElevation, EmptyTerrainElevationGrid, FlatTerrainElevation, WaveTerrainElevation

public interface CellularTerrainElevation
extends TerrainElevation

Terrain elevation data that consists of points arranged in a grid structure (2d array). The grid


Method Summary
 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.
 TerrainPoint[][] getTerrainPointGrid()
           
 
Methods inherited from interface TerrainElevation
getTerrainPoints
 

Method Detail

getTerrainPointGrid

TerrainPoint[][] getTerrainPointGrid()
Returns:
regular two-dimensional array (not jagged)

getBoundaryPolygon

PolygonXYZ getBoundaryPolygon()
returns the boundary created from the first and last rows and columns of the grid. This requires that all TerrainPoints' elevations have already been set to non-null values.


getBoundaryPolygonXZ

PolygonXZ getBoundaryPolygonXZ()
returns the boundary created from the first and last rows and columns of the grid.


getCells

Iterable<? extends TerrainElevationCell> getCells()
returns Iterable over cells. This is a convenience method for operations that need to be performed for all cells. The iterator cannot be used to remove cells.