| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.NodeComponent javax.media.j3d.Geometry javax.media.j3d.GeometryArray javax.media.j3d.GeometryStripArray
All known Subclasses: javax.media.j3d.TriangleStripArray, javax.media.j3d.LineStripArray, javax.media.j3d.TriangleFanArray,
GeometryStripArray | abstract public class GeometryStripArray extends GeometryArray (Code) | | 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. In addition to specifying the array
of vertex elements, which is inherited from GeometryArray, the
GeometryStripArray class specifies the number of strips and an
array of per-strip vertex counts that specify where the separate strips
appear in the vertex array.
|
Constructor Summary | |
| GeometryStripArray() | public | GeometryStripArray(int vertexCount, int vertexFormat, int[] stripVertexCounts) Constructs an empty GeometryStripArray object with the specified
number of vertices, vertex format, and
array of per-strip vertex counts. | public | GeometryStripArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int[] stripVertexCounts) Constructs an empty GeometryStripArray object with the specified
number of vertices, vertex format, number of texture coordinate
sets, texture coordinate mapping array, and
array of per-strip vertex counts. | public | GeometryStripArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int vertexAttrCount, int[] vertexAttrSizes, int[] stripVertexCounts) Constructs an empty GeometryStripArray object with the
specified number of vertices, vertex format, number of texture
coordinate sets, texture coordinate mapping array, vertex
attribute count, vertex attribute sizes array, and array of
per-strip vertex counts. |
Method Summary | |
public int | getNumStrips() Get number of strips in the GeometryStripArray. | public void | getStripVertexCounts(int[] stripVertexCounts) Get a list of vertexCounts for each strip. | public void | setStripVertexCounts(int[] stripVertexCounts) Sets the array of strip vertex counts. | public void | setValidVertexCount(int validVertexCount) This method is not supported for geometry strip arrays. |
GeometryStripArray | GeometryStripArray()(Code) | | |
GeometryStripArray | public GeometryStripArray(int vertexCount, int vertexFormat, int[] stripVertexCounts)(Code) | | Constructs an empty GeometryStripArray object with the specified
number of vertices, vertex format, and
array of per-strip vertex counts.
Parameters: vertexCount - see GeometryArray.GeometryArray(intint)for a description of this parameter. Parameters: vertexFormat - see GeometryArray.GeometryArray(intint)for a description of this parameter. Parameters: stripVertexCounts - array that specifiesthe count of the number of vertices for each separate strip.The length of this array is the number of separate strips.The sum of the elements in this array defines the total numberof valid vertices that are rendered (validVertexCount). exception: IllegalArgumentException - ifvalidVertexCount > vertexCount ; See GeometryArray.GeometryArray(intint)for more exceptions that can be thrown |
GeometryStripArray | public GeometryStripArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int[] stripVertexCounts)(Code) | | Constructs an empty GeometryStripArray object with the specified
number of vertices, vertex format, number of texture coordinate
sets, texture coordinate mapping array, and
array of per-strip vertex counts.
Parameters: vertexCount - see GeometryArray.GeometryArray(intintintint[])for a description of this parameter. Parameters: vertexFormat - see GeometryArray.GeometryArray(intintintint[])for a description of this parameter. Parameters: texCoordSetCount - see GeometryArray.GeometryArray(intintintint[])for a description of this parameter. Parameters: texCoordSetMap - see GeometryArray.GeometryArray(intintintint[])for a description of this parameter. Parameters: stripVertexCounts - array that specifiesthe count of the number of vertices for each separate strip.The length of this array is the number of separate strips.The sum of the elements in this array defines the total numberof valid vertices that are rendered (validVertexCount). exception: IllegalArgumentException - ifvalidVertexCount > vertexCount ; See GeometryArray.GeometryArray(intintintint[])for more exceptions that can be thrown since: Java 3D 1.2 |
GeometryStripArray | public GeometryStripArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int vertexAttrCount, int[] vertexAttrSizes, int[] stripVertexCounts)(Code) | | Constructs an empty GeometryStripArray object with the
specified number of vertices, vertex format, number of texture
coordinate sets, texture coordinate mapping array, vertex
attribute count, vertex attribute sizes array, and array of
per-strip vertex counts.
Parameters: vertexCount - see GeometryArray.GeometryArray(intintintint[]intint[])for a description of this parameter. Parameters: vertexFormat - see GeometryArray.GeometryArray(intintintint[]intint[])for a description of this parameter. Parameters: texCoordSetMap - see GeometryArray.GeometryArray(intintintint[]intint[])for a description of this parameter. Parameters: vertexAttrCount - see GeometryArray.GeometryArray(intintintint[]intint[])for a description of this parameter. Parameters: vertexAttrSizes - see GeometryArray.GeometryArray(intintintint[]intint[])for a description of this parameter. Parameters: stripVertexCounts - array that specifiesthe count of the number of vertices for each separate strip.The length of this array is the number of separate strips.The sum of the elements in this array defines the total numberof valid vertices that are rendered (validVertexCount). exception: IllegalArgumentException - ifvalidVertexCount > vertexCount ; See GeometryArray.GeometryArray(intintintint[]intint[])for more exceptions that can be thrown since: Java 3D 1.4 |
getNumStrips | public int getNumStrips()(Code) | | Get number of strips in the GeometryStripArray.
numStrips number of strips |
getStripVertexCounts | public void getStripVertexCounts(int[] stripVertexCounts)(Code) | | Get a list of vertexCounts for each strip. The list is copied
into the specified array. The array must be large enough to hold
all of the ints.
Parameters: stripVertexCounts - an array that will receive vertexCounts |
setStripVertexCounts | public void setStripVertexCounts(int[] stripVertexCounts)(Code) | | Sets the array of strip vertex counts. The length of this
array is the number of separate strips. The elements in this
array specify the number of vertices for each separate strip.
The sum of the elements in this array defines the total number
of valid vertices that are rendered (validVertexCount).
Parameters: stripVertexCounts - array that specifiesthe count of the number of vertices for each separate strip. exception: IllegalArgumentException - if any of the following aretrue:initialVertexIndex + validVertexCount > vertexCount ,
initialCoordIndex + validVertexCount > vertexCount ,
initialColorIndex + validVertexCount > vertexCount ,
initialNormalIndex + validVertexCount > vertexCount ,
initialTexCoordIndex + validVertexCount > vertexCount
exception: ArrayIndexOutOfBoundsException - if the geometry data formatis BY_REFERENCE and any the followingare true for non-null array references:
CoordRef.length < num_words *(initialCoordIndex + validVertexCount )
ColorRef.length < num_words *(initialColorIndex + validVertexCount )
NormalRef.length < num_words *(initialNormalIndex + validVertexCount )
TexCoordRef.length < num_words *(initialTexCoordIndex + validVertexCount )
where num_words depends on which variant ofset ArrayRef is used. since: Java 3D 1.3 |
setValidVertexCount | public void setValidVertexCount(int validVertexCount)(Code) | | This method is not supported for geometry strip arrays.
The sum of the elements in the strip vertex counts array
defines the valid vertex count.
exception: UnsupportedOperationException - this method is not supported since: Java 3D 1.3 |
Methods inherited from javax.media.j3d.GeometryArray | void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code)(Java Doc) public void getColor(int index, float color)(Code)(Java Doc) public void getColor(int index, byte color)(Code)(Java Doc) public void getColor(int index, Color3f color)(Code)(Java Doc) public void getColor(int index, Color4f color)(Code)(Java Doc) public void getColor(int index, Color3b color)(Code)(Java Doc) public void getColor(int index, Color4b color)(Code)(Java Doc) public Color3b[] getColorRef3b()(Code)(Java Doc) public Color3f[] getColorRef3f()(Code)(Java Doc) public Color4b[] getColorRef4b()(Code)(Java Doc) public Color4f[] getColorRef4f()(Code)(Java Doc) public J3DBuffer getColorRefBuffer()(Code)(Java Doc) public byte[] getColorRefByte()(Code)(Java Doc) public float[] getColorRefFloat()(Code)(Java Doc) public void getColors(int index, float colors)(Code)(Java Doc) public void getColors(int index, byte colors)(Code)(Java Doc) public void getColors(int index, Color3f colors)(Code)(Java Doc) public void getColors(int index, Color4f colors)(Code)(Java Doc) public void getColors(int index, Color3b colors)(Code)(Java Doc) public void getColors(int index, Color4b colors)(Code)(Java Doc) public Point3d[] getCoordRef3d()(Code)(Java Doc) public Point3f[] getCoordRef3f()(Code)(Java Doc) public J3DBuffer getCoordRefBuffer()(Code)(Java Doc) public double[] getCoordRefDouble()(Code)(Java Doc) public float[] getCoordRefFloat()(Code)(Java Doc) public void getCoordinate(int index, float coordinate)(Code)(Java Doc) public void getCoordinate(int index, double coordinate)(Code)(Java Doc) public void getCoordinate(int index, Point3f coordinate)(Code)(Java Doc) public void getCoordinate(int index, Point3d coordinate)(Code)(Java Doc) public void getCoordinates(int index, float coordinates)(Code)(Java Doc) public void getCoordinates(int index, double coordinates)(Code)(Java Doc) public void getCoordinates(int index, Point3f coordinates)(Code)(Java Doc) public void getCoordinates(int index, Point3d coordinates)(Code)(Java Doc) public int getInitialColorIndex()(Code)(Java Doc) public int getInitialCoordIndex()(Code)(Java Doc) public int getInitialNormalIndex()(Code)(Java Doc) public int getInitialTexCoordIndex(int texCoordSet)(Code)(Java Doc) public int getInitialVertexAttrIndex(int vertexAttrNum)(Code)(Java Doc) public int getInitialVertexIndex()(Code)(Java Doc) public J3DBuffer getInterleavedVertexBuffer()(Code)(Java Doc) public float[] getInterleavedVertices()(Code)(Java Doc) public void getNormal(int index, float normal)(Code)(Java Doc) public void getNormal(int index, Vector3f normal)(Code)(Java Doc) public Vector3f[] getNormalRef3f()(Code)(Java Doc) public J3DBuffer getNormalRefBuffer()(Code)(Java Doc) public float[] getNormalRefFloat()(Code)(Java Doc) public void getNormals(int index, float normals)(Code)(Java Doc) public void getNormals(int index, Vector3f normals)(Code)(Java Doc) public TexCoord2f[] getTexCoordRef2f(int texCoordSet)(Code)(Java Doc) public TexCoord3f[] getTexCoordRef3f(int texCoordSet)(Code)(Java Doc) public J3DBuffer getTexCoordRefBuffer(int texCoordSet)(Code)(Java Doc) public float[] getTexCoordRefFloat(int texCoordSet)(Code)(Java Doc) public int getTexCoordSetCount()(Code)(Java Doc) public void getTexCoordSetMap(int[] texCoordSetMap)(Code)(Java Doc) public int getTexCoordSetMapLength()(Code)(Java Doc) public void getTextureCoordinate(int index, float texCoord)(Code)(Java Doc) public void getTextureCoordinate(int texCoordSet, int index, float texCoord)(Code)(Java Doc) public void getTextureCoordinate(int index, Point2f texCoord)(Code)(Java Doc) public void getTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)(Code)(Java Doc) public void getTextureCoordinate(int index, Point3f texCoord)(Code)(Java Doc) public void getTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)(Code)(Java Doc) public void getTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)(Code)(Java Doc) public void getTextureCoordinates(int index, float texCoords)(Code)(Java Doc) public void getTextureCoordinates(int texCoordSet, int index, float texCoords)(Code)(Java Doc) public void getTextureCoordinates(int index, Point2f texCoords)(Code)(Java Doc) public void getTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords)(Code)(Java Doc) public void getTextureCoordinates(int index, Point3f texCoords)(Code)(Java Doc) public void getTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords)(Code)(Java Doc) public void getTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords)(Code)(Java Doc) public int getValidVertexCount()(Code)(Java Doc) public void getVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)(Code)(Java Doc) public void getVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)(Code)(Java Doc) public void getVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)(Code)(Java Doc) public void getVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)(Code)(Java Doc) public int getVertexAttrCount()(Code)(Java Doc) public J3DBuffer getVertexAttrRefBuffer(int vertexAttrNum)(Code)(Java Doc) public float[] getVertexAttrRefFloat(int vertexAttrNum)(Code)(Java Doc) public void getVertexAttrSizes(int[] vertexAttrSizes)(Code)(Java Doc) public void getVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)(Code)(Java Doc) public void getVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)(Code)(Java Doc) public void getVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)(Code)(Java Doc) public void getVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)(Code)(Java Doc) public int getVertexCount()(Code)(Java Doc) public int getVertexFormat()(Code)(Java Doc) public void setColor(int index, float color)(Code)(Java Doc) public void setColor(int index, byte color)(Code)(Java Doc) public void setColor(int index, Color3f color)(Code)(Java Doc) public void setColor(int index, Color4f color)(Code)(Java Doc) public void setColor(int index, Color3b color)(Code)(Java Doc) public void setColor(int index, Color4b color)(Code)(Java Doc) public void setColorRef3b(Color3b[] colors)(Code)(Java Doc) public void setColorRef3f(Color3f[] colors)(Code)(Java Doc) public void setColorRef4b(Color4b[] colors)(Code)(Java Doc) public void setColorRef4f(Color4f[] colors)(Code)(Java Doc) public void setColorRefBuffer(J3DBuffer colors)(Code)(Java Doc) public void setColorRefByte(byte[] colors)(Code)(Java Doc) public void setColorRefFloat(float[] colors)(Code)(Java Doc) public void setColors(int index, float colors)(Code)(Java Doc) public void setColors(int index, byte colors)(Code)(Java Doc) public void setColors(int index, Color3f colors)(Code)(Java Doc) public void setColors(int index, Color4f colors)(Code)(Java Doc) public void setColors(int index, Color3b colors)(Code)(Java Doc) public void setColors(int index, Color4b colors)(Code)(Java Doc) public void setColors(int index, float colors, int start, int length)(Code)(Java Doc) public void setColors(int index, byte colors, int start, int length)(Code)(Java Doc) public void setColors(int index, Color3f colors, int start, int length)(Code)(Java Doc) public void setColors(int index, Color4f colors, int start, int length)(Code)(Java Doc) public void setColors(int index, Color3b colors, int start, int length)(Code)(Java Doc) public void setColors(int index, Color4b colors, int start, int length)(Code)(Java Doc) public void setCoordRef3d(Point3d[] coords)(Code)(Java Doc) public void setCoordRef3f(Point3f[] coords)(Code)(Java Doc) public void setCoordRefBuffer(J3DBuffer coords)(Code)(Java Doc) public void setCoordRefDouble(double[] coords)(Code)(Java Doc) public void setCoordRefFloat(float[] coords)(Code)(Java Doc) public void setCoordinate(int index, float coordinate)(Code)(Java Doc) public void setCoordinate(int index, double coordinate)(Code)(Java Doc) public void setCoordinate(int index, Point3f coordinate)(Code)(Java Doc) public void setCoordinate(int index, Point3d coordinate)(Code)(Java Doc) public void setCoordinates(int index, float coordinates)(Code)(Java Doc) public void setCoordinates(int index, double coordinates)(Code)(Java Doc) public void setCoordinates(int index, Point3f coordinates)(Code)(Java Doc) public void setCoordinates(int index, Point3d coordinates)(Code)(Java Doc) public void setCoordinates(int index, float coordinates, int start, int length)(Code)(Java Doc) public void setCoordinates(int index, double coordinates, int start, int length)(Code)(Java Doc) public void setCoordinates(int index, Point3f coordinates, int start, int length)(Code)(Java Doc) public void setCoordinates(int index, Point3d coordinates, int start, int length)(Code)(Java Doc) public void setInitialColorIndex(int initialColorIndex)(Code)(Java Doc) public void setInitialCoordIndex(int initialCoordIndex)(Code)(Java Doc) public void setInitialNormalIndex(int initialNormalIndex)(Code)(Java Doc) public void setInitialTexCoordIndex(int texCoordSet, int initialTexCoordIndex)(Code)(Java Doc) public void setInitialVertexAttrIndex(int vertexAttrNum, int initialVertexAttrIndex)(Code)(Java Doc) public void setInitialVertexIndex(int initialVertexIndex)(Code)(Java Doc) public void setInterleavedVertexBuffer(J3DBuffer vertexData)(Code)(Java Doc) public void setInterleavedVertices(float[] vertexData)(Code)(Java Doc) public void setNormal(int index, float normal)(Code)(Java Doc) public void setNormal(int index, Vector3f normal)(Code)(Java Doc) public void setNormalRef3f(Vector3f[] normals)(Code)(Java Doc) public void setNormalRefBuffer(J3DBuffer normals)(Code)(Java Doc) public void setNormalRefFloat(float[] normals)(Code)(Java Doc) public void setNormals(int index, float normals)(Code)(Java Doc) public void setNormals(int index, Vector3f normals)(Code)(Java Doc) public void setNormals(int index, float normals, int start, int length)(Code)(Java Doc) public void setNormals(int index, Vector3f normals, int start, int length)(Code)(Java Doc) public void setTexCoordRef2f(int texCoordSet, TexCoord2f[] texCoords)(Code)(Java Doc) public void setTexCoordRef3f(int texCoordSet, TexCoord3f[] texCoords)(Code)(Java Doc) public void setTexCoordRefBuffer(int texCoordSet, J3DBuffer texCoords)(Code)(Java Doc) public void setTexCoordRefFloat(int texCoordSet, float[] texCoords)(Code)(Java Doc) public void setTextureCoordinate(int index, float texCoord)(Code)(Java Doc) public void setTextureCoordinate(int texCoordSet, int index, float texCoord)(Code)(Java Doc) public void setTextureCoordinate(int index, Point2f texCoord)(Code)(Java Doc) public void setTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)(Code)(Java Doc) public void setTextureCoordinate(int index, Point3f texCoord)(Code)(Java Doc) public void setTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)(Code)(Java Doc) public void setTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)(Code)(Java Doc) public void setTextureCoordinates(int index, float texCoords)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, float texCoords)(Code)(Java Doc) public void setTextureCoordinates(int index, Point2f texCoords)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords)(Code)(Java Doc) public void setTextureCoordinates(int index, Point3f texCoords)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords)(Code)(Java Doc) public void setTextureCoordinates(int index, float texCoords, int start, int length)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, float texCoords, int start, int length)(Code)(Java Doc) public void setTextureCoordinates(int index, Point2f texCoords, int start, int length)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords, int start, int length)(Code)(Java Doc) public void setTextureCoordinates(int index, Point3f texCoords, int start, int length)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords, int start, int length)(Code)(Java Doc) public void setTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords, int start, int length)(Code)(Java Doc) public void setValidVertexCount(int validVertexCount)(Code)(Java Doc) public void setVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)(Code)(Java Doc) public void setVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)(Code)(Java Doc) public void setVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)(Code)(Java Doc) public void setVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)(Code)(Java Doc) public void setVertexAttrRefBuffer(int vertexAttrNum, J3DBuffer vertexAttrs)(Code)(Java Doc) public void setVertexAttrRefFloat(int vertexAttrNum, float[] vertexAttrs)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs, int start, int length)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs, int start, int length)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs, int start, int length)(Code)(Java Doc) public void setVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs, int start, int length)(Code)(Java Doc) public void updateData(GeometryUpdater updater)(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.Geometry | final public static int ALLOW_INTERSECT(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.NodeComponent | boolean forceDuplicate(Code)(Java Doc)
|
|
|