visad
Class VisADGeometryArray

java.lang.Object
  extended by visad.VisADSceneGraphObject
      extended by visad.VisADGeometryArray
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
ContourLabelGeometry, VisADIndexedTriangleStripArray, VisADLineArray, VisADLineStripArray, VisADPointArray, VisADQuadArray, VisADTriangleArray, VisADTriangleStripArray

public abstract class VisADGeometryArray
extends VisADSceneGraphObject
implements Cloneable

VisADGeometryArray stands in for j3d.GeometryArray and is Serializable.

See Also:
Serialized Form

Field Summary
 byte[] colors
           
 float[] coordinates
           
 float[] normals
           
 float[] texCoords
           
 int vertexCount
           
 int vertexFormat
           
 
Constructor Summary
VisADGeometryArray()
           
 
Method Summary
 VisADGeometryArray adjustLongitude(DataRenderer renderer)
          split any vectors or triangles crossing crossing longitude seams when Longitude is mapped to a Cartesian display axis; default implementation: rotate if necessary, then return points
 VisADGeometryArray adjustLongitudeBulk(DataRenderer renderer)
          like adjustLongitude, but rather than splitting vectors or triangles, keep the VisADGeometryArray intact but possibly move it in longitude (try to keep its centroid on the "main" side of the seam)
 VisADGeometryArray adjustSeam(DataRenderer renderer)
          eliminate any vectors or triangles crossing seams of map projections, defined by display-side CoordinateSystems; this default implementation does nothing
abstract  Object clone()
           
 void copy(VisADGeometryArray array)
           
 VisADGeometryArray removeMissing()
           
 String toString()
           
 
Methods inherited from class visad.VisADSceneGraphObject
detach
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vertexCount

public int vertexCount

vertexFormat

public int vertexFormat

coordinates

public float[] coordinates

normals

public float[] normals

colors

public byte[] colors

texCoords

public float[] texCoords
Constructor Detail

VisADGeometryArray

public VisADGeometryArray()
Method Detail

adjustSeam

public VisADGeometryArray adjustSeam(DataRenderer renderer)
                              throws VisADException
eliminate any vectors or triangles crossing seams of map projections, defined by display-side CoordinateSystems; this default implementation does nothing

Throws:
VisADException

adjustLongitudeBulk

public VisADGeometryArray adjustLongitudeBulk(DataRenderer renderer)
                                       throws VisADException
like adjustLongitude, but rather than splitting vectors or triangles, keep the VisADGeometryArray intact but possibly move it in longitude (try to keep its centroid on the "main" side of the seam)

Throws:
VisADException

adjustLongitude

public VisADGeometryArray adjustLongitude(DataRenderer renderer)
                                   throws VisADException
split any vectors or triangles crossing crossing longitude seams when Longitude is mapped to a Cartesian display axis; default implementation: rotate if necessary, then return points

Throws:
VisADException

removeMissing

public VisADGeometryArray removeMissing()

toString

public String toString()
Overrides:
toString in class Object

copy

public void copy(VisADGeometryArray array)

clone

public abstract Object clone()
Overrides:
clone in class Object