deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

org.deegree.tools.rendering.dem.builder
Class MacroTriangle

java.lang.Object
  extended by org.deegree.tools.rendering.dem.builder.MacroTriangle

public class MacroTriangle
extends Object

A macro triangle that consists of several "normal" triangles.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Nested Class Summary
(package private) static class MacroTriangle.Orientation
           
 
Field Summary
 float[][] bbox
          The bbox of the macro triangle
 float geometryError
          The geometric error of the macro triangle
(package private)  javax.vecmath.Point2f p0
           
(package private)  javax.vecmath.Point2f p1
           
(package private)  javax.vecmath.Point2f p2
           
 
Constructor Summary
MacroTriangle(DEMDatasetGenerator builder, javax.vecmath.Point2f p0, javax.vecmath.Point2f p1, javax.vecmath.Point2f p2, int level, String locationCode, float geometryError)
          Constructs a new MacroTriangle without bounding box.
MacroTriangle(DEMDatasetGenerator builder, javax.vecmath.Point2f p0, javax.vecmath.Point2f p1, javax.vecmath.Point2f p2, int level, String locationCode, float[][] bbox, float geometryError)
          Constructs a new MacroTriangle with already initialized bounding box.
 
Method Summary
(package private)  void generateTileData(org.deegree.coverage.raster.data.RasterData dataBuffer, double tileHeight, int rowsPerTile, javax.vecmath.Point3f[] tileVertices, javax.vecmath.Vector3f[] vertexNormals, int[][] tileTriangles)
           
 float[][] getBBox()
           
(package private)  double getError()
           
 String getLocationCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p0

javax.vecmath.Point2f p0

p1

javax.vecmath.Point2f p1

p2

javax.vecmath.Point2f p2

bbox

public float[][] bbox
The bbox of the macro triangle


geometryError

public float geometryError
The geometric error of the macro triangle

Constructor Detail

MacroTriangle

MacroTriangle(DEMDatasetGenerator builder,
              javax.vecmath.Point2f p0,
              javax.vecmath.Point2f p1,
              javax.vecmath.Point2f p2,
              int level,
              String locationCode,
              float[][] bbox,
              float geometryError)
Constructs a new MacroTriangle with already initialized bounding box.

Parameters:
builder -
p0 -
p1 -
p2 -
level -
locationCode -
bbox -
geometryError -

MacroTriangle

MacroTriangle(DEMDatasetGenerator builder,
              javax.vecmath.Point2f p0,
              javax.vecmath.Point2f p1,
              javax.vecmath.Point2f p2,
              int level,
              String locationCode,
              float geometryError)
Constructs a new MacroTriangle without bounding box.

The bounding box will be generated by the first call to getBBox().

Parameters:
builder -
p0 -
p1 -
p2 -
level -
locationCode -
geometryError -
Method Detail

getError

double getError()

generateTileData

void generateTileData(org.deegree.coverage.raster.data.RasterData dataBuffer,
                      double tileHeight,
                      int rowsPerTile,
                      javax.vecmath.Point3f[] tileVertices,
                      javax.vecmath.Vector3f[] vertexNormals,
                      int[][] tileTriangles)

getLocationCode

public String getLocationCode()
Returns:
the location code

getBBox

public float[][] getBBox()
Returns:
the bbox of this Macrotriangle

deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>