com.sun.j3d.utils.geometry.compression
Class MeshBuffer
java.lang.Object
com.sun.j3d.utils.geometry.compression.MeshBuffer
class MeshBuffer
- extends java.lang.Object
This class mirrors the vertex mesh buffer stack supported by the geometry
compression semantics.
Method Summary |
private static int |
flipOffset(int top,
int offset)
|
(package private) Color3f |
getColor3(int meshReference)
|
(package private) Color4f |
getColor4(int meshReference)
|
(package private) int |
getColorIndex(int meshReference)
|
(package private) int |
getMeshReference(int positionIndex)
|
(package private) int |
getMeshReference(Point3f position)
|
(package private) Vector3f |
getNormal(int meshReference)
|
(package private) int |
getNormalIndex(int meshReference)
|
(package private) Point3f |
getPosition(int meshReference)
|
(package private) int |
getPositionIndex(int meshReference)
|
(package private) CompressionStreamVertex |
getVertex(int meshReference)
|
private static int |
nextTop(int top)
|
(package private) void |
push(CompressionStreamVertex v)
|
(package private) void |
push(int positionIndex,
int normalIndex)
|
(package private) void |
push(int positionIndex,
int colorIndex,
int normalIndex)
|
(package private) void |
push(Point3f position,
Color3f color,
Vector3f normal)
|
(package private) void |
push(Point3f position,
Color4f color,
Vector3f normal)
|
(package private) void |
push(Point3f position,
java.lang.Object color,
Vector3f normal)
|
(package private) void |
push(Point3f position,
Vector3f normal)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT_FOUND
static final int NOT_FOUND
- See Also:
- Constant Field Values
SIZE
private static final int SIZE
- See Also:
- Constant Field Values
NAN_HASH
private static final int NAN_HASH
topIndex
private int topIndex
positionIndices
private int[] positionIndices
normalIndices
private int[] normalIndices
colorIndices
private int[] colorIndices
topPosition
private int topPosition
positionHashCodes
private int[] positionHashCodes
positions
private Point3f[] positions
normals
private Vector3f[] normals
colors3
private Color3f[] colors3
colors4
private Color4f[] colors4
topVertex
private int topVertex
vertices
private CompressionStreamVertex[] vertices
MeshBuffer
MeshBuffer()
nextTop
private static int nextTop(int top)
flipOffset
private static int flipOffset(int top,
int offset)
push
void push(CompressionStreamVertex v)
getVertex
CompressionStreamVertex getVertex(int meshReference)
push
void push(int positionIndex,
int normalIndex)
push
void push(int positionIndex,
int colorIndex,
int normalIndex)
getMeshReference
int getMeshReference(int positionIndex)
getPositionIndex
int getPositionIndex(int meshReference)
getColorIndex
int getColorIndex(int meshReference)
getNormalIndex
int getNormalIndex(int meshReference)
push
void push(Point3f position,
Vector3f normal)
push
void push(Point3f position,
Color3f color,
Vector3f normal)
push
void push(Point3f position,
Color4f color,
Vector3f normal)
push
void push(Point3f position,
java.lang.Object color,
Vector3f normal)
getMeshReference
int getMeshReference(Point3f position)
getPosition
Point3f getPosition(int meshReference)
getColor3
Color3f getColor3(int meshReference)
getColor4
Color4f getColor4(int meshReference)
getNormal
Vector3f getNormal(int meshReference)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.