org.deegree.rendering.r3d.multiresolution
Class MeshFragmentData

java.lang.Object
  extended by org.deegree.rendering.r3d.multiresolution.MeshFragmentData

public class MeshFragmentData
extends Object

The MeshFragmentData holds the fragment data.

Version:
$Revision: 29307 $, $Date: 2011-01-14 11:24:27 +0100 (Fri, 14 Jan 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
MeshFragmentData(PooledByteBuffer rawBuffer, FloatBuffer vertexBuffer, Buffer normalsBuffer, Buffer indexBuffer)
          Construct from the given rawbuffer.
 
Method Summary
 void freeBuffers()
          free the pooled buffer.
 Buffer 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

MeshFragmentData

public MeshFragmentData(PooledByteBuffer rawBuffer,
                        FloatBuffer vertexBuffer,
                        Buffer normalsBuffer,
                        Buffer indexBuffer)
Construct from the given rawbuffer.

Parameters:
rawBuffer -
vertexBuffer -
normalsBuffer -
indexBuffer -
Method Detail

getNumTriangles

public int getNumTriangles()
Returns:
the number of triangles

getVertices

public FloatBuffer getVertices()
Returns:
the vertices.

getTriangles

public Buffer getTriangles()
Returns the buffer that contains the vertices of the triangles.

The returned buffer can be (depending on the number of vertices in the fragment):

Returns:
buffer the contains the triangles (as vertex indexes)

getNormals

public Buffer getNormals()
Returns:
the normal buffer

freeBuffers

public void freeBuffers()
free the pooled buffer.



Copyright © 2011. All Rights Reserved.