|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.rendering.r3d.multiresolution.MeshFragmentData
public class MeshFragmentData
The MeshFragmentData
holds the fragment data.
Constructor Summary | |
---|---|
MeshFragmentData(PooledByteBuffer rawBuffer,
FloatBuffer vertexBuffer,
FloatBuffer normalsBuffer,
Buffer indexBuffer)
Construct from the given rawbuffer. |
Method Summary | |
---|---|
void |
freeBuffers()
free the pooled buffer. |
FloatBuffer |
getNormals()
|
int |
getNumTriangles()
|
Buffer |
getTriangles()
Returns the buffer that contains the vertices of the triangles. |
FloatBuffer |
getVertices()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeshFragmentData(PooledByteBuffer rawBuffer, FloatBuffer vertexBuffer, FloatBuffer normalsBuffer, Buffer indexBuffer)
rawBuffer
- vertexBuffer
- normalsBuffer
- indexBuffer
- Method Detail |
---|
public int getNumTriangles()
public FloatBuffer getVertices()
public Buffer getTriangles()
The returned buffer can be (depending on the number of vertices in the fragment):
ByteBuffer
ShortBuffer
IntBuffer
public FloatBuffer getNormals()
public void freeBuffers()
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |