|
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.MeshFragment
public class MeshFragment
Encapsulates the bounding box and approximation error for a fragment of a MultiresolutionMesh
and provides
access to the actual geometry data.
Field Summary | |
---|---|
float[][] |
bbox
The bbox of the frament |
float |
error
The geometric error. |
int |
id
the id of the mesh fragment |
static int |
SIZE
Size of binary representation (in bytes). |
Constructor Summary | |
---|---|
MeshFragment(int id,
ByteBuffer buffer,
MeshFragmentDataReader patchReader)
|
Method Summary | |
---|---|
boolean |
canAllocateEnoughMemory()
|
int |
compareTo(MeshFragment o)
|
long |
getLastByteOffset()
|
long |
getOffset()
|
MeshFragmentData |
loadData()
Retrieves the actual geometry data of the MeshFragment . |
int |
size()
|
static void |
store(ByteBuffer target,
float[][] bbox,
float error,
long blobPosition,
int length)
Save this fragment to the given byte buffer. |
static void |
store(ByteBuffer target,
float minX,
float minY,
float minZ,
float maxX,
float maxY,
float maxZ,
float error,
long blobPosition,
int length)
Save this fragment to the given ByteBuffer. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int SIZE
public final int id
public final float[][] bbox
public final float error
Constructor Detail |
---|
MeshFragment(int id, ByteBuffer buffer, MeshFragmentDataReader patchReader)
Method Detail |
---|
public long getOffset()
public long getLastByteOffset()
public MeshFragmentData loadData() throws IOException
MeshFragment
.
NOTE: Calling this method usually involves I/O and memory allocation operations and the caller should probably incorporate caching mechanisms to reduce the number of calls.
IOException
public static void store(ByteBuffer target, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, float error, long blobPosition, int length)
target
- minX
- minY
- minZ
- maxX
- maxY
- maxZ
- error
- blobPosition
- length
- public static void store(ByteBuffer target, float[][] bbox, float error, long blobPosition, int length)
target
- bbox
- error
- blobPosition
- length
- public String toString()
toString
in class Object
public int compareTo(MeshFragment o)
compareTo
in interface Comparable<MeshFragment>
public int size()
public boolean canAllocateEnoughMemory()
|
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 |