All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.GeometryStripArray

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent
                   |
                   +----java.media.j3d.Geometry
                           |
                           +----java.media.j3d.GeometryArray
                                   |
                                   +----java.media.j3d.GeometryStripArray

public abstract class GeometryStripArray
extends GeometryArray
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.


Constructor Index

 o GeometryStripArray(int, int, int[])
Constructs an empty GeometryStripArray object with the specified number of vertices, vertex format, number of strips, and array of vertex counts per strip.

Method Index

 o getNumStrips()
Get number of strips in the GeometryStripArray
 o getStripVertexCounts(int[])
Get a list of vertexCounts for each strip

Constructors

 o GeometryStripArray
 public GeometryStripArray(int vertexCount,
                           int vertexFormat,
                           int stripVertexCounts[])
Constructs an empty GeometryStripArray 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.
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.

Methods

 o getNumStrips
 public final int getNumStrips()
Get number of strips in the GeometryStripArray

Returns:
numStrips number of strips
 o getStripVertexCounts
 public final void getStripVertexCounts(int stripVertexCounts[])
Get a list of vertexCounts for each strip

Parameters:
stripVertexCounts - an array that will receive vertexCounts

All Packages  Class Hierarchy  This Package  Previous  Next  Index