|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.geom.GeometryData
public class GeometryData
Data representation of geometry information that is created through the various generator classes in this package.
This data representation is used to hold information needed to generate geometry from one of the generator classes in this package. In general, data does not get filled in for items that are not requested.
The type of data to be produced can be changed with each call. While it is possible to ask for both 2D and 3D texture coordinates, the code will only generate 2D values if asked.
Field Summary | |
---|---|
int[] |
colorIndexes
Storage for color index information if the shape type requires it. |
float[] |
colors
Colour values if using per-vertex coloring. |
float[] |
coordinates
Storage for coordinate information. |
int |
geometryComponents
The attributes of the geometry you want created. |
int |
geometrySubType
A generator specific field that describes the type of output algorithm you would like to use for the geometry. |
int |
geometryType
This is the type of geometry that you want to have made |
static int |
INDEXED_LINE_STRIPS
Generate the geometry as an indexed line strip array |
static int |
INDEXED_LINES
Generate the geometry as an indexed line array |
static int |
INDEXED_QUADS
Generate the geometry as indexed quads |
static int |
INDEXED_TRIANGLE_FANS
Generate the geometry as an indexed triangle fan array |
static int |
INDEXED_TRIANGLE_STRIPS
Generate the geometry as an indexed triangle strip array |
static int |
INDEXED_TRIANGLES
Generate the geometry as an indexed triangle array |
int[] |
indexes
Storage for coordinate index information if the shape type requires it. |
int |
indexesCount
The number of items stored in the indexes array |
static int |
LINE_STRIPS
Generate the geometry as an line strip array |
static int |
LINES
Generate the geometry as a line array |
static int |
NORMAL_DATA
Request for lighting normal data to be produced |
int[] |
normalIndexes
Storage for normal index information if the shape type requires it. |
float[] |
normals
Storage for lighting normal information. |
int |
numStrips
The number of items stored in the strip counts |
static int |
QUADS
Generate the geometry as individual unindexed quads |
int[] |
stripCounts
Storage for strip counts if the shape type uses it |
int[] |
texCoordIndexes
Storage for texture coordinate index information if the shape type requires it. |
static int |
TEXTURE_2D_DATA
Request for 2D Texture coordinate data to be produced |
static int |
TEXTURE_3D_DATA
Request for 3D Texture coordinate data to be produced |
float[] |
textureCoordinates
Texture coordinate information if requested. |
static int |
TRIANGLE_FANS
Generate the geometry as a triangle fan array(s) |
static int |
TRIANGLE_STRIPS
Generate the geometry as a triangle strip array(s) |
static int |
TRIANGLES
Generate the geometry as individual unindexed triangles |
int |
vertexCount
The number of vertices stored in the coordinates array |
Constructor Summary | |
---|---|
GeometryData()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Make a copy of this object with identical data. |
void |
prettyPrint()
Convenience method to print out all the data associated with this geometry array. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRIANGLES
public static final int QUADS
public static final int TRIANGLE_STRIPS
public static final int TRIANGLE_FANS
public static final int INDEXED_QUADS
public static final int INDEXED_TRIANGLES
public static final int INDEXED_TRIANGLE_STRIPS
public static final int INDEXED_TRIANGLE_FANS
public static final int LINES
public static final int LINE_STRIPS
public static final int INDEXED_LINES
public static final int INDEXED_LINE_STRIPS
public static final int NORMAL_DATA
public static final int TEXTURE_2D_DATA
public static final int TEXTURE_3D_DATA
public int geometryType
public int geometrySubType
public int geometryComponents
public int vertexCount
public float[] coordinates
public float[] normals
public int indexesCount
public int[] indexes
public int numStrips
public int[] stripCounts
public float[] textureCoordinates
public float[] colors
public int[] normalIndexes
public int[] texCoordIndexes
public int[] colorIndexes
Constructor Detail |
---|
public GeometryData()
Method Detail |
---|
public void prettyPrint()
public java.lang.Object clone()
clone
in class java.lang.Object
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |