javax.media.j3d
Class GeometryArrayRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeComponentRetained
              extended by javax.media.j3d.GeometryRetained
                  extended by javax.media.j3d.GeometryArrayRetained
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
GeometryStripArrayRetained, IndexedGeometryArrayRetained, LineArrayRetained, PointArrayRetained, QuadArrayRetained, TriangleArrayRetained

abstract class GeometryArrayRetained
extends GeometryRetained

The GeometryArray object contains arrays of positional coordinates, colors, normals and/or texture coordinates that describe point, line, or surface geometry. It is extended to create the various primitive types (e.g., lines, triangle_strips, etc.)


Field Summary
(package private) static int AF
           
(package private) static int BOUNDS_CHANGED
           
(package private)  ByteBufferWrapper byteBufferRefColors
           
(package private)  byte[] byteRefColors
           
(package private) static float ByteToFloatScale
           
(package private)  Color3b[] c3bRefColors
           
(package private) static int C3F
           
(package private)  Color3f[] c3fRefColors
           
(package private) static int C3UB
           
(package private)  Color4b[] c4bRefColors
           
(package private) static int C4F
           
(package private)  int c4fAllocated
           
(package private)  Color4f[] c4fRefColors
           
(package private) static int C4UB
           
(package private) static int CF
           
(package private)  IndexedGeometryArrayRetained cloneSourceArray
           
(package private) static int COLOR_BYTE
           
(package private) static int COLOR_CHANGED
           
(package private) static int COLOR_DEFINED
           
(package private) static int COLOR_FLOAT
           
(package private)  int colorChanged
           
(package private)  int colorOffset
           
(package private)  J3DBuffer colorRefBuffer
           
(package private)  int[] compileVcount
           
(package private) static int COORD_DOUBLE
           
(package private) static int COORD_FLOAT
           
(package private) static int COORDINATE_CHANGED
           
(package private)  int coordinateOffset
           
(package private)  J3DBuffer coordRefBuffer
           
(package private) static int CUB
           
(package private) static int[] defaultTexCoordSetMap
           
(package private)  int dirtyFlag
           
(package private)  int dlistId
           
(package private)  java.lang.Integer dlistObj
           
private  java.util.HashMap dlistUsers
           
(package private)  DoubleBufferWrapper doubleBufferRefCoords
           
(package private)  double[] doubleRefCoords
           
(package private) static double EPS
           
(package private)  FloatBufferWrapper floatBufferRefColors
           
(package private)  FloatBufferWrapper floatBufferRefCoords
           
(package private)  FloatBufferWrapper floatBufferRefNormals
           
(package private)  FloatBufferWrapper[] floatBufferRefVertexAttrs
           
(package private)  float[] floatRefColors
           
(package private)  float[] floatRefCoords
           
(package private)  float[] floatRefNormals
           
(package private)  float[][] floatRefVertexAttrs
           
(package private) static float FloatToByteScale
           
(package private)  java.util.ArrayList gaList
           
(package private)  int[] geoOffset
           
(package private) static int INDEX_CHANGED
           
(package private) static int INIT_MIRROR_GEOMETRY
           
(package private)  int initialColorIndex
           
(package private)  int initialCoordIndex
           
(package private)  int initialNormalIndex
           
(package private)  int[] initialTexCoordIndex
           
(package private)  int[] initialVertexAttrIndex
           
(package private)  int initialVertexIndex
           
(package private)  FloatBufferWrapper interleavedFloatBufferImpl
           
(package private)  J3DBuffer interleavedVertexBuffer
           
(package private)  float[] interLeavedVertexData
           
(package private)  boolean inUpdater
           
(package private)  boolean isCompiled
           
(package private)  boolean isShared
           
private  float[] lastAlpha
           
(package private)  float lastScreenAlpha
           
(package private)  int mirrorColorAllocated
           
(package private)  double[] mirrorDoubleRefCoords
           
(package private)  float[][] mirrorFloatRefColors
           
(package private)  float[] mirrorFloatRefCoords
           
(package private)  float[] mirrorFloatRefNormals
           
(package private)  float[] mirrorFloatRefTexCoords
           
(package private)  float[][] mirrorFloatRefVertexAttrs
           
(package private)  float[][] mirrorInterleavedColorPointer
           
(package private)  boolean mirrorNormalAllocated
           
(package private)  java.lang.Object[] mirrorRefTexCoords
           
(package private)  byte[][] mirrorUnsignedByteRefColors
           
(package private)  int mirrorVertexAllocated
           
(package private)  java.util.ArrayList morphUniverseList
           
(package private)  java.util.ArrayList morphUserLists
           
private  float[][] mvertexData
           
(package private) static int N3F
           
(package private) static int NF
           
(package private)  java.lang.Object[] nioFloatBufferRefVertexAttrs
           
(package private) static int NORMAL_CHANGED
           
(package private) static int NORMAL_DEFINED
           
(package private) static int NORMAL_FLOAT
           
(package private)  int normalOffset
           
(package private)  J3DBuffer normalRefBuffer
           
(package private) static int P3D
           
(package private)  Point3d[] p3dRefCoords
           
(package private) static int P3F
           
(package private)  Point3f[] p3fRefCoords
           
(package private) static int PD
           
(package private) static int PF
           
(package private)  long pVertexBuffers
           
(package private)  java.lang.Object[] refTexCoords
           
(package private)  java.lang.Object[] refTexCoordsBuffer
           
(package private)  int resourceCreationMask
           
(package private)  int stride
           
(package private) static int STRIPCOUNT_CHANGED
           
(package private) static int T2F
           
(package private)  TexCoord2f[] t2fRefTexCoords
           
(package private) static int T3F
           
(package private)  TexCoord3f[] t3fRefTexCoords
           
(package private) static int targetThreads
           
(package private) static int TEXCOORD_DEFINED
           
(package private) static int TEXCOORD_FLOAT
           
(package private)  int texCoordSetCount
           
(package private)  int[] texCoordSetMap
           
(package private)  int[] texCoordSetMapOffset
           
(package private)  int texCoordStride
           
private  int texCoordType
           
(package private) static int TEXTURE_CHANGED
           
(package private)  int textureOffset
           
(package private) static int TF
           
private  long[] timeStampPerDlist
           
(package private)  Vector3f[] v3fRefNormals
           
(package private)  int validVertexCount
           
(package private) static int VATTR_CHANGED
           
(package private) static int VATTR_DEFINED
           
(package private) static int VATTR_FLOAT
           
(package private) static int VERTEX_CHANGED
           
(package private) static int VERTEX_DEFINED
           
(package private)  int vertexAttrCount
           
(package private)  int[] vertexAttrOffsets
           
(package private)  int[] vertexAttrSizes
           
(package private)  J3DBuffer[] vertexAttrsRefBuffer
           
(package private)  int vertexAttrStride
           
private  int vertexAttrType
           
(package private)  int vertexCount
           
(package private)  float[] vertexData
           
(package private)  int vertexFormat
           
(package private)  int vertexType
           
 
Fields inherited from class javax.media.j3d.GeometryRetained
boundsDirty, cachedChangedFrequent, centroid, COMPRESS_TYPE, computeGeoBounds, EPSILON, GEO_TYPE_COMPRESSED, GEO_TYPE_GEOMETRYARRAY, GEO_TYPE_INDEXED_LINE_SET, GEO_TYPE_INDEXED_LINE_STRIP_SET, GEO_TYPE_INDEXED_POINT_SET, GEO_TYPE_INDEXED_QUAD_SET, GEO_TYPE_INDEXED_TRI_FAN_SET, GEO_TYPE_INDEXED_TRI_SET, GEO_TYPE_INDEXED_TRI_STRIP_SET, GEO_TYPE_LINE_SET, GEO_TYPE_LINE_STRIP_SET, GEO_TYPE_NONE, GEO_TYPE_POINT_SET, GEO_TYPE_QUAD_SET, GEO_TYPE_RASTER, GEO_TYPE_TEXT3D, GEO_TYPE_TOTAL, GEO_TYPE_TRI_FAN_SET, GEO_TYPE_TRI_SET, GEO_TYPE_TRI_STRIP_SET, geoBounds, geomLock, geoType, isDirty, isEditable, LINE_TYPE, liveStateLock, mirrorGeometry, nativeId, noAlpha, POINT_TYPE, QUAD_TYPE, RASTER_TYPE, recompCentroid, TEXT3D_TYPE, TRIANGLE_TYPE, universeList, userLists
 
Fields inherited from class javax.media.j3d.NodeComponentRetained
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users
 
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source
 
Fields inherited from class javax.media.j3d.IndexedObject
listIdx
 
Constructor Summary
GeometryArrayRetained()
           
 
Method Summary
(package private)  void addDlistUser(RenderBin renderBin, RenderAtomListInfo ra)
           
(package private)  void addMorphUser(MorphRetained m)
           
(package private)  void assignDlistId()
           
(package private)  void buildGA(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, boolean ignoreVertexColors, Transform3D xform, Transform3D nxform)
           
(package private)  void clearLive(int refCount)
           
(package private)  int colorOffset()
          Returns the offset in number of floats from the start of a vertex to the per-vertex color data.
(package private)  void compile(CompileState compState)
          This is the default compile() method, which just marks the sgo as compiled.
(package private)  void computeBoundingBox()
           
(package private)  void computeBoundingBox(double[] coords)
           
(package private)  void computeBoundingBox(DoubleBufferWrapper buffer)
           
(package private)  void computeBoundingBox(float[] coords)
           
(package private)  void computeBoundingBox(FloatBufferWrapper buffer)
           
(package private)  void computeBoundingBox(int vIndex, float[] vdata)
           
(package private)  void computeBoundingBox(int vIndex, FloatBufferWrapper vdata)
           
(package private)  void computeBoundingBox(Point3d[] coords)
           
