|
||||||||||
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 fragment |
float |
error
The geometric error. |
int |
id
the id of the mesh fragment |
static int |
SIZE
Size of binary representation (in bytes). |
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 final int SIZE
public final int id
public final float[][] bbox
public final float error
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |