|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.opengl.glu.GLUtessellatorCallbackAdapter org.deegree.rendering.r3d.opengl.tesselation.GeometryCallBack
public class GeometryCallBack
The GeometryCallBack
class will be called by the Tesselator
if a SimpleAccessGeometry
must be triangulated. This class will calculate the normals from the resulting vertices as well.
Method Summary | |
---|---|
void |
addVertex(Vertex vertex)
|
void |
begin(int openGLType)
|
protected float[] |
calculateNormals()
Calculate the normals according to the openGL type. |
void |
combineData(double[] coords,
Object[] coordinateData,
float[] weights,
Object[] outData,
Object originalVertex)
|
Vertex |
createNewVertex(int currentVertexLocation)
Create a vertex appropriate for the tesselation of the given type of geometry. |
RenderableGeometry |
createRenderableGeometry(boolean useDirectBuffers)
Calculate the normals for the tesselated geometry and return a renderable geometry created from the given SimpleAccessGeometry |
void |
edgeFlagData(boolean arg0,
Object originalVertex)
|
void |
end()
|
void |
errorData(int arg0,
Object originalVertex)
|
SimpleAccessGeometry |
getGeometry()
|
int |
getOpenGLType()
|
protected float[] |
getTesselatedCoordinates()
|
List<Vertex> |
getTesselatedVertices()
|
void |
vertexData(Object newVertex,
Object originalVertex)
|
Methods inherited from class javax.media.opengl.glu.GLUtessellatorCallbackAdapter |
---|
beginData, combine, edgeFlag, endData, error, vertex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void begin(int openGLType)
begin
in interface javax.media.opengl.glu.GLUtessellatorCallback
begin
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void end()
end
in interface javax.media.opengl.glu.GLUtessellatorCallback
end
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void errorData(int arg0, Object originalVertex)
errorData
in interface javax.media.opengl.glu.GLUtessellatorCallback
errorData
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void combineData(double[] coords, Object[] coordinateData, float[] weights, Object[] outData, Object originalVertex)
combineData
in interface javax.media.opengl.glu.GLUtessellatorCallback
combineData
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void edgeFlagData(boolean arg0, Object originalVertex)
edgeFlagData
in interface javax.media.opengl.glu.GLUtessellatorCallback
edgeFlagData
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void vertexData(Object newVertex, Object originalVertex)
vertexData
in interface javax.media.opengl.glu.GLUtessellatorCallback
vertexData
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public List<Vertex> getTesselatedVertices()
public void addVertex(Vertex vertex)
vertex
- public final SimpleAccessGeometry getGeometry()
public Vertex createNewVertex(int currentVertexLocation)
currentVertexLocation
- of the coordinates (the Vertex count)
public RenderableGeometry createRenderableGeometry(boolean useDirectBuffers)
SimpleAccessGeometry
useDirectBuffers
- to use direct buffers instead of heap buffers.
SimpleAccessGeometry
as a RenderableGeometry
protected float[] getTesselatedCoordinates()
protected float[] calculateNormals()
public final int getOpenGLType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |