|
deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.tools.rendering.dem.builder.DEMDatasetGenerator
@Tool(value="Generates DEM multiresolution datasets from rasters, suitable for the WPVS.") public class DEMDatasetGenerator
Tool for generating the binary files for MultiresolutionMesh instances (MRIndex- and PatchData-BLOBs) from
regular heightfields.
The input heightfield file must contain the raw height information as a sequence of height values (heixels). Contained in a raster.
Initially, the domain is divided into two right triangles. These are the root fragments of the multiresolution hierarchy. Smaller fragments (with more detail) are generated by recursively bisecting the triangles.
| Field Summary | |
|---|---|
(package private) org.deegree.coverage.raster.data.RasterData |
dataBuffer
Name of input (heixel) file. |
(package private) int |
inputX
Number of points in the heixelBuffer (x-dimension). |
(package private) int |
inputY
Number of points in the heixelBuffer (y-dimension). |
| Constructor Summary | |
|---|---|
DEMDatasetGenerator(org.deegree.coverage.raster.AbstractRaster raster,
org.deegree.coverage.raster.io.RasterIOOptions options,
int levels,
int rowsPerTile,
float maxZ)
Creates a new PatchGenerator instance. |
|
| Method Summary | |
|---|---|
(package private) javax.vecmath.Point2f |
calcMidPoint(javax.vecmath.Point2f pa,
javax.vecmath.Point2f pb)
|
int |
getBytesPerTile()
|
(package private) float |
getHeight(float x,
float y)
|
(package private) float |
getHeight(javax.vecmath.Point2f p)
|
int |
getLevels()
|
int |
getRowsPerFragment()
|
double |
getTileHeight()
|
int |
getTrianglesPerFragment()
|
int |
getVerticesPerFragment()
|
static void |
main(String[] args)
Generates a MultiresolutionMesh instance (MRIndex- and PatchData-BLOBs) from a file that contains binary
short values (a regular heightfield). |
void |
setTileHeight(double tileHeight)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final org.deegree.coverage.raster.data.RasterData dataBuffer
final int inputX
final int inputY
| Constructor Detail |
|---|
public DEMDatasetGenerator(org.deegree.coverage.raster.AbstractRaster raster,
org.deegree.coverage.raster.io.RasterIOOptions options,
int levels,
int rowsPerTile,
float maxZ)
throws SQLException,
IOException
PatchGenerator instance.
raster - the dem rasteroptions - containing information on the given raster.levels - number of levels in the generated (layered) DAGrowsPerTile - number of rows per macro triangle (tile)maxZ - the clipping z value.
SQLException
IOException| Method Detail |
|---|
public int getVerticesPerFragment()
public int getTrianglesPerFragment()
public int getLevels()
public int getRowsPerFragment()
public void setTileHeight(double tileHeight)
tileHeight - the tileHeight to setpublic double getTileHeight()
public int getBytesPerTile()
float getHeight(float x,
float y)
float getHeight(javax.vecmath.Point2f p)
javax.vecmath.Point2f calcMidPoint(javax.vecmath.Point2f pa,
javax.vecmath.Point2f pb)
public static void main(String[] args)
throws IOException,
SQLException
MultiresolutionMesh instance (MRIndex- and PatchData-BLOBs) from a file that contains binary
short values (a regular heightfield).
Please see the code for the initialization of the parameters.
args -
IOException
SQLException
|
deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||