deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wpvs.utils
Class VisADWrapper

java.lang.Object
  extended by org.deegree.ogcwebservices.wpvs.utils.VisADWrapper

public class VisADWrapper
extends java.lang.Object

A wrapper for VisAD objects. This class takes care of collecting points to build a TIN, of TIN creation itself and its output as a geometry collection.

Author:
Ugo Taddei, last edited by: $Author: mschneider $ $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $

Constructor Summary
VisADWrapper(java.util.List<javax.vecmath.Point3d> ptsList, double scale)
          Initializes the object by creating a common domain field from the geometrical information (the envelope, the width and the height) supplied.
 
Method Summary
 void addPoints(java.util.List<javax.vecmath.Point3d> points)
          Add Points to the internal list.
 void clear()
          Clear all points and invalidate list.
 java.util.List<float[][]> getTriangleCollectionAsList()
          Generates a list of tringles containing the triangles representing the TIN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisADWrapper

public VisADWrapper(java.util.List<javax.vecmath.Point3d> ptsList,
                    double scale)
Initializes the object by creating a common domain field from the geometrical information (the envelope, the width and the height) supplied. The envelope cannot the null, nor can the dimensions by < 1.

Parameters:
ptsList - a list of Points
scale - to multiply to the z-value
Method Detail

addPoints

public final void addPoints(java.util.List<javax.vecmath.Point3d> points)
Add Points to the internal list. Lists without any elements (or null lists) are ignored.

Parameters:
points - to be added to the list

getTriangleCollectionAsList

public final java.util.List<float[][]> getTriangleCollectionAsList()
Generates a list of tringles containing the triangles representing the TIN. Triangles are represented float[3][3]

Returns:
a collection of float[3][3], each of which representing a TIN triangle

clear

public void clear()
Clear all points and invalidate list.


deegree 2.5 (2011/06/29 09:44 build-8-official)

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