(package private)  void computeBoundingBox(Point3f[] coords)
           
(package private)  void computeMinDistance(Point3d[] coordinates, Point3d center, Vector3d normal, double[] dist, Point3d iPnt)
           
(package private)  int coordinateOffset()
          Returns the offset in number of floats from the start of a vertex to the per vertex coordinate data.
(package private)  boolean coplanarTriTri(Vector3d normal, Point3d v0, Point3d v1, Point3d v2, Point3d u0, Point3d u1, Point3d u2)
           
(package private)  void createGeometryArrayData(int vertexCount, int vertexFormat)
           
(package private)  void createGeometryArrayData(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap)
           
(package private)  void createGeometryArrayData(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int vertexAttrCount, int[] vertexAttrSizes)
           
(package private)  double det2D(Point2d a, Point2d b, Point2d p)
           
(package private)  void disableGlobalAlpha(Context ctx, boolean useAlpha, boolean ignoreVC)
           
private  void doSetupMirrorTexCoordPointer(int texCoordSet, int type)
           
private  void doSetupMirrorVertexAttrPointer(int vertexAttrNum, int type)
           
(package private)  boolean edgeAgainstEdge(Point3d v0, Point3d u0, Point3d u1, double aX, double aY, int i0, int i1)
           
(package private)  boolean edgeAgainstTriEdges(Point3d v0, Point3d v1, Point3d u0, Point3d u1, Point3d u2, int i0, int i1)
           
(package private)  boolean edgeIntersectPlane(Vector3d normal, Point3d pnt, Point3d start, Point3d end, Point3d iPnt)
           
(package private)  boolean edgeIntersectPolygon2D(Vector3d normal, Point3d[] coord, Point3d[] seg)
           
(package private)  boolean edgeIntersectSphere(BoundingSphere sphere, Point3d start, Point3d end)
           
(package private)  void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)
           
(package private)  void freeD3DArray(boolean deleteVB)
           
(package private)  void freeDlistId()
           
(package private)  double generalStandardSimplexSolver(double[][] problemTableau, double stopingValue)
           
(package private)  void getColor(int index, byte[] color)
          Gets the color associated with the vertex at the specified index.
(package private)  void getColor(int index, Color3b color)
          Gets the color associated with the vertex at the specified index.
(package private)  void getColor(int index, Color3f color)
          Gets the color associated with the vertex at the specified index.
(package private)  void getColor(int index, Color4b color)
          Gets the color associated with the vertex at the specified index.
(package private)  void getColor(int index, Color4f color)
          Gets the color associated with the vertex at the specified index.
(package private)  void getColor(int index, float[] color)
          Gets the color associated with the vertex at the specified index.
(package private)  Color3b[] getColorRef3b()
           
(package private)  Color3f[] getColorRef3f()
           
(package private)  Color4b[] getColorRef4b()
           
(package private)  Color4f[] getColorRef4f()
           
(package private)  J3DBuffer getColorRefBuffer()
           
(package private)  byte[] getColorRefByte()
           
(package private)  float[] getColorRefFloat()
           
(package private)  void getColors(int index, byte[] colors)
          Gets the colors associated with the vertices starting at the specified index.
(package private)  void getColors(int index, Color3b[] colors)
          Gets the colors associated with the vertices starting at the specified index.
(package private)  void getColors(int index, Color3f[] colors)
          Gets the colors associated with the vertices starting at the specified index.
(package private)  void getColors(int index, Color4b[] colors)
          Gets the colors associated with the vertices starting at the specified index.
(package private)  void getColors(int index, Color4f[] colors)
          Gets the colors associated with the vertices starting at the specified index.
(package private)  void getColors(int index, float[] colors)
          Gets the colors associated with the vertices starting at the specified index.
(package private)  int getColorStride()
           
(package private)  double getCompValue(Point3d v, int i)
           
(package private)  double getCompValue(Point3d v0, Point3d v1, int i)
           
(package private)  void getCoordinate(int index, double[] coordinate)
          Gets the coordinate associated with the vertex at the specified index.
(package private)  void getCoordinate(int index, float[] coordinate)
          Gets the coordinate associated with the vertex at the specified index.
(package private)  void getCoordinate(int index, Point3d coordinate)
          Gets the coordinate associated with the vertex at the specified index.
(package private)  void getCoordinate(int index, Point3f coordinate)
          Gets the coordinate associated with the vertex at the specified index.
(package private)  void getCoordinates(int index, double[] coordinates)
          Gets the coordinates associated with the vertices starting at the specified index.
(package private)  void getCoordinates(int index, float[] coordinates)
          Gets the coordinates associated with the vertices starting at the specified index.
(package private)  void getCoordinates(int index, Point3d[] coordinates)
          Gets the coordinates associated with the vertices starting at the specified index.
(package private)  void getCoordinates(int index, Point3f[] coordinates)
          Gets the coordinates associated with the vertices starting at the specified index.
(package private)  Point3d[] getCoordRef3d()
           
(package private)  Point3f[] getCoordRef3f()
           
(package private)  J3DBuffer getCoordRefBuffer()
           
(package private)  double[] getCoordRefDouble()
           
(package private)  float[] getCoordRefFloat()
           
(package private)  void getCrossValue(Point3d p1, Point3d p2, Vector3d value)
           
(package private)  long getDlistTimeStamp(int rdrBit)
           
(package private)  int getIndex(int bit)
           
(package private)  int getInitialColorIndex()
           
(package private)  int getInitialCoordIndex()
           
(package private)  int getInitialNormalIndex()
           
(package private)  int getInitialTexCoordIndex(int texCoordSet)
           
(package private)  int getInitialVertexAttrIndex(int vertexAttrNum)
          Gets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object.
(package private)  int getInitialVertexIndex()
           
(package private)  J3DBuffer getInterleavedVertexBuffer()
           
(package private)  float[] getInterleavedVertices()
           
(package private)  void getNormal(int index, float[] normal)
          Gets the normal associated with the vertex at the specified index.
(package private)  void getNormal(int index, Vector3f normal)
          Gets the normal associated with the vertex at the specified index.
(package private)  Vector3f[] getNormalRef3f()
           
(package private)  J3DBuffer getNormalRefBuffer()
           
(package private)  float[] getNormalRefFloat()
           
(package private)  void getNormals(int index, float[] normals)
          Gets the normals associated with the vertices starting at the specified index.
(package private)  void getNormals(int index, Vector3f[] normals)
          Gets the normals associated with the vertices starting at the specified index.
(package private)  int getNumColorCount()
           
(package private)  int getNumCoordCount()
           
(package private)  int getNumNormalCount()
           
(package private)  int getNumTexCoordCount(int i)
           
(package private)  TexCoord2f[] getTexCoordRef2f(int texCoordSet)
           
(package private)  TexCoord3f[] getTexCoordRef3f(int texCoordSet)
           
(package private)  J3DBuffer getTexCoordRefBuffer(int texCoordSet)
           
(package private)  float[] getTexCoordRefFloat(int texCoordSet)
           
(package private)  int getTexCoordSetCount()
           
(package private)  void getTexCoordSetMap(int[] texCoordSetMap)
           
(package private)  int getTexCoordSetMapLength()
           
(package private)  int getTexCoordType()
           
(package private)  int getTexStride()
           
(package private)  void getTextureCoordinate(int texCoordSet, int index, float[] texCoord)
          Gets the texture co-ordinate associated with the vertex at the specified index.
(package private)  void getTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)
          Gets the texture co-ordinate associated with the vertex at the specified index.
(package private)  void getTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)
          Gets the texture co-ordinate associated with the vertex at the specified index.
(package private)  void getTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)
          Gets the texture co-ordinate associated with the vertex at the specified index.
(package private)  void getTextureCoordinates(int texCoordSet, int index, float[] texCoords)
          Gets the texture co-ordinates associated with the vertices starting at the specified index.
(package private)  void getTextureCoordinates(int texCoordSet, int index, Point2f[] texCoords)
           
(package private)  void getTextureCoordinates(int texCoordSet, int index, Point3f[] texCoords)
           
(package private)  void getTextureCoordinates(int texCoordSet, int index, TexCoord2f[] texCoords)
          Gets the texture co-ordinates associated with the vertices starting at the specified index.
(package private)  void getTextureCoordinates(int texCoordSet, int index, TexCoord3f[] texCoords)
          Gets the texture co-ordinates associated with the vertices starting at the specified index.
(package private)  void getTextureCoordinates(int texCoordSet, int index, TexCoord4f[] texCoords)
          Gets the texture co-ordinates associated with the vertices starting at the specified index.
(package private)  int getValidVertexCount()
           
 void getVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)
          Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
 void getVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)
          Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
 void getVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)
          Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
 void getVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)
          Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
(package private)  int getVertexAttrCount()
          Retrieves the number of vertex attributes in this GeometryArray object.
(package private)  J3DBuffer getVertexAttrRefBuffer(int vertexAttrNum)
          Gets the vertex attribute array buffer reference for the specified vertex attribute number.
(package private)  float[] getVertexAttrRefFloat(int vertexAttrNum)
          Gets the float vertex attribute array reference for the specified vertex attribute number.
 void getVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)
          Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
 void getVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)
          Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
 void getVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)
          Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
 void getVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)
          Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
(package private)  void getVertexAttrSizes(int[] vertexAttrSizes)
          Retrieves the vertex attribute sizes array from this GeometryArray object.
(package private)  int getVertexAttrType()
           
(package private)  int getVertexCount()
          Returns number of vertices in the GeometryArray
(package private)  void getVertexData(int i, Point3d pnts)
           
(package private)  int getVertexFormat()
          Returns vertexFormat in the GeometryArray
(package private)  void handleFrequencyChange(int bit)
           
(package private)  void initMirrorGeometry()
           
(package private)  boolean inside(Point3d[] coordinates, PickPoint point, int ccw)
          Return true if point is on the inside of halfspace test.
(package private)  boolean intersect(Transform3D thisLocalToVworld, Transform3D otherLocalToVworld, GeometryRetained geom)
           
(package private)  boolean intersectBoundingBox(Point3d[] coordinates, BoundingBox box, double[] dist, Point3d iPnt)
           
(package private)  boolean intersectBoundingPolytope(Point3d[] coordinates, BoundingPolytope polytope, double[] dist, Point3d iPnt)
           
(package private)  boolean intersectBoundingSphere(Point3d[] coordinates, BoundingSphere sphere, double[] dist, Point3d iPnt)
           
(package private)  boolean intersectCone(Point3d[] coordinates, PickCone cone, double[] dist, Point3d iPnt)
          Return true if triangle or quad intersects with cone.
(package private)  boolean intersectCone(Point3d pt, PickCone cone, double[] dist)
          Return true if point intersects with cone and the distance is stored in pi.
(package private)  boolean intersectCylinder(Point3d[] coordinates, PickCylinder cyl, double[] dist, Point3d iPnt)
          Return true if triangle or quad intersects with cylinder.
(package private)  boolean intersectCylinder(Point3d pt, PickCylinder cyl, double[] dist)
          Return true if point intersects with cylinder and the distance is stored in dist.
(package private)  boolean intersectLineAndRay(Point3d start, Point3d end, Point3d ori, Vector3d dir, double[] dist, Point3d iPnt)
           
(package private)  boolean intersectPntAndPnt(Point3d pnt1, Point3d pnt2)
           
(package private)  boolean intersectPntAndRay(Point3d pnt, Point3d ori, Vector3d dir, double[] dist)
           
(package private)  boolean intersectPolygon(Point3d[] coord1, Point3d[] coord2)
           
(package private)  boolean intersectRay(Point3d[] coordinates, PickRay ray, double[] dist, Point3d iPnt)
          Return true if triangle or quad intersects with ray and the distance is stored in dist[0] and the intersect point in iPnt (if iPnt is not null).
(package private)  boolean intersectRayOrSegment(Point3d[] coordinates, Vector3d direction, Point3d origin, double[] dist, Point3d iPnt, boolean isSegment)
          Return true if triangle or quad intersects with ray and the distance is stored in pr.
(package private)  boolean intersectSegment(Point3d[] coordinates, Point3d start, Point3d end, double[] dist, Point3d iPnt)
          Return true if triangle or quad intersects with segment and the distance is stored in dist[0].
(package private)  boolean intersectTriPnt(Point3d v0, Point3d v1, Point3d v2, Point3d u)
           
(package private)  boolean intersectTriTri(Point3d v0, Point3d v1, Point3d v2, Point3d u0, Point3d u1, Point3d u2)
          Return flag indicating whether two triangles intersect.
(package private)  boolean isDlistUserSetEmpty(RenderBin renderBin)
           
(package private)  boolean isMergeable()
           
(package private) static boolean isNonZero(double v)
           
(package private)  boolean isWriteStatic()
           
(package private)  void mergeGeometryArrays(java.util.ArrayList list)
           
(package private)  void mergeTransform(TransformGroupRetained xform)
           
(package private)  int normalOffset()
          Returns the offset in number of floats from the start of a vertex to the per-vertex normal data.
(package private)  int numDlistUsers(RenderBin renderBin)
           
(package private)  boolean pointIntersectPolygon2D(Vector3d normal, Point3d[] coord, Point3d point)
           
(package private)  boolean pointInTri(Point3d v0, Point3d u0, Point3d u1, Point3d u2, int i0, int i1)
           
(package private)  boolean pointInTri(Point3d v0, Point3d u0, Point3d u1, Point3d u2, Vector3d normal)
           
(package private)  void processCoordsChanged(boolean nullGeo)
           
(package private)  void removeDlistUser(RenderBin renderBin, RenderAtomListInfo ra)
           
(package private)  void removeMorphUser(MorphRetained m)
           
(package private)  void sendDataChangedMessage(boolean coordinatesChanged)
           
(package private)  void setColor(int index, byte[] color)
          Sets the color associated with the vertex at the specified index.
(package private)  void setColor(int index, Color3b color)
          Sets the color associated with the vertex at the specified index.
(package private)  void setColor(int index, Color3f color)
          Sets the color associated with the vertex at the specified index.
(package private)  void setColor(int index, Color4b color)
          Sets the color associated with the vertex at the specified index.
(package private)  void setColor(int index, Color4f color)
          Sets the color associated with the vertex at the specified index.
(package private)  void setColor(int index, float[] color)
          Sets the color associated with the vertex at the specified index.
(package private)  void setColorRef3b(Color3b[] colors)
           
(package private)  void setColorRef3f(Color3f[] colors)
           
(package private)  void setColorRef4b(Color4b[] colors)
           
(package private)  void setColorRef4f(Color4f[] colors)
           
(package private)  void setColorRefBuffer(J3DBuffer colors)
           
(package private)  void setColorRefByte(byte[] colors)
           
(package private)  void setColorRefFloat(float[] colors)
           
(package private)  void setColors(int index, byte[] colors)
          Sets the colors associated with the vertices starting at the specified index.
(package private)  void setColors(int index, byte[] colors, int start, int length)
          Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
(package private)  void setColors(int index, Color3b[] colors)
          Sets the colors associated with the vertices starting at the specified index.
(package private)  void setColors(int index, Color3b[] colors, int start, int length)
          Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
(package private)  void setColors(int index, Color3f[] colors)
          Sets the colors associated with the vertices starting at the specified index.
(package private)  void setColors(int index, Color3f[] colors, int start, int length)
          Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
(package private)  void setColors(int index, Color4b[] colors)
          Sets the colors associated with the vertices starting at the specified index.
(package private)  void setColors(int index, Color4b[] colors, int start, int length)
          Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
(package private)  void setColors(int index, Color4f[] colors)
          Sets the colors associated with the vertices starting at the specified index.
(package private)  void setColors(int index, Color4f[] colors, int start, int length)
          Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
(package private)  void setColors(int index, float[] colors)
          Sets the colors associated with the vertices starting at the specified index.
(package private)  void setColors(int index, float[] colors, int start, int length)
          Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
(package private)  void setCompiled(java.util.ArrayList curList)
          The functions below are only used in compile mode
(package private)  void setCoordinate(int index, double[] coordinate)
          Sets the coordinate associated with the vertex at the specified index.
(package private)  void setCoordinate(int index, float[] coordinate)
          Sets the coordinate associated with the vertex at the specified index.
(package private)  void setCoordinate(int index, Point3d coordinate)
          Sets the coordinate associated with the vertex at the specified index.
(package private)  void setCoordinate(int index, Point3f coordinate)
          Sets the coordinate associated with the vertex at the specified index.
(package private)  void setCoordinates(int index, double[] coordinates)
          Sets the coordinates associated with the vertices starting at the specified index.
(package private)  void setCoordinates(int index, double[] coordinates, int start, int length)
          Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
(package private)  void setCoordinates(int index, float[] coordinates)
          Sets the coordinates associated with the vertices starting at the specified index.
(package private)  void setCoordinates(int index, float[] coordinates, int start, int length)
          Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
(package private)  void setCoordinates(int index, Point3d[] coordinates)
          Sets the coordinates associated with the vertices starting at the specified index.
(package private)  void setCoordinates(int index, Point3d[] coordinates, int start, int length)
          Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
(package private)  void setCoordinates(int index, Point3f[] coordinates)
          Sets the coordinates associated with the vertices starting at the specified index.
(package private)  void setCoordinates(int index, Point3f[] coordinates, int start, int length)
          Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
(package private)  void setCoordRef3d(Point3d[] coords)
           
(package private)  void setCoordRef3f(Point3f[] coords)
           
(package private)  void setCoordRefBuffer(J3DBuffer coords)
           
(package private)  void setCoordRefDouble(double[] coords)
           
(package private)  void setCoordRefFloat(float[] coords)
           
(package private)  void setDlistTimeStamp(int rdrBit, long timeStamp)
           
(package private)  void setInitialColorIndex(int initialColorIndex)
           
(package private)  void setInitialCoordIndex(int initialCoordIndex)
           
(package private)  void setInitialNormalIndex(int initialNormalIndex)
           
(package private)  void setInitialTexCoordIndex(int texCoordSet, int initialTexCoordIndex)
           
(package private)  void setInitialVertexAttrIndex(int vertexAttrNum, int initialVertexAttrIndex)
          Sets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object.
(package private)  void setInitialVertexIndex(int initialVertexIndex)
           
(package private)  void setInterleavedVertexBuffer(J3DBuffer vertexData)
           
(package private)  void setInterleavedVertices(float[] vertexData)
           
(package private)  void setLive(boolean inBackgroundGroup, int refCount)
           
(package private)  void setNormal(int index, float[] normal)
          Sets the normal associated with the vertex at the specified index.
(package private)  void setNormal(int index, Vector3f normal)
          Sets the normal associated with the vertex at the specified index.
(package private)  void setNormalRef3f(Vector3f[] normals)
           
(package private)  void setNormalRefBuffer(J3DBuffer normals)
           
(package private)  void setNormalRefFloat(float[] normals)
           
(package private)  void setNormals(int index, float[] normals)
          Sets the normals associated with the vertices starting at the specified index.
(package private)  void setNormals(int index, float[] normals, int start, int length)
          Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.
(package private)  void setNormals(int index, Vector3f[] normals)
          Sets the normals associated with the vertices starting at the specified index.
(package private)  void setNormals(int index, Vector3f[] normals, int start, int length)
          Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.
(package private)  void setTexCoordRef2f(int texCoordSet, TexCoord2f[] texCoords)
           
(package private)  void setTexCoordRef3f(int texCoordSet, TexCoord3f[] texCoords)
           
(package private)  void setTexCoordRefBuffer(int texCoordSet, J3DBuffer texCoords)
           
(package private)  void setTexCoordRefFloat(int texCoordSet, float[] texCoords)
           
(package private)  void setTextureCoordinates(int texCoordSet, int index, float[] texCoords, int start, int length)
          Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.
(package private)  void setTextureCoordinates(int texCoordSet, int index, Point2f[] texCoords, int start, int length)
          Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.
(package private)  void setTextureCoordinates(int texCoordSet, int index, Point3f[] texCoords, int start, int length)
          Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.
(package private)  void setTextureCoordinates(int texCoordSet, int index, TexCoord2f[] texCoords, int start, int length)
          Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.
(package private)  void setTextureCoordinates(int texCoordSet, int index, TexCoord3f[] texCoords, int start, int length)
          Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.
(package private)  void setTextureCoordinates(int texCoordSet, int index, TexCoord4f[] texCoords, int start, int length)
          Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.
(package private)  void setupMirrorColorPointer(int ctype, boolean force)
           
(package private)  void setupMirrorInterleavedColorPointer(boolean force)
           
(package private)  void setupMirrorNormalPointer(int ntype)
           
(package private)  void setupMirrorTexCoordPointer(int type)
           
(package private)  void setupMirrorTexCoordPointer(int texCoordSet, int type)
           
(package private)  void setupMirrorVertexAttrPointer(int type)
           
(package private)  void setupMirrorVertexAttrPointer(int vertexAttrNum, int type)
           
(package private)  void setupMirrorVertexPointer(int vType)
           
(package private)  void setValidVertexCount(int validVertexCount)
           
(package private)  void setVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)
          Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
(package private)  void setVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)
          Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
(package private)  void setVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)
          Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
(package private)  void setVertexAttrRefBuffer(int vertexAttrNum, J3DBuffer vertexAttrs)
          Sets the vertex attribute buffer reference for the specified vertex attribute number to the specified buffer object.
(package private)  void setVertexAttrRefFloat(int vertexAttrNum, float[] vertexAttrs)
          Sets the float vertex attribute array reference for the specified vertex attribute number to the specified array.
(package private)  void setVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs, int start, int length)
          Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
(package private)  void setVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs, int start, int length)
          Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
(package private)  void setVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs, int start, int length)
          Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
(package private)  void setVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs, int start, int length)
          Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
(package private)  void setVertexFormat(boolean useAlpha, boolean ignoreVC, Context ctx)
           
(package private)  int stride()
          Returns the vertex stride in numbers of floats as a function of the vertexFormat.
(package private)  int[] texCoordSetMapOffset()
           
(package private)  int textureOffset()
          Returns the offset in number of floats from the start of a vertex to the per-vertex texture coordinate data.
(package private)  void unIndexify(IndexedGeometryArrayRetained src)
           
private  void unIndexifyJavaArray(IndexedGeometryArrayRetained src)
           
private  void unIndexifyNIOBuffer(IndexedGeometryArrayRetained src)
           
(package private)  void update()
           
(package private)  byte[] updateAlphaInByteRefColors(Canvas3D cv, int screen, float alpha)
           
(package private)  float[] updateAlphaInFloatRefColors(Canvas3D cv, int screen, float alpha)
           
(package private)  java.lang.Object[] updateAlphaInInterLeavedData(Canvas3D cv, int screen, float alpha)
           
(package private)  java.lang.Object[] updateAlphaInVertexData(Canvas3D cv, int screen, float alpha)
           
(package private)  void updateData(GeometryUpdater updater)
          Updates geometry array data.
(package private)  void updateMirrorGeometry()
           
private  void validateTexCoordPointerType()
           
private  void validateVertexAttrPointerType()
           
(package private)  int[] vertexAttrOffsets()
          Returns the offset in number of floats from the start of a vertex to each per-vertex vertex attribute.
(package private)  int vertexAttrStride()
          Returns the stride of the set of vertex attributes.
 
Methods inherited from class javax.media.j3d.GeometryRetained
addUser, canBeInDisplayList, computeCentroid, decrComputeGeoBounds, doSetLive, getClassType, incrComputeGeoBounds, intersect, intersect, intersect, intersect, intersect, isEquivalenceClass, removeUser, storeInterestData, updateObject
 
Methods inherited from class javax.media.j3d.NodeComponentRetained
addAMirrorUser, addUser, clone, copyMirrorUsers, createMirrorObject, decRefCnt, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, initMirrorObject, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, updateMirrorObject
 
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained
clearLive, clearLive, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, setCompiled, setLive, setLive, setSource, traverse
 
Methods inherited from class javax.media.j3d.IndexedObject
getIdxUsed, incIdxUsed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertexFormat

int vertexFormat

c4fAllocated

int c4fAllocated

vertexCount

int vertexCount

validVertexCount

int validVertexCount

vertexData

float[] vertexData

mvertexData

private float[][] mvertexData

stride

int stride

texCoordStride

int texCoordStride

coordinateOffset

int coordinateOffset

normalOffset

int normalOffset

colorOffset

int colorOffset

textureOffset

int textureOffset

vertexAttrOffsets

int[] vertexAttrOffsets

vertexAttrStride

int vertexAttrStride

lastAlpha

private float[] lastAlpha

lastScreenAlpha

float lastScreenAlpha

colorChanged

int colorChanged

ByteToFloatScale

static final float ByteToFloatScale
See Also:
Constant Field Values

FloatToByteScale

static final float FloatToByteScale
See Also:
Constant Field Values

inUpdater

boolean inUpdater

gaList

java.util.ArrayList gaList

targetThreads

static final int targetThreads
See Also:
Constant Field Values

floatRefCoords

float[] floatRefCoords

doubleRefCoords

double[] doubleRefCoords

p3dRefCoords

Point3d[] p3dRefCoords

p3fRefCoords

Point3f[] p3fRefCoords

coordRefBuffer

J3DBuffer coordRefBuffer

floatBufferRefCoords

FloatBufferWrapper floatBufferRefCoords

doubleBufferRefCoords

DoubleBufferWrapper doubleBufferRefCoords

initialCoordIndex

int initialCoordIndex

initialColorIndex

int initialColorIndex

initialNormalIndex

int initialNormalIndex

initialTexCoordIndex

int[] initialTexCoordIndex

initialVertexAttrIndex

int[] initialVertexAttrIndex

initialVertexIndex

int initialVertexIndex

floatRefColors

float[] floatRefColors

byteRefColors

byte[] byteRefColors

c3fRefColors

Color3f[] c3fRefColors

c4fRefColors

Color4f[] c4fRefColors

c3bRefColors

Color3b[] c3bRefColors

c4bRefColors

Color4b[] c4bRefColors

colorRefBuffer

J3DBuffer colorRefBuffer

floatBufferRefColors

FloatBufferWrapper floatBufferRefColors

byteBufferRefColors

ByteBufferWrapper byteBufferRefColors

vertexType

int vertexType

PF

static final int PF
See Also:
Constant Field Values

PD

static final int PD
See Also:
Constant Field Values

P3F

static final int P3F
See Also:
Constant Field Values

P3D

static final int P3D
See Also:
Constant Field Values

VERTEX_DEFINED

static final int VERTEX_DEFINED
See Also:
Constant Field Values

CF

static final int CF
See Also:
Constant Field Values

CUB

static final int CUB
See Also:
Constant Field Values

C3F

static final int C3F
See Also:
Constant Field Values

C4F

static final int C4F
See Also:
Constant Field Values

C3UB

static final int C3UB
See Also:
Constant Field Values

C4UB

static final int C4UB
See Also:
Constant Field Values

COLOR_DEFINED

static final int COLOR_DEFINED
See Also:
Constant Field Values

NF

static final int NF
See Also:
Constant Field Values

N3F

static final int N3F
See Also:
Constant Field Values

NORMAL_DEFINED

static final int NORMAL_DEFINED
See Also:
Constant Field Values

TF

static final int TF
See Also:
Constant Field Values

T2F

static final int T2F
See Also:
Constant Field Values

T3F

static final int T3F
See Also:
Constant Field Values

TEXCOORD_DEFINED

static final int TEXCOORD_DEFINED
See Also:
Constant Field Values

AF

static final int AF
See Also:
Constant Field Values

VATTR_DEFINED

static final int VATTR_DEFINED
See Also:
Constant Field Values

texCoordType

private int texCoordType

vertexAttrType

private int vertexAttrType

COORD_FLOAT

static final int COORD_FLOAT
See Also:
Constant Field Values

COORD_DOUBLE

static final int COORD_DOUBLE
See Also:
Constant Field Values

COLOR_FLOAT

static final int COLOR_FLOAT
See Also:
Constant Field Values

COLOR_BYTE

static final int COLOR_BYTE
See Also:
Constant Field Values

NORMAL_FLOAT

static final int NORMAL_FLOAT
See Also:
Constant Field Values

TEXCOORD_FLOAT

static final int TEXCOORD_FLOAT
See Also:
Constant Field Values

VATTR_FLOAT

static final int VATTR_FLOAT
See Also:
Constant Field Values

floatRefNormals

float[] floatRefNormals

v3fRefNormals

Vector3f[] v3fRefNormals

normalRefBuffer

J3DBuffer normalRefBuffer

floatBufferRefNormals

FloatBufferWrapper floatBufferRefNormals

floatRefVertexAttrs

float[][] floatRefVertexAttrs

vertexAttrsRefBuffer

J3DBuffer[] vertexAttrsRefBuffer

floatBufferRefVertexAttrs

FloatBufferWrapper[] floatBufferRefVertexAttrs

nioFloatBufferRefVertexAttrs

java.lang.Object[] nioFloatBufferRefVertexAttrs

refTexCoords

java.lang.Object[] refTexCoords

t2fRefTexCoords

TexCoord2f[] t2fRefTexCoords

t3fRefTexCoords

TexCoord3f[] t3fRefTexCoords

refTexCoordsBuffer

java.lang.Object[] refTexCoordsBuffer

interLeavedVertexData

float[] interLeavedVertexData

interleavedVertexBuffer

J3DBuffer interleavedVertexBuffer

interleavedFloatBufferImpl

FloatBufferWrapper interleavedFloatBufferImpl

mirrorFloatRefCoords

float[] mirrorFloatRefCoords

mirrorDoubleRefCoords

double[] mirrorDoubleRefCoords

mirrorFloatRefNormals

float[] mirrorFloatRefNormals

mirrorFloatRefVertexAttrs

float[][] mirrorFloatRefVertexAttrs

mirrorFloatRefTexCoords

float[] mirrorFloatRefTexCoords

mirrorRefTexCoords

java.lang.Object[] mirrorRefTexCoords

mirrorFloatRefColors

float[][] mirrorFloatRefColors

mirrorUnsignedByteRefColors

byte[][] mirrorUnsignedByteRefColors

mirrorInterleavedColorPointer

float[][] mirrorInterleavedColorPointer

mirrorVertexAllocated

int mirrorVertexAllocated

mirrorColorAllocated

int mirrorColorAllocated

mirrorNormalAllocated

boolean mirrorNormalAllocated

COORDINATE_CHANGED

static final int COORDINATE_CHANGED
See Also:
Constant Field Values

NORMAL_CHANGED

static final int NORMAL_CHANGED
See Also:
Constant Field Values

COLOR_CHANGED

static final int COLOR_CHANGED
See Also:
Constant Field Values

TEXTURE_CHANGED

static final int TEXTURE_CHANGED
See Also:
Constant Field Values

BOUNDS_CHANGED

static final int BOUNDS_CHANGED
See Also:
Constant Field Values

INDEX_CHANGED

static final int INDEX_CHANGED
See Also:
Constant Field Values

STRIPCOUNT_CHANGED

static final int STRIPCOUNT_CHANGED
See Also:
Constant Field Values

VATTR_CHANGED

static final int VATTR_CHANGED
See Also:
Constant Field Values

VERTEX_CHANGED

static final int VERTEX_CHANGED
See Also:
Constant Field Values

defaultTexCoordSetMap

static final int[] defaultTexCoordSetMap

texCoordSetCount

int texCoordSetCount

texCoordSetMap

int[] texCoordSetMap

texCoordSetMapOffset

int[] texCoordSetMapOffset

vertexAttrCount

int vertexAttrCount

vertexAttrSizes

int[] vertexAttrSizes

pVertexBuffers

long pVertexBuffers

dirtyFlag

int dirtyFlag

resourceCreationMask

int resourceCreationMask

dlistUsers

private java.util.HashMap dlistUsers

timeStampPerDlist

private long[] timeStampPerDlist

dlistId

int dlistId

dlistObj

java.lang.Integer dlistObj

INIT_MIRROR_GEOMETRY

static final int INIT_MIRROR_GEOMETRY
See Also:
Constant Field Values

morphUniverseList

java.util.ArrayList morphUniverseList

morphUserLists

java.util.ArrayList morphUserLists

geoOffset

int[] geoOffset

compileVcount

int[] compileVcount

isCompiled

boolean isCompiled

isShared

boolean isShared

cloneSourceArray

IndexedGeometryArrayRetained cloneSourceArray

EPS

static final double EPS
See Also:
Constant Field Values
Constructor Detail

GeometryArrayRetained

GeometryArrayRetained()
Method Detail

freeD3DArray

void freeD3DArray(boolean deleteVB)

setLive

void setLive(boolean inBackgroundGroup,
             int refCount)
Overrides:
setLive in class GeometryRetained

clearLive

void clearLive(int refCount)
Overrides:
clearLive in class NodeComponentRetained

computeBoundingBox

void computeBoundingBox()
Specified by:
computeBoundingBox in class GeometryRetained

processCoordsChanged

void processCoordsChanged(boolean nullGeo)

computeBoundingBox

void computeBoundingBox(int vIndex,
                        float[] vdata)

computeBoundingBox

void computeBoundingBox(int vIndex,
                        FloatBufferWrapper vdata)

computeBoundingBox

void computeBoundingBox(DoubleBufferWrapper buffer)

computeBoundingBox

void computeBoundingBox(FloatBufferWrapper buffer)

computeBoundingBox

void computeBoundingBox(float[] coords)

computeBoundingBox

void computeBoundingBox(double[] coords)

computeBoundingBox

void computeBoundingBox(Point3f[] coords)

computeBoundingBox

void computeBoundingBox(Point3d[] coords)

update

void update()
Specified by:
update in class GeometryRetained

setupMirrorVertexPointer

void setupMirrorVertexPointer(int vType)

setupMirrorInterleavedColorPointer

void setupMirrorInterleavedColorPointer(boolean force)

setupMirrorColorPointer

void setupMirrorColorPointer(int ctype,
                             boolean force)

setupMirrorNormalPointer

void setupMirrorNormalPointer(int ntype)

setupMirrorTexCoordPointer

void setupMirrorTexCoordPointer(int type)

setupMirrorTexCoordPointer

void setupMirrorTexCoordPointer(int texCoordSet,
                                int type)

validateTexCoordPointerType

private void validateTexCoordPointerType()

doSetupMirrorTexCoordPointer

private void doSetupMirrorTexCoordPointer(int texCoordSet,
                                          int type)

setupMirrorVertexAttrPointer

void setupMirrorVertexAttrPointer(int type)

setupMirrorVertexAttrPointer

void setupMirrorVertexAttrPointer(int vertexAttrNum,
                                  int type)

validateVertexAttrPointerType

private void validateVertexAttrPointerType()

doSetupMirrorVertexAttrPointer

private void doSetupMirrorVertexAttrPointer(int vertexAttrNum,
                                            int type)

createGeometryArrayData

void createGeometryArrayData(int vertexCount,
                             int vertexFormat)

createGeometryArrayData

void createGeometryArrayData(int vertexCount,
                             int vertexFormat,
                             int texCoordSetCount,
                             int[] texCoordSetMap)

createGeometryArrayData

void createGeometryArrayData(int vertexCount,
                             int vertexFormat,
                             int texCoordSetCount,
                             int[] texCoordSetMap,
                             int vertexAttrCount,
                             int[] vertexAttrSizes)

setVertexFormat

void setVertexFormat(boolean useAlpha,
                     boolean ignoreVC,
                     Context ctx)

disableGlobalAlpha

void disableGlobalAlpha(Context ctx,
                        boolean useAlpha,
                        boolean ignoreVC)

updateAlphaInFloatRefColors

float[] updateAlphaInFloatRefColors(Canvas3D cv,
                                    int screen,
                                    float alpha)

updateAlphaInByteRefColors

byte[] updateAlphaInByteRefColors(Canvas3D cv,
                                  int screen,
                                  float alpha)

updateAlphaInVertexData

java.lang.Object[] updateAlphaInVertexData(Canvas3D cv,
                                           int screen,
                                           float alpha)

updateAlphaInInterLeavedData

java.lang.Object[] updateAlphaInInterLeavedData(Canvas3D cv,
                                                int screen,
                                                float alpha)

execute

void execute(Canvas3D cv,
             RenderAtom ra,
             boolean isNonUniformScale,
             boolean updateAlpha,
             float alpha,
             int screen,
             boolean ignoreVertexColors)
Specified by:
execute in class GeometryRetained

buildGA

void buildGA(Canvas3D cv,
             RenderAtom ra,
             boolean isNonUniformScale,
             boolean updateAlpha,
             float alpha,
             boolean ignoreVertexColors,
             Transform3D xform,
             Transform3D nxform)

unIndexify

void unIndexify(IndexedGeometryArrayRetained src)

unIndexifyJavaArray

private void unIndexifyJavaArray(IndexedGeometryArrayRetained src)

unIndexifyNIOBuffer

private void unIndexifyNIOBuffer(IndexedGeometryArrayRetained src)

stride

int stride()
Returns the vertex stride in numbers of floats as a function of the vertexFormat.

Returns:
the stride in floats for this vertex array

texCoordSetMapOffset

int[] texCoordSetMapOffset()

vertexAttrStride

int vertexAttrStride()
Returns the stride of the set of vertex attributes. This is the sum of the sizes of each vertex attribute.

Returns:
the stride of the vertex attribute data

vertexAttrOffsets

int[] vertexAttrOffsets()
Returns the offset in number of floats from the start of a vertex to each per-vertex vertex attribute.

Returns:
array of offsets in floats vertex start to the vertex attribute data

textureOffset

int textureOffset()
Returns the offset in number of floats from the start of a vertex to the per-vertex texture coordinate data. texture coordinate data always follows vertex attribute data

Returns:
the offset in floats vertex start to the tetxure data

colorOffset

int colorOffset()
Returns the offset in number of floats from the start of a vertex to the per-vertex color data. color data always follows texture data

Parameters:
vertexFormat - the vertex format for this array
Returns:
the offset in floats vertex start to the color data

normalOffset

int normalOffset()
Returns the offset in number of floats from the start of a vertex to the per-vertex normal data. normal data always follows color data

Returns:
the offset in floats from the start of a vertex to the normal

coordinateOffset

int coordinateOffset()
Returns the offset in number of floats from the start of a vertex to the per vertex coordinate data.

Returns:
the offset in floats vertex start to the coordinate data

getVertexCount

int getVertexCount()
Returns number of vertices in the GeometryArray

Returns:
vertexCount number of vertices in the GeometryArray

getVertexFormat

int getVertexFormat()
Returns vertexFormat in the GeometryArray

Overrides:
getVertexFormat in class GeometryRetained
Returns:
vertexFormat format of vertices in the GeometryArray

getVertexAttrCount

int getVertexAttrCount()
Retrieves the number of vertex attributes in this GeometryArray object.

Returns:
the number of vertex attributes in this GeometryArray object

getVertexAttrSizes

void getVertexAttrSizes(int[] vertexAttrSizes)
Retrieves the vertex attribute sizes array from this GeometryArray object.

Parameters:
vertexAttrSizes - an array that will receive a copy of the vertex attribute sizes array. The array must hold at least vertexAttrCount elements.

sendDataChangedMessage

void sendDataChangedMessage(boolean coordinatesChanged)

setCoordinate

void setCoordinate(int index,
                   float[] coordinate)
Sets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - an array of 3 values containing the new coordinate

setCoordinate

void setCoordinate(int index,
                   double[] coordinate)
Sets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - an array of 3 values containing the new coordinate

setCoordinate

void setCoordinate(int index,
                   Point3f coordinate)
Sets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - a vector containing the new coordinate

setCoordinate

void setCoordinate(int index,
                   Point3d coordinate)
Sets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - a vector containing the new coordinate

setCoordinates

void setCoordinates(int index,
                    float[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of 3*n values containing n new coordinates

setCoordinates

void setCoordinates(int index,
                    double[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of 3*n values containing n new coordinates

setCoordinates

void setCoordinates(int index,
                    Point3f[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of vectors containing new coordinates

setCoordinates

void setCoordinates(int index,
                    Point3d[] coordinates)
Sets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of vectors containing new coordinates

setCoordinates

void setCoordinates(int index,
                    float[] coordinates,
                    int start,
                    int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.

Parameters:
index - the vertex index
coordinates - an array of vectors containing new coordinates
start - starting vertex index of data in coordinates .
length - number of vertices to be copied.

setCoordinates

void setCoordinates(int index,
                    double[] coordinates,
                    int start,
                    int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.

Parameters:
index - the vertex index
coordinates - an array of 3*n values containing n new coordinates
start - starting vertex index of data in coordinates .
length - number of vertices to be copied.

setCoordinates

void setCoordinates(int index,
                    Point3f[] coordinates,
                    int start,
                    int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.

Parameters:
index - the vertex index
coordinates - an array of vectors containing new coordinates
start - starting vertex index of data in coordinates .
length - number of vertices to be copied.

setCoordinates

void setCoordinates(int index,
                    Point3d[] coordinates,
                    int start,
                    int length)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.

Parameters:
index - the vertex index
coordinates - an array of vectors containing new coordinates
start - starting vertex index of data in coordinates .
length - number of vertices to be copied.

setColor

void setColor(int index,
              float[] color)
Sets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - an array of 3 or 4 values containing the new color

setColor

void setColor(int index,
              byte[] color)
Sets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - an array of 3 or 4 values containing the new color

setColor

void setColor(int index,
              Color3f color)
Sets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector containing the new color

setColor

void setColor(int index,
              Color4f color)
Sets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector containing the new color

setColor

void setColor(int index,
              Color3b color)
Sets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector containing the new color

setColor

void setColor(int index,
              Color4b color)
Sets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector containing the new color

setColors

void setColors(int index,
               float[] colors)
Sets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors

setColors

void setColors(int index,
               byte[] colors)
Sets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors

setColors

void setColors(int index,
               Color3f[] colors)
Sets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors containing new colors

setColors

void setColors(int index,
               Color4f[] colors)
Sets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors containing new colors

setColors

void setColors(int index,
               Color3b[] colors)
Sets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors containing new colors

setColors

void setColors(int index,
               Color4b[] colors)
Sets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors containing new colors

setColors

void setColors(int index,
               float[] colors,
               int start,
               int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors
start - starting color index of data in colors.
length - number of colors to be copied.

setColors

void setColors(int index,
               byte[] colors,
               int start,
               int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors
start - starting color index of data in colors.
length - number of colors to be copied.

setColors

void setColors(int index,
               Color3f[] colors,
               int start,
               int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors
start - starting color index of data in colors.
length - number of colors to be copied.

setColors

void setColors(int index,
               Color4f[] colors,
               int start,
               int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors
start - starting color index of data in colors.
length - number of colors to be copied.

setColors

void setColors(int index,
               Color3b[] colors,
               int start,
               int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors
start - starting color index of data in colors.
length - number of colors to be copied.

setColors

void setColors(int index,
               Color4b[] colors,
               int start,
               int length)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values containing n new colors
start - starting color index of data in colors.
length - number of colors to be copied.

setNormal

void setNormal(int index,
               float[] normal)
Sets the normal associated with the vertex at the specified index.

Parameters:
index - the vertex index
normal - the new normal

setNormal

void setNormal(int index,
               Vector3f normal)
Sets the normal associated with the vertex at the specified index.

Parameters:
index - the vertex index
normal - the vector containing the new normal

setNormals

void setNormals(int index,
                float[] normals)
Sets the normals associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
normals - the new normals

setNormals

void setNormals(int index,
                Vector3f[] normals)
Sets the normals associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
normals - the vector containing the new normals

setNormals

void setNormals(int index,
                float[] normals,
                int start,
                int length)
Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.

Parameters:
index - the vertex index
normals - the new normals
start - starting normal index of data in colors .
length - number of normals to be copied.

setNormals

void setNormals(int index,
                Vector3f[] normals,
                int start,
                int length)
Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.

Parameters:
index - the vertex index
normals - the new normals
start - starting normal index of data in colors .
length - number of normals to be copied.

setTextureCoordinates

void setTextureCoordinates(int texCoordSet,
                           int index,
                           float[] texCoords,
                           int start,
                           int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.

Parameters:
index - the vertex index
texCoords - the new texture coordinates
start - starting texture coordinate index of data in texCoords .
length - number of texture Coordinates to be copied.

setTextureCoordinates

void setTextureCoordinates(int texCoordSet,
                           int index,
                           Point2f[] texCoords,
                           int start,
                           int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.

Parameters:
index - the vertex index
texCoords - the new texture coordinates
start - starting texture coordinate index of data in texCoords .
length - number of texture Coordinates to be copied.

setTextureCoordinates

void setTextureCoordinates(int texCoordSet,
                           int index,
                           Point3f[] texCoords,
                           int start,
                           int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.

Parameters:
index - the vertex index
texCoords - the new texture coordinates
start - starting texture coordinate index of data in texCoords .
length - number of texture Coordinates to be copied.

setTextureCoordinates

void setTextureCoordinates(int texCoordSet,
                           int index,
                           TexCoord2f[] texCoords,
                           int start,
                           int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.

Parameters:
index - the vertex index
texCoords - the new texture coordinates
start - starting texture coordinate index of data in texCoords .
length - number of texture Coordinates to be copied.

setTextureCoordinates

void setTextureCoordinates(int texCoordSet,
                           int index,
                           TexCoord3f[] texCoords,
                           int start,
                           int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.

Parameters:
index - the vertex index
texCoords - the new texture coordinates
start - starting texture coordinate index of data in texCoords .
length - number of texture Coordinates to be copied.

setTextureCoordinates

void setTextureCoordinates(int texCoordSet,
                           int index,
                           TexCoord4f[] texCoords,
                           int start,
                           int length)
Sets the texture coordinates associated with the vertices starting at the specified index for this object using data in texCoords starting at index start and ending at index start+length.

Parameters:
index - the vertex index
texCoords - the new texture coordinates
start - starting texture coordinate index of data in texCoords .
length - number of texture Coordinates to be copied.

setVertexAttr

void setVertexAttr(int vertexAttrNum,
                   int index,
                   Point2f vertexAttr)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.

Parameters:
vertexAttrNum - vertex attribute number in this geometry array
index - destination vertex index in this geometry array
vertexAttr - the Point2f containing the new vertex attribute

setVertexAttr

void setVertexAttr(int vertexAttrNum,
                   int index,
                   Point3f vertexAttr)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.

Parameters:
vertexAttrNum - vertex attribute number in this geometry array
index - destination vertex index in this geometry array
vertexAttr - the Point3f containing the new vertex attribute

setVertexAttr

void setVertexAttr(int vertexAttrNum,
                   int index,
                   Point4f vertexAttr)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.

Parameters:
vertexAttrNum - vertex attribute number in this geometry array
index - destination vertex index in this geometry array
vertexAttr - the Point4f containing the new vertex attribute

setVertexAttrs

void setVertexAttrs(int vertexAttrNum,
                    int index,
                    float[] vertexAttrs,
                    int start,
                    int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.

Parameters:
index - starting destination vertex index in this geometry array
vertexAttrs - source array of 1*n, 2*n, 3*n, or 4*n values containing n new vertex attributes
start - starting source vertex index in vertexAttrs array.
length - number of vertex attributes to be copied.

setVertexAttrs

void setVertexAttrs(int vertexAttrNum,
                    int index,
                    Point2f[] vertexAttrs,
                    int start,
                    int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.

Parameters:
vertexAttrNum - vertex attribute number in this geometry array
index - starting destination vertex index in this geometry array
vertexAttrs - source array of Point2f objects containing new vertex attributes
start - starting source vertex index in vertexAttrs array.
length - number of vertex attributes to be copied.

setVertexAttrs

void setVertexAttrs(int vertexAttrNum,
                    int index,
                    Point3f[] vertexAttrs,
                    int start,
                    int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.

Parameters:
vertexAttrNum - vertex attribute number in this geometry array
index - starting destination vertex index in this geometry array
vertexAttrs - source array of Point3f objects containing new vertex attributes
start - starting source vertex index in vertexAttrs array.
length - number of vertex attributes to be copied.

setVertexAttrs

void setVertexAttrs(int vertexAttrNum,
                    int index,
                    Point4f[] vertexAttrs,
                    int start,
                    int length)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.

Parameters:
vertexAttrNum - vertex attribute number in this geometry array
index - starting destination vertex index in this geometry array
vertexAttrs - source array of Point4f objects containing new vertex attributes
start - starting source vertex index in vertexAttrs array.
length - number of vertex attributes to be copied.

getCoordinate

void getCoordinate(int index,
                   float[] coordinate)
Gets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - an array of 3 values that will receive the new coordinate

getCoordinate

void getCoordinate(int index,
                   double[] coordinate)
Gets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - an array of 3 values that will receive the new coordinate

getCoordinate

void getCoordinate(int index,
                   Point3f coordinate)
Gets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - a vector that will receive the new coordinate

getCoordinate

void getCoordinate(int index,
                   Point3d coordinate)
Gets the coordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
coordinate - a vector that will receive the new coordinate

getCoordinates

void getCoordinates(int index,
                    float[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of 3*n values that will receive new coordinates

getCoordinates

void getCoordinates(int index,
                    double[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of 3*n values that will receive new coordinates

getCoordinates

void getCoordinates(int index,
                    Point3f[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of vectors that will receive new coordinates

getCoordinates

void getCoordinates(int index,
                    Point3d[] coordinates)
Gets the coordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
coordinates - an array of vectors that will receive new coordinates

getColor

void getColor(int index,
              float[] color)
Gets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - an array of 3 or 4 values that will receive the new color

getColor

void getColor(int index,
              byte[] color)
Gets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - an array of 3 or 4 values that will receive the new color

getColor

void getColor(int index,
              Color3f color)
Gets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector that will receive the new color

getColor

void getColor(int index,
              Color4f color)
Gets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector that will receive the new color

getColor

void getColor(int index,
              Color3b color)
Gets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector that will receive the new color

getColor

void getColor(int index,
              Color4b color)
Gets the color associated with the vertex at the specified index.

Parameters:
index - the vertex index
color - a vector that will receive the new color

getColors

void getColors(int index,
               float[] colors)
Gets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values that will receive n new colors

getColors

void getColors(int index,
               byte[] colors)
Gets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of 3*n or 4*n values that will receive new colors

getColors

void getColors(int index,
               Color3f[] colors)
Gets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors that will receive new colors

getColors

void getColors(int index,
               Color4f[] colors)
Gets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors that will receive new colors

getColors

void getColors(int index,
               Color3b[] colors)
Gets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors that will receive new colors

getColors

void getColors(int index,
               Color4b[] colors)
Gets the colors associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
colors - an array of vectors that will receive new colors

getNormal

void getNormal(int index,
               float[] normal)
Gets the normal associated with the vertex at the specified index.

Parameters:
index - the vertex index
normal - array that will receive the new normal

getNormal

void getNormal(int index,
               Vector3f normal)
Gets the normal associated with the vertex at the specified index.

Parameters:
index - the vertex index
normal - the vector that will receive the new normal

getNormals

void getNormals(int index,
                float[] normals)
Gets the normals associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
normals - array that will receive the new normals

getNormals

void getNormals(int index,
                Vector3f[] normals)
Gets the normals associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
normals - the vector that will receive the new normals

getTextureCoordinate

void getTextureCoordinate(int texCoordSet,
                          int index,
                          float[] texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
texCoord - array that will receive the new texture co-ordinate

getTextureCoordinate

void getTextureCoordinate(int texCoordSet,
                          int index,
                          TexCoord2f texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
texCoord - the vector that will receive the new texture co-ordinates

getTextureCoordinate

void getTextureCoordinate(int texCoordSet,
                          int index,
                          TexCoord3f texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
texCoord - the vector that will receive the new texture co-ordinates

getTextureCoordinate

void getTextureCoordinate(int texCoordSet,
                          int index,
                          TexCoord4f texCoord)
Gets the texture co-ordinate associated with the vertex at the specified index.

Parameters:
index - the vertex index
texCoord - the vector that will receive the new texture co-ordinates

getTextureCoordinates

void getTextureCoordinates(int texCoordSet,
                           int index,
                           float[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
texCoords - array that will receive the new texture co-ordinates

getTextureCoordinates

void getTextureCoordinates(int texCoordSet,
                           int index,
                           TexCoord2f[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
texCoords - the vector that will receive the new texture co-ordinates

getTextureCoordinates

void getTextureCoordinates(int texCoordSet,
                           int index,
                           TexCoord3f[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
texCoords - the vector that will receive the new texture co-ordinates

getTextureCoordinates

void getTextureCoordinates(int texCoordSet,
                           int index,
                           TexCoord4f[] texCoords)
Gets the texture co-ordinates associated with the vertices starting at the specified index.

Parameters:
index - the vertex index
texCoords - the vector that will receive the new texture co-ordinates

getTextureCoordinates

void getTextureCoordinates(int texCoordSet,
                           int index,
                           Point2f[] texCoords)

getTextureCoordinates

void getTextureCoordinates(int texCoordSet,
                           int index,
                           Point3f[] texCoords)

getVertexAttr

public void getVertexAttr(int vertexAttrNum,
                          int index,
                          float[] vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.


getVertexAttr

public void getVertexAttr(int vertexAttrNum,
                          int index,
                          Point2f vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.


getVertexAttr

public void getVertexAttr(int vertexAttrNum,
                          int index,
                          Point3f vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.


getVertexAttr

public void getVertexAttr(int vertexAttrNum,
                          int index,
                          Point4f vertexAttr)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.


getVertexAttrs

public void getVertexAttrs(int vertexAttrNum,
                           int index,
                           float[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.


getVertexAttrs

public void getVertexAttrs(int vertexAttrNum,
                           int index,
                           Point2f[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.


getVertexAttrs

public void getVertexAttrs(int vertexAttrNum,
                           int index,
                           Point3f[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.


getVertexAttrs

public void getVertexAttrs(int vertexAttrNum,
                           int index,
                           Point4f[] vertexAttrs)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.


updateData

void updateData(GeometryUpdater updater)
Updates geometry array data.


intersectBoundingBox

boolean intersectBoundingBox(Point3d[] coordinates,
                             BoundingBox box,
                             double[] dist,
                             Point3d iPnt)

intersectBoundingSphere

boolean intersectBoundingSphere(Point3d[] coordinates,
                                BoundingSphere sphere,
                                double[] dist,
                                Point3d iPnt)

intersectBoundingPolytope

boolean intersectBoundingPolytope(Point3d[] coordinates,
                                  BoundingPolytope polytope,
                                  double[] dist,
                                  Point3d iPnt)

generalStandardSimplexSolver

double generalStandardSimplexSolver(double[][] problemTableau,
                                    double stopingValue)

edgeIntersectSphere

boolean edgeIntersectSphere(BoundingSphere sphere,
                            Point3d start,
                            Point3d end)

det2D

double det2D(Point2d a,
             Point2d b,
             Point2d p)

pointIntersectPolygon2D

boolean pointIntersectPolygon2D(Vector3d normal,
                                Point3d[] coord,
                                Point3d point)

edgeIntersectPlane

boolean edgeIntersectPlane(Vector3d normal,
                           Point3d pnt,
                           Point3d start,
                           Point3d end,
                           Point3d iPnt)

edgeIntersectPolygon2D

boolean edgeIntersectPolygon2D(Vector3d normal,
                               Point3d[] coord,
                               Point3d[] seg)

getCompValue

double getCompValue(Point3d v,
                    int i)

getCompValue

double getCompValue(Point3d v0,
                    Point3d v1,
                    int i)

pointInTri

boolean pointInTri(Point3d v0,
                   Point3d u0,
                   Point3d u1,
                   Point3d u2,
                   Vector3d normal)

pointInTri

boolean pointInTri(Point3d v0,
                   Point3d u0,
                   Point3d u1,
                   Point3d u2,
                   int i0,
                   int i1)

edgeAgainstEdge

boolean edgeAgainstEdge(Point3d v0,
                        Point3d u0,
                        Point3d u1,
                        double aX,
                        double aY,
                        int i0,
                        int i1)

edgeAgainstTriEdges

boolean edgeAgainstTriEdges(Point3d v0,
                            Point3d v1,
                            Point3d u0,
                            Point3d u1,
                            Point3d u2,
                            int i0,
                            int i1)

coplanarTriTri

boolean coplanarTriTri(Vector3d normal,
                       Point3d v0,
                       Point3d v1,
                       Point3d v2,
                       Point3d u0,
                       Point3d u1,
                       Point3d u2)

intersectTriPnt

boolean intersectTriPnt(Point3d v0,
                        Point3d v1,
                        Point3d v2,
                        Point3d u)

intersectTriTri

boolean intersectTriTri(Point3d v0,
                        Point3d v1,
                        Point3d v2,
                        Point3d u0,
                        Point3d u1,
                        Point3d u2)
Return flag indicating whether two triangles intersect. This uses Tomas Moller's code for fast triangle-triangle intersection from his "Real-Time Rendering" book. The code is now divisionless. It tests for separating by planes parallel to either triangle. If neither separate the triangles, then two cases are considered. First case is if the normals to the triangles are parallel. In that case, the triangles are coplanar and a sequence of tests are made to see if edges of each triangle intersect the other triangle. If the normals are not parallel, then the two triangles can intersect only on the line of intersection of the two planes. The intervals of intersection of the triangles with the line of intersection of the two planes are computed and tested for overlap.


intersectPolygon

boolean intersectPolygon(Point3d[] coord1,
                         Point3d[] coord2)

intersectRay

boolean intersectRay(Point3d[] coordinates,
                     PickRay ray,
                     double[] dist,
                     Point3d iPnt)
Return true if triangle or quad intersects with ray and the distance is stored in dist[0] and the intersect point in iPnt (if iPnt is not null).


intersectSegment

boolean intersectSegment(Point3d[] coordinates,
                         Point3d start,
                         Point3d end,
                         double[] dist,
                         Point3d iPnt)
Return true if triangle or quad intersects with segment and the distance is stored in dist[0].


intersectRayOrSegment

boolean intersectRayOrSegment(Point3d[] coordinates,
                              Vector3d direction,
                              Point3d origin,
                              double[] dist,
                              Point3d iPnt,
                              boolean isSegment)
Return true if triangle or quad intersects with ray and the distance is stored in pr.


isNonZero

static final boolean isNonZero(double v)

inside

boolean inside(Point3d[] coordinates,
               PickPoint point,
               int ccw)
Return true if point is on the inside of halfspace test. The halfspace is partition by the plane of triangle or quad.


intersectPntAndPnt

boolean intersectPntAndPnt(Point3d pnt1,
                           Point3d pnt2)

intersectPntAndRay

boolean intersectPntAndRay(Point3d pnt,
                           Point3d ori,
                           Vector3d dir,
                           double[] dist)

intersectLineAndRay

boolean intersectLineAndRay(Point3d start,
                            Point3d end,
                            Point3d ori,
                            Vector3d dir,
                            double[] dist,
                            Point3d iPnt)

intersectCylinder

boolean intersectCylinder(Point3d[] coordinates,
                          PickCylinder cyl,
                          double[] dist,
                          Point3d iPnt)
Return true if triangle or quad intersects with cylinder. The distance is stored in dist.


intersectCone

boolean intersectCone(Point3d[] coordinates,
                      PickCone cone,
                      double[] dist,
                      Point3d iPnt)
Return true if triangle or quad intersects with cone. The distance is stored in dist.


intersectCylinder

boolean intersectCylinder(Point3d pt,
                          PickCylinder cyl,
                          double[] dist)
Return true if point intersects with cylinder and the distance is stored in dist.


intersectCone

boolean intersectCone(Point3d pt,
                      PickCone cone,
                      double[] dist)
Return true if point intersects with cone and the distance is stored in pi.


setCoordRefBuffer

void setCoordRefBuffer(J3DBuffer coords)

getCoordRefBuffer

J3DBuffer getCoordRefBuffer()

setCoordRefFloat

void setCoordRefFloat(float[] coords)

getCoordRefFloat

float[] getCoordRefFloat()

setCoordRefDouble

void setCoordRefDouble(double[] coords)

getCoordRefDouble

double[] getCoordRefDouble()

setCoordRef3f

void setCoordRef3f(Point3f[] coords)

getCoordRef3f

Point3f[] getCoordRef3f()

setCoordRef3d

void setCoordRef3d(Point3d[] coords)

getCoordRef3d

Point3d[] getCoordRef3d()

setColorRefFloat

void setColorRefFloat(float[] colors)

getColorRefFloat

float[] getColorRefFloat()

setColorRefBuffer

void setColorRefBuffer(J3DBuffer colors)

getColorRefBuffer

J3DBuffer getColorRefBuffer()

setColorRefByte

void setColorRefByte(byte[] colors)

getColorRefByte

byte[] getColorRefByte()

setColorRef3f

void setColorRef3f(Color3f[] colors)

getColorRef3f

Color3f[] getColorRef3f()

setColorRef4f

void setColorRef4f(Color4f[] colors)

getColorRef4f

Color4f[] getColorRef4f()

setColorRef3b

void setColorRef3b(Color3b[] colors)

getColorRef3b

Color3b[] getColorRef3b()

setColorRef4b

void setColorRef4b(Color4b[] colors)

getColorRef4b

Color4b[] getColorRef4b()

setNormalRefFloat

void setNormalRefFloat(float[] normals)

getNormalRefFloat

float[] getNormalRefFloat()

setNormalRefBuffer

void setNormalRefBuffer(J3DBuffer normals)

getNormalRefBuffer

J3DBuffer getNormalRefBuffer()

setNormalRef3f

void setNormalRef3f(Vector3f[] normals)

getNormalRef3f

Vector3f[] getNormalRef3f()

getColorStride

final int getColorStride()

getTexStride

final int getTexStride()

setTexCoordRefFloat

void setTexCoordRefFloat(int texCoordSet,
                         float[] texCoords)

getTexCoordRefFloat

float[] getTexCoordRefFloat(int texCoordSet)

setTexCoordRefBuffer

void setTexCoordRefBuffer(int texCoordSet,
                          J3DBuffer texCoords)

getTexCoordRefBuffer

J3DBuffer getTexCoordRefBuffer(int texCoordSet)

setTexCoordRef2f

void setTexCoordRef2f(int texCoordSet,
                      TexCoord2f[] texCoords)

getTexCoordRef2f

TexCoord2f[] getTexCoordRef2f(int texCoordSet)

setTexCoordRef3f

void setTexCoordRef3f(int texCoordSet,
                      TexCoord3f[] texCoords)

getTexCoordRef3f

TexCoord3f[] getTexCoordRef3f(int texCoordSet)

setVertexAttrRefFloat

void setVertexAttrRefFloat(int vertexAttrNum,
                           float[] vertexAttrs)
Sets the float vertex attribute array reference for the specified vertex attribute number to the specified array.


getVertexAttrRefFloat

float[] getVertexAttrRefFloat(int vertexAttrNum)
Gets the float vertex attribute array reference for the specified vertex attribute number.


setVertexAttrRefBuffer

void setVertexAttrRefBuffer(int vertexAttrNum,
                            J3DBuffer vertexAttrs)
Sets the vertex attribute buffer reference for the specified vertex attribute number to the specified buffer object.


getVertexAttrRefBuffer

J3DBuffer getVertexAttrRefBuffer(int vertexAttrNum)
Gets the vertex attribute array buffer reference for the specified vertex attribute number.


setInterleavedVertices

void setInterleavedVertices(float[] vertexData)

setInterleavedVertexBuffer

void setInterleavedVertexBuffer(J3DBuffer vertexData)

getInterleavedVertices

float[] getInterleavedVertices()

getInterleavedVertexBuffer

J3DBuffer getInterleavedVertexBuffer()

setValidVertexCount

void setValidVertexCount(int validVertexCount)

getValidVertexCount

int getValidVertexCount()

setInitialVertexIndex

void setInitialVertexIndex(int initialVertexIndex)

getInitialVertexIndex

int getInitialVertexIndex()

setInitialCoordIndex

void setInitialCoordIndex(int initialCoordIndex)

getInitialCoordIndex

int getInitialCoordIndex()

setInitialColorIndex

void setInitialColorIndex(int initialColorIndex)

getInitialColorIndex

int getInitialColorIndex()

setInitialNormalIndex

void setInitialNormalIndex(int initialNormalIndex)

getInitialNormalIndex

int getInitialNormalIndex()

setInitialVertexAttrIndex

void setInitialVertexAttrIndex(int vertexAttrNum,
                               int initialVertexAttrIndex)
Sets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object.


getInitialVertexAttrIndex

int getInitialVertexAttrIndex(int vertexAttrNum)
Gets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object.


setInitialTexCoordIndex

void setInitialTexCoordIndex(int texCoordSet,
                             int initialTexCoordIndex)

getInitialTexCoordIndex

int getInitialTexCoordIndex(int texCoordSet)

getTexCoordSetCount

int getTexCoordSetCount()

getTexCoordSetMapLength

int getTexCoordSetMapLength()

getTexCoordSetMap

void getTexCoordSetMap(int[] texCoordSetMap)

freeDlistId

void freeDlistId()

assignDlistId

void assignDlistId()

addDlistUser

void addDlistUser(RenderBin renderBin,
                  RenderAtomListInfo ra)

removeDlistUser

void removeDlistUser(RenderBin renderBin,
                     RenderAtomListInfo ra)

isDlistUserSetEmpty

boolean isDlistUserSetEmpty(RenderBin renderBin)

numDlistUsers

int numDlistUsers(RenderBin renderBin)

setDlistTimeStamp

void setDlistTimeStamp(int rdrBit,
                       long timeStamp)

getDlistTimeStamp

long getDlistTimeStamp(int rdrBit)

getIndex

int getIndex(int bit)

isWriteStatic

boolean isWriteStatic()

setCompiled

void setCompiled(java.util.ArrayList curList)
The functions below are only used in compile mode


mergeGeometryArrays

void mergeGeometryArrays(java.util.ArrayList list)

isMergeable

boolean isMergeable()

compile

void compile(CompileState compState)
Description copied from class: SceneGraphObjectRetained
This is the default compile() method, which just marks the sgo as compiled.

Overrides:
compile in class SceneGraphObjectRetained

mergeTransform

void mergeTransform(TransformGroupRetained xform)
Overrides:
mergeTransform in class SceneGraphObjectRetained

addMorphUser

void addMorphUser(MorphRetained m)

removeMorphUser

void removeMorphUser(MorphRetained m)

initMirrorGeometry

void initMirrorGeometry()

updateMirrorGeometry

void updateMirrorGeometry()

getVertexData

void getVertexData(int i,
                   Point3d pnts)

getCrossValue

void getCrossValue(Point3d p1,
                   Point3d p2,
                   Vector3d value)

intersect

boolean intersect(Transform3D thisLocalToVworld,
                  Transform3D otherLocalToVworld,
                  GeometryRetained geom)
Overrides:
intersect in class GeometryRetained

getNumCoordCount

int getNumCoordCount()

getNumColorCount

int getNumColorCount()

getNumNormalCount

int getNumNormalCount()

getNumTexCoordCount

int getNumTexCoordCount(int i)

computeMinDistance

void computeMinDistance(Point3d[] coordinates,
                        Point3d center,
                        Vector3d normal,
                        double[] dist,
                        Point3d iPnt)

handleFrequencyChange

void handleFrequencyChange(int bit)
Overrides:
handleFrequencyChange in class SceneGraphObjectRetained

getTexCoordType

int getTexCoordType()

getVertexAttrType

int getVertexAttrType()


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.