javax.media.j3d
Class GeometryStripArrayRetained

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
                      extended by javax.media.j3d.GeometryStripArrayRetained
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
LineStripArrayRetained, TriangleFanArrayRetained, TriangleStripArrayRetained

abstract class GeometryStripArrayRetained
extends GeometryArrayRetained

The GeometryStripArray object is an abstract class that is extended for a set of GeometryArray strip primitives. These include LINE_STRIP, TRIANGLE_STRIP, and TRIANGLE_FAN.


Field Summary
(package private)  int[] compileNumStrips
           
(package private)  int[] compileStripCountOffset
           
(package private)  int[] stripStartOffsetIndices
           
(package private)  int[] stripStartVertexIndices
           
(package private)  int[] stripVertexCounts
           
 
Fields inherited from class javax.media.j3d.GeometryArrayRetained
AF, BOUNDS_CHANGED, byteBufferRefColors, byteRefColors, ByteToFloatScale, c3bRefColors, C3F, c3fRefColors, C3UB, c4bRefColors, C4F, c4fAllocated, c4fRefColors, C4UB, CF, cloneSourceArray, COLOR_BYTE, COLOR_CHANGED, COLOR_DEFINED, COLOR_FLOAT, colorChanged, colorOffset, colorRefBuffer, compileVcount, COORD_DOUBLE, COORD_FLOAT, COORDINATE_CHANGED, coordinateOffset, coordRefBuffer, CUB, defaultTexCoordSetMap, dirtyFlag, dlistId, dlistObj, doubleBufferRefCoords, doubleRefCoords, EPS, floatBufferRefColors, floatBufferRefCoords, floatBufferRefNormals, floatBufferRefVertexAttrs, floatRefColors, floatRefCoords, floatRefNormals, floatRefVertexAttrs, FloatToByteScale, gaList, geoOffset, INDEX_CHANGED, INIT_MIRROR_GEOMETRY, initialColorIndex, initialCoordIndex, initialNormalIndex, initialTexCoordIndex, initialVertexAttrIndex, initialVertexIndex, interleavedFloatBufferImpl, interleavedVertexBuffer, interLeavedVertexData, inUpdater, isCompiled, isShared, lastScreenAlpha, mirrorColorAllocated, mirrorDoubleRefCoords, mirrorFloatRefColors, mirrorFloatRefCoords, mirrorFloatRefNormals, mirrorFloatRefTexCoords, mirrorFloatRefVertexAttrs, mirrorInterleavedColorPointer, mirrorNormalAllocated, mirrorRefTexCoords, mirrorUnsignedByteRefColors, mirrorVertexAllocated, morphUniverseList, morphUserLists, N3F, NF, nioFloatBufferRefVertexAttrs, NORMAL_CHANGED, NORMAL_DEFINED, NORMAL_FLOAT, normalOffset, normalRefBuffer, P3D, p3dRefCoords, P3F, p3fRefCoords, PD, PF, pVertexBuffers, refTexCoords, refTexCoordsBuffer, resourceCreationMask, stride, STRIPCOUNT_CHANGED, T2F, t2fRefTexCoords, T3F, t3fRefTexCoords, targetThreads, TEXCOORD_DEFINED, TEXCOORD_FLOAT, texCoordSetCount, texCoordSetMap, texCoordSetMapOffset, texCoordStride, TEXTURE_CHANGED, textureOffset, TF, v3fRefNormals, validVertexCount, VATTR_CHANGED, VATTR_DEFINED, VATTR_FLOAT, VERTEX_CHANGED, VERTEX_DEFINED, vertexAttrCount, vertexAttrOffsets, vertexAttrSizes, vertexAttrsRefBuffer, vertexAttrStride, vertexCount, vertexData, vertexFormat, 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
GeometryStripArrayRetained()
           
 
Method Summary
(package private)  int getNumStrips()
          Get number of strips in the GeometryStripArray
(package private)  int getNumStrips(int id)
           
(package private)  void getStripVertexCounts(int[] stripVertexCounts)
          Get a list of vertexCounts for each strip
(package private)  void getStripVertexCounts(int id, int[] counts)
           
(package private)  void mergeGeometryArrays(java.util.ArrayList list)
           
(package private)  void setStripVertexCounts(int[] stripVertexCounts)
          Set stripVertexCount data into local array
(package private)  void unIndexify(IndexedGeometryStripArrayRetained src)
           
private  void unIndexifyJavaArray(IndexedGeometryStripArrayRetained src)
           
private  void unIndexifyNIOBuffer(IndexedGeometryStripArrayRetained src)
           
 
Methods inherited from class javax.media.j3d.GeometryArrayRetained
addDlistUser, addMorphUser, assignDlistId, buildGA, clearLive, colorOffset, compile, computeBoundingBox, computeBoundingBox, computeBoundingBox, computeBoundingBox, computeBoundingBox, computeBoundingBox, computeBoundingBox, computeBoundingBox, computeBoundingBox, computeMinDistance, coordinateOffset, coplanarTriTri, createGeometryArrayData, createGeometryArrayData, createGeometryArrayData, det2D, disableGlobalAlpha, edgeAgainstEdge, edgeAgainstTriEdges, edgeIntersectPlane, edgeIntersectPolygon2D, edgeIntersectSphere, execute, freeD3DArray, freeDlistId, generalStandardSimplexSolver, getColor, getColor, getColor, getColor, getColor, getColor, getColorRef3b, getColorRef3f, getColorRef4b, getColorRef4f, getColorRefBuffer, getColorRefByte, getColorRefFloat, getColors, getColors, getColors, getColors, getColors, getColors, getColorStride, getCompValue, getCompValue, getCoordinate, getCoordinate, getCoordinate, getCoordinate, getCoordinates, getCoordinates, getCoordinates, getCoordinates, getCoordRef3d, getCoordRef3f, getCoordRefBuffer, getCoordRefDouble, getCoordRefFloat, getCrossValue, getDlistTimeStamp, getIndex, getInitialColorIndex, getInitialCoordIndex, getInitialNormalIndex, getInitialTexCoordIndex, getInitialVertexAttrIndex, getInitialVertexIndex, getInterleavedVertexBuffer, getInterleavedVertices, getNormal, getNormal, getNormalRef3f, getNormalRefBuffer, getNormalRefFloat, getNormals, getNormals, getNumColorCount, getNumCoordCount, getNumNormalCount, getNumTexCoordCount, getTexCoordRef2f, getTexCoordRef3f, getTexCoordRefBuffer, getTexCoordRefFloat, getTexCoordSetCount, getTexCoordSetMap, getTexCoordSetMapLength, getTexCoordType, getTexStride, getTextureCoordinate, getTextureCoordinate, getTextureCoordinate, getTextureCoordinate, getTextureCoordinates, getTextureCoordinates, getTextureCoordinates, getTextureCoordinates, getTextureCoordinates, getTextureCoordinates, getValidVertexCount, getVertexAttr, getVertexAttr, getVertexAttr, getVertexAttr, getVertexAttrCount, getVertexAttrRefBuffer, getVertexAttrRefFloat, getVertexAttrs, getVertexAttrs, getVertexAttrs, getVertexAttrs, getVertexAttrSizes, getVertexAttrType, getVertexCount, getVertexData, getVertexFormat, handleFrequencyChange, initMirrorGeometry, inside, intersect, intersectBoundingBox, intersectBoundingPolytope, intersectBoundingSphere, intersectCone, intersectCone, intersectCylinder, intersectCylinder, intersectLineAndRay, intersectPntAndPnt, intersectPntAndRay, intersectPolygon, intersectRay, intersectRayOrSegment, intersectSegment, intersectTriPnt, intersectTriTri, isDlistUserSetEmpty, isMergeable, isNonZero, isWriteStatic, mergeTransform, normalOffset, numDlistUsers, pointIntersectPolygon2D, pointInTri, pointInTri, processCoordsChanged, removeDlistUser, removeMorphUser, sendDataChangedMessage, setColor, setColor, setColor, setColor, setColor, setColor, setColorRef3b, setColorRef3f, setColorRef4b, setColorRef4f, setColorRefBuffer, setColorRefByte, setColorRefFloat, setColors, setColors, setColors, setColors, setColors, setColors, setColors, setColors, setColors, setColors, setColors, setColors, setCompiled, setCoordinate, setCoordinate, setCoordinate, setCoordinate, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setCoordRef3d, setCoordRef3f, setCoordRefBuffer, setCoordRefDouble, setCoordRefFloat, setDlistTimeStamp, setInitialColorIndex, setInitialCoordIndex, setInitialNormalIndex, setInitialTexCoordIndex, setInitialVertexAttrIndex, setInitialVertexIndex, setInterleavedVertexBuffer, setInterleavedVertices, setLive, setNormal, setNormal, setNormalRef3f, setNormalRefBuffer, setNormalRefFloat, setNormals, setNormals, setNormals, setNormals, setTexCoordRef2f, setTexCoordRef3f, setTexCoordRefBuffer, setTexCoordRefFloat, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setupMirrorColorPointer, setupMirrorInterleavedColorPointer, setupMirrorNormalPointer, setupMirrorTexCoordPointer, setupMirrorTexCoordPointer, setupMirrorVertexAttrPointer, setupMirrorVertexAttrPointer, setupMirrorVertexPointer, setValidVertexCount, setVertexAttr, setVertexAttr, setVertexAttr, setVertexAttrRefBuffer, setVertexAttrRefFloat, setVertexAttrs, setVertexAttrs, setVertexAttrs, setVertexAttrs, setVertexFormat, stride, texCoordSetMapOffset, textureOffset, unIndexify, update, updateAlphaInByteRefColors, updateAlphaInFloatRefColors, updateAlphaInInterLeavedData, updateAlphaInVertexData, updateData, updateMirrorGeometry, vertexAttrOffsets, vertexAttrStride
 
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

stripVertexCounts

int[] stripVertexCounts

stripStartVertexIndices

int[] stripStartVertexIndices

stripStartOffsetIndices

int[] stripStartOffsetIndices

compileNumStrips

int[] compileNumStrips

compileStripCountOffset

int[] compileStripCountOffset
Constructor Detail

GeometryStripArrayRetained

GeometryStripArrayRetained()
Method Detail

setStripVertexCounts

void setStripVertexCounts(int[] stripVertexCounts)
Set stripVertexCount data into local array


unIndexify

void unIndexify(IndexedGeometryStripArrayRetained src)

unIndexifyJavaArray

private void unIndexifyJavaArray(IndexedGeometryStripArrayRetained src)

unIndexifyNIOBuffer

private void unIndexifyNIOBuffer(IndexedGeometryStripArrayRetained src)

getNumStrips

int getNumStrips()
Get number of strips in the GeometryStripArray

Returns:
numStrips number of strips

getStripVertexCounts

void getStripVertexCounts(int[] stripVertexCounts)
Get a list of vertexCounts for each strip

Parameters:
stripVertexCounts - an array that will receive vertexCounts

getStripVertexCounts

void getStripVertexCounts(int id,
                          int[] counts)

getNumStrips

int getNumStrips(int id)

mergeGeometryArrays

void mergeGeometryArrays(java.util.ArrayList list)
Overrides:
mergeGeometryArrays in class GeometryArrayRetained


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