All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.IndexedGeometryStripArray
java.lang.Object
|
+----java.media.j3d.SceneGraphObject
|
+----java.media.j3d.NodeComponent
|
+----java.media.j3d.Geometry
|
+----java.media.j3d.GeometryArray
|
+----java.media.j3d.IndexedGeometryArray
|
+----java.media.j3d.IndexedGeometryStripArray
- public abstract class IndexedGeometryStripArray
- extends IndexedGeometryArray
The IndexedGeometryStripArray object is an abstract class that is extended for
a set of IndexedGeometryArray strip primitives. These include LINE_STRIP,
TRIANGLE_STRIP, and TRIANGLE_FAN.
-
IndexedGeometryStripArray(int, int, int, int[])
- Constructs an empty IndexedGeometryStripArray object with the specified
number of vertices, vertex format, number of strips, and
array of vertex counts per strip.
-
getNumStrips()
- Get number of strips in the GeometryStripArray
-
getStripIndexCounts(int[])
- Get a list of indexCounts for each strip
IndexedGeometryStripArray
public IndexedGeometryStripArray(int vertexCount,
int vertexFormat,
int indexCount,
int stripIndexCounts[])
- Constructs an empty IndexedGeometryStripArray object with the specified
number of vertices, vertex format, number of strips, and
array of vertex counts per strip.
- Parameters:
- vertexCount - the number of vertex elements in this array
- vertexFormat - a mask indicating which components are
present in each vertex. This is specified as one or more
individual flags that are bitwise "OR"ed together to describe
the per-vertex data.
The flags include: COORDINATES, to signal the inclusion of
vertex positions---always present; NORMALS, to signal
the inclusion of per vertex normals; one of COLOR_3,
COLOR_4, to signal the inclusion of per vertex
colors (without or with color information); and one of
TEXTURE_COORDINATE_2 or TEXTURE_COORDINATE_3, to signal the
inclusion of per-vertex texture coordinates 2D or 3D.
- indexCount - the number of indices in this object
- stripVertexCounts - array that specifies
the count of the number of vertices for each separate strip.
The length of this array is the number of separate strips.
getNumStrips
public final int getNumStrips()
- Get number of strips in the GeometryStripArray
- Returns:
- numStrips number of strips
getStripIndexCounts
public final void getStripIndexCounts(int stripIndexCounts[])
- Get a list of indexCounts for each strip
- Parameters:
- stripIndexCounts - an array that will receive indexCounts
All Packages Class Hierarchy This Package Previous Next Index