org.xith3d.scenegraph
Class IndexedGeometryArray

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
          extended by org.xith3d.scenegraph.Geometry
              extended by org.xith3d.scenegraph.IndexedGeometryArray
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.VertexContainer
Direct Known Subclasses:
IndexedGeometryStripArray, IndexedLineArray, IndexedQuadArray, IndexedTriangleArray, IndexedTriangleFanArray

public abstract class IndexedGeometryArray
extends Geometry


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.scenegraph.Geometry
Geometry.Optimization
 
Field Summary
 
Fields inherited from class org.xith3d.scenegraph.Geometry
BY_REFERENCE, COLORS, COORDINATES, dataContainer, INTERLEAVED, NORMALS, TEXTURE_COORDINATES, VERTEX_ATTRIBUTES
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
IndexedGeometryArray(org.jagatoo.opengl.enums.GeometryArrayType type, int coordsSize, int vertexCount, int[] stripVertexCounts, int indexCount)
           
 
Method Summary
protected  void duplicateNodeComponent(NodeComponent original, boolean forceDuplicate)
          
 int[] getIndex()
          
 int getIndex(int i)
          
 int getIndexCount()
          
 GeomNioIntData getIndexData()
           
 int getInitialIndexIndex()
           
 int getValidIndexCount()
           
 void setIndex(int[] indices)
           
 void setIndex(int i, int idx)
           
 void setInitialIndexIndex(int i)
           
 void setValidIndexCount(int count)
           
 
Methods inherited from class org.xith3d.scenegraph.Geometry
addData, addData, addData, calculateFaceNormals, calculateFaceNormals, cloneNodeComponent, finalize, flipNormals, freeOpenGLResources, getColor, getColor, getColorData, getColorRefFloat, getColors, getColorsOffset, getColorsSize, getCoordinate, getCoordinate, getCoordinates, getCoordinates, getCoordinatesData, getCoordinatesOffset, getCoordinatesSize, getCoordRefFloat, getFaceSize, getInitialVertexIndex, getInterleavedData, getMaxVertexCount, getNormal, getNormal, getNormalRefFloat, getNormals, getNormals, getNormalsData, getNormalsOffset, getNormalsSize, getNumTextureUnits, getOpenGLReference_DL_GeomData, getOpenGLReference_DL_TexCoords, getOpenGLReference_DL, getOptimization, getTexCoordRefFloat, getTexCoordsData, getTexCoordSetCount, getTexCoordSetMap, getTexCoordSetMap, getTexCoordSize, getTexCoordsOffset, getTextureCoordinate, getTextureCoordinate, getTextureCoordinates, getTriangle, getType, getValidVertexCount, getVertex, getVertexAttribData, getVertexAttribSize, getVertexAttribsOffset, getVertexAttribute, getVertexAttribute, getVertexAttribute, getVertexAttributes, getVertexAttributesCount, getVertexCount, getVertexFormat, hasColorAlpha, hasColors, hasFeature, hasIndex, hasNormals, hasTextureCoordinates, hasTextureCoordinates, hasVertexAttributes, hasVertexAttributes, invertNormals, isBoundsDirty, isInterleaved, isStrip, isTriangulatable, isTriangulated, makeInterleaved, makeInterleaved, setBoundsDirty, setColor, setColor, setColor, setColor, setColorData, setColors, setColors, setColors, setColors, setCoordinate, setCoordinate, setCoordinate, setCoordinateData, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setInitialVertexIndex, setNormal, setNormal, setNormal, setNormalData, setNormals, setNormals, setNormals, setNormals, setOptimization, setTexCoordData, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTriangle, setTriangle, setValidVertexCount, setVertexAttribute, setVertexAttribute, setVertexAttribute, setVertexAttributes, setVertexAttributes, setVertexAttributes, setVertexAttributes, toString
 
Methods inherited from class org.xith3d.scenegraph.NodeComponent
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedGeometryArray

public IndexedGeometryArray(org.jagatoo.opengl.enums.GeometryArrayType type,
                            int coordsSize,
                            int vertexCount,
                            int[] stripVertexCounts,
                            int indexCount)
Method Detail

getIndexCount

public final int getIndexCount()


setValidIndexCount

public final void setValidIndexCount(int count)

getValidIndexCount

public final int getValidIndexCount()

setInitialIndexIndex

public final void setInitialIndexIndex(int i)

getInitialIndexIndex

public final int getInitialIndexIndex()

setIndex

public final void setIndex(int[] indices)

setIndex

public final void setIndex(int i,
                           int idx)

getIndex

public final int getIndex(int i)


getIndex

public final int[] getIndex()


getIndexData

public final GeomNioIntData getIndexData()

duplicateNodeComponent

protected void duplicateNodeComponent(NodeComponent original,
                                      boolean forceDuplicate)

Overrides:
duplicateNodeComponent in class Geometry