|
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.Objectorg.deegree.rendering.r3d.opengl.rendering.model.geometry.DirectGeometryBuffer
public class DirectGeometryBuffer
The DirectGeometryBuffer encapsulates the directbuffers (coordinate, normals and texture) for all
buildings defined in a scene.
| Constructor Summary | |
|---|---|
DirectGeometryBuffer(int coordinateCapacity,
int textureCapacity)
|
|
| Method Summary | |
|---|---|
int |
addCoordinates(FloatBuffer coordBuffer)
Add the given FloatBuffer to the direct coordinates buffer, if the direct coordinate buffer does not have
the capacity this method will return -1; |
int |
addNormals(FloatBuffer normalBuffer)
Add the given FloatBuffer to the direct coordinates buffer, if the direct normal buffer does not have the
capacity this method will return -1; |
int |
addTexture(FloatBuffer textureBuffer)
Add the given FloatBuffer to the direct texture buffer, if the direct texture buffer does not have the
capacity this method will return -1; |
FloatBuffer |
getCoords(int position,
int limit)
|
FloatBuffer |
getNormals(int position,
int limit)
|
FloatBuffer |
getTextureCoordinates(int position,
int limit)
|
int[] |
readCoordinates(DataInputStream in)
Read the floats from the given DataInputStream to the direct coordinates buffer, if the direct coordinate
buffer does not have the capacity this method will return -1,-1; |
int |
readCoordsFromStream(ObjectInputStream in)
Add the floats read from the given ObjectInputStream to the direct coordinate FloatBuffer, if
the direct coordinate buffer does not have the capacity this method will return -1. |
int[] |
readNormals(DataInputStream in)
Read the floats from the given DataInputStream to the direct normal buffer, if the direct normal buffer
does not have the capacity this method will return -1,-1; |
int |
readNormalsFromStream(ObjectInputStream in)
Add the floats read from the given ObjectInputStream to the direct normal FloatBuffer, if the
direct normal buffer does not have the capacity this method will return -1. |
int |
readTexCoordsFromStream(ObjectInputStream in)
Add the floats read from the given ObjectInputStream to the direct texture FloatBuffer, if the
direct texture buffer does not have the capacity this method will return -1. |
int[] |
readTextureOrdinates(DataInputStream in)
Read the floats from the given DataInputStream to the direct texture buffer, if the direct texture buffer
does not have the capacity this method will return -1,-1; |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectGeometryBuffer(int coordinateCapacity,
int textureCapacity)
coordinateCapacity - textureCapacity - | Method Detail |
|---|
public FloatBuffer getCoords(int position,
int limit)
position - in the coordinates buffer.limit - the number of ordinates to copy
null if the position /limit is out of
range.
public FloatBuffer getNormals(int position,
int limit)
position - in the normal buffer.limit - the number of ordinates to copy
null if the position /limit is out of range.
public FloatBuffer getTextureCoordinates(int position,
int limit)
position - in the texture buffer.limit - the number of ordinates to copy
null if the position/limit is out of range.public int addCoordinates(FloatBuffer coordBuffer)
FloatBuffer to the direct coordinates buffer, if the direct coordinate buffer does not have
the capacity this method will return -1;
coordBuffer - to add to the coordinates direct buffer.
public int addNormals(FloatBuffer normalBuffer)
FloatBuffer to the direct coordinates buffer, if the direct normal buffer does not have the
capacity this method will return -1;
normalBuffer - to add to the normal direct buffer.
public int addTexture(FloatBuffer textureBuffer)
FloatBuffer to the direct texture buffer, if the direct texture buffer does not have the
capacity this method will return -1;
textureBuffer - to add to the texture direct buffer.
public int[] readCoordinates(DataInputStream in)
throws IOException
DataInputStream to the direct coordinates buffer, if the direct coordinate
buffer does not have the capacity this method will return -1,-1;
in - the stream to add to the coordinates from.
IOException
public int[] readNormals(DataInputStream in)
throws IOException
DataInputStream to the direct normal buffer, if the direct normal buffer
does not have the capacity this method will return -1,-1;
in - the stream to add to the coordinates from.
IOException
public int[] readTextureOrdinates(DataInputStream in)
throws IOException
DataInputStream to the direct texture buffer, if the direct texture buffer
does not have the capacity this method will return -1,-1;
in - the stream to add to the coordinates from.
IOException
public int readCoordsFromStream(ObjectInputStream in)
throws IOException
ObjectInputStream to the direct coordinate FloatBuffer, if
the direct coordinate buffer does not have the capacity this method will return -1. This method assumes that the
stream is positioned so, that the next value is an int, declaring the size of the number of floats to be read.
in - the stream to get the floats from.
IOException - if the stream throws this exception while reading.
public int readNormalsFromStream(ObjectInputStream in)
throws IOException
ObjectInputStream to the direct normal FloatBuffer, if the
direct normal buffer does not have the capacity this method will return -1. This method assumes that the stream
is positioned so, that the next value is an int, declaring the size of the number of floats to be read.
in - the stream to get the floats from.
IOException - if the stream throws this exception while reading.
public int readTexCoordsFromStream(ObjectInputStream in)
throws IOException
ObjectInputStream to the direct texture FloatBuffer, if the
direct texture buffer does not have the capacity this method will return -1. This method assumes that the stream
is positioned so, that the next value is an int, declaring the size of the number of floats to be read.
in - the stream to get the floats from.
IOException - if the stream throws this exception while reading.
|
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 | |||||||||