org.xith3d.scenegraph
Class GeometryDataContainer

java.lang.Object
  extended by org.jagatoo.geometry.SimpleGeometryDataContainer
      extended by org.jagatoo.geometry.GeometryDataContainer
          extended by org.xith3d.scenegraph.GeometryDataContainer
All Implemented Interfaces:
org.openmali.spatial.VertexContainer

public class GeometryDataContainer
extends org.jagatoo.geometry.GeometryDataContainer

Adds the necessary features to JAGaToo's GeometryDataContainer.


Field Summary
 
Fields inherited from class org.jagatoo.geometry.GeometryDataContainer
colors, COLORS, colorSize, colorsOffset, normals, NORMALS, normalsOffset, texCoords, texCoordsOffsets, TEXTURE_COORDINATES, VERTEX_ATTRIBUTES, vertexAttribs, vertexAttribsOffsets
 
Fields inherited from class org.jagatoo.geometry.SimpleGeometryDataContainer
BY_REFERENCE, COORDINATES, coords, coordsOffset, indexData, INTERLEAVED, interleavedData, isInterleaved, maxVertices, numIndices, numVertices, reversed
 
Constructor Summary
protected GeometryDataContainer(org.jagatoo.opengl.enums.GeometryArrayType type, boolean hasIndex, int coordsSize, int vertexCount, int[] stripCounts, int indexCount)
           
 
Method Summary
protected  void copyFrom(org.jagatoo.geometry.SimpleGeometryDataContainer original, boolean forceDuplicate)
           
protected  GeomNioFloatData newNioFloatData(int maxElements, int elemSize, int stride, boolean reversed)
          
protected  GeomNioIntData newNioIntData(int maxElems, int elemSize, boolean reversed)
          
 
Methods inherited from class org.jagatoo.geometry.GeometryDataContainer
addData, addData, addData, checkAttributeExistence, checkColorsExistence, checkNormalsExistence, checkTexCoordExistence, createCoordinates, getColor, getColor, getColorData, getColorRefFloat, getColors, getColorsOffset, getColorsSize, getNormal, getNormal, getNormalRefFloat, getNormals, getNormals, getNormalsData, getNormalsOffset, getNormalsSize, getNumTextureUnits, getTexCoordRefFloat, getTexCoordsData, getTexCoordSetMap, getTexCoordSetMap, getTexCoordSize, getTexCoordsOffset, getTextureCoordinate, getTextureCoordinate, getTextureCoordinates, getTriangle, getVertexAttribData, getVertexAttribSize, getVertexAttribsOffset, getVertexAttribute, getVertexAttribute, getVertexAttribute, getVertexAttributes, getVertexAttributesCount, getVertexFormat, hasColorAlpha, hasColors, hasFeature, hasNormals, hasTextureCoordinates, hasTextureCoordinates, hasVertexAttributes, hasVertexAttributes, makeInterleaved, makeInterleaved, setColor, setColor, setColor, setColor, setColorData, setColors, setColors, setColors, setColors, setCoordinateData, setNormal, setNormal, setNormal, setNormalData, setNormals, setNormals, setNormals, setNormals, setTexCoordData, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinate, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTextureCoordinates, setTriangle, setVertexAttribute, setVertexAttribute, setVertexAttribute, setVertexAttributes, setVertexAttributes, setVertexAttributes, setVertexAttributes
 
Methods inherited from class org.jagatoo.geometry.SimpleGeometryDataContainer
checkCoordsExistence, getCoordinate, getCoordinate, getCoordinates, getCoordinates, getCoordinatesData, getCoordinatesOffset, getCoordinatesSize, getCoordRefFloat, getFaceSize, getIndex, getIndex, getIndexCount, getIndexData, getInitialIndex, getInterleavedData, getMaxVertexCount, getNumStrips, getStripCounts, getStripCounts, getType, getValidVertexCount, getVertex, getVertexCount, hasIndex, isInterleaved, isStrip, setCoordinate, setCoordinate, setCoordinate, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setCoordinates, setIndex, setIndex, setInitialIndex, setNioBuffers, setStripCounts, setTriangle, setValidVertexCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryDataContainer

protected GeometryDataContainer(org.jagatoo.opengl.enums.GeometryArrayType type,
                                boolean hasIndex,
                                int coordsSize,
                                int vertexCount,
                                int[] stripCounts,
                                int indexCount)
Method Detail

newNioFloatData

protected GeomNioFloatData newNioFloatData(int maxElements,
                                           int elemSize,
                                           int stride,
                                           boolean reversed)

Overrides:
newNioFloatData in class org.jagatoo.geometry.SimpleGeometryDataContainer

newNioIntData

protected GeomNioIntData newNioIntData(int maxElems,
                                       int elemSize,
                                       boolean reversed)

Overrides:
newNioIntData in class org.jagatoo.geometry.SimpleGeometryDataContainer

copyFrom

protected void copyFrom(org.jagatoo.geometry.SimpleGeometryDataContainer original,
                        boolean forceDuplicate)
Overrides:
copyFrom in class org.jagatoo.geometry.GeometryDataContainer