|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object TemporaryElevationStorage
public class TemporaryElevationStorage
a data store for elevation information during terrain creation. This is necessary because 2D computations (such as polygon differences and Conforming Delaunay Triangulation) will strip the third dimension from elevation vertices and may also add additional vertices.
Constructor Summary | |
---|---|
TemporaryElevationStorage()
|
Method Summary | |
---|---|
void |
addInterpolationLineSegment(LineSegmentXYZ segment)
adds a line segment for interpolating along. |
void |
addPolygon(PolygonXZ polyXZ,
PolygonXYZ polyXYZ)
adds all the elevation info for a polygon that needs to be flattened (vertex vectors and line segments along the edges) |
void |
addVector(VectorXZ vXZ,
VectorXYZ vXYZ)
adds the 3d version of a flattened vector so that the 3d version can later be retrieved. |
PolygonXYZ |
restoreElevationForPolygon(SimplePolygonXZ polygon)
|
TriangleXYZ |
restoreElevationForTriangle(TriangleXZ triangle)
|
VectorXYZ |
restoreElevationForVector(VectorXZ vector)
returns the 3d vector at a position; either by retrieving a previously existing vector or by interpolating along interpolation lines |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemporaryElevationStorage()
Method Detail |
---|
public void addVector(VectorXZ vXZ, VectorXYZ vXYZ)
public void addInterpolationLineSegment(LineSegmentXYZ segment)
public void addPolygon(PolygonXZ polyXZ, PolygonXYZ polyXYZ)
public VectorXYZ restoreElevationForVector(VectorXZ vector)
public TriangleXYZ restoreElevationForTriangle(TriangleXZ triangle)
public PolygonXYZ restoreElevationForPolygon(SimplePolygonXZ polygon)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |