| java.lang.Object javax.media.j3d.GeneralizedVertexList
GeneralizedVertexList | class GeneralizedVertexList implements GeneralizedStripFlags(Code) | | The GeneralizedVertexList class is a variable-size list used to
collect the vertices for a generalized strip of points, lines, or
triangles. This is used by the GeometryDecompressor. This class
implements the GeneralizedStripFlags interface and provides methods
for copying instance vertex data into various fixed-size
GeometryArray representations.
See Also: GeneralizedStrip See Also: GeometryDecompressor |
Inner Class :class Vertex | |
Field Summary | |
int | stripCount Count of number of strips generated after conversion to GeometryArray. | int | triangleCount Count of number of triangles generated after conversion to GeometryArray. | int | vertexCount Count of number of vertices generated after conversion to GeometryArray. | int | vertexFormat Bits describing the data bundled with each vertex. |
Constructor Summary | |
| GeneralizedVertexList(int vertexFormat, int frontFace, int initSize) Creates a new GeneralizedVertexList for the specified vertex format. | | GeneralizedVertexList(int vertexFormat, int frontFace) Creates a new GeneralizedVertexList for the specified vertex format. |
stripCount | int stripCount(Code) | | Count of number of strips generated after conversion to GeometryArray.
|
triangleCount | int triangleCount(Code) | | Count of number of triangles generated after conversion to GeometryArray.
|
vertexCount | int vertexCount(Code) | | Count of number of vertices generated after conversion to GeometryArray.
|
vertexFormat | int vertexFormat(Code) | | Bits describing the data bundled with each vertex. This is specified
using the GeometryArray mask components.
|
GeneralizedVertexList | GeneralizedVertexList(int vertexFormat, int frontFace, int initSize)(Code) | | Creates a new GeneralizedVertexList for the specified vertex format.
Parameters: vertexFormat - a mask indicating which components arepresent in each vertex, as used by GeometryArray. Parameters: frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding Parameters: initSize - initial number of elements See Also: GeometryArray |
GeneralizedVertexList | GeneralizedVertexList(int vertexFormat, int frontFace)(Code) | | Creates a new GeneralizedVertexList for the specified vertex format.
Parameters: vertexFormat - a mask indicating which components arepresent in each vertex, as used by GeometryArray. Parameters: frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding See Also: GeometryArray |
addVertex | void addVertex(Point3f pos, Vector3f norm, Color4f color, int flag)(Code) | | Copy vertex data to a new Vertex object and add it to this list.
|
getFlag | public int getFlag(int index)(Code) | | |
getFlagCount | public int getFlagCount()(Code) | | |
setVertexFormat | void setVertexFormat(int vertexFormat)(Code) | | Sets the vertex format for this vertex list.
Parameters: vertexFormat - a mask indicating which components arepresent in each vertex, as used by GeometryArray. |
size | int size()(Code) | | Return the number of vertices in this list.
|
toStripAndFanArrays | GeometryStripArray[] toStripAndFanArrays()(Code) | | Output triangle strip and triangle fan arrays.
a 2-element array of GeometryStripArray; element 0 if non-nullwill contain a TriangleStripArray, and element 1 if non-null willcontain a TriangleFanArray. |
toStripAndTriangleArrays | GeometryArray[] toStripAndTriangleArrays()(Code) | | Output triangle strip and and triangle arrays.
a 2-element array of GeometryArray; element 0 if non-nullwill contain a TriangleStripArray, and element 1 if non-null willcontain a TriangleArray. |
|
|