|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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,
java.lang.Object[] coordinateData,
float[] weights,
java.lang.Object[] outData,
java.lang.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,
java.lang.Object originalVertex)
|
void |
end()
|
void |
errorData(int arg0,
java.lang.Object originalVertex)
|
SimpleAccessGeometry |
getGeometry()
|
int |
getOpenGLType()
|
protected float[] |
getTesselatedCoordinates()
|
java.util.List<Vertex> |
getTesselatedVertices()
|
void |
vertexData(java.lang.Object newVertex,
java.lang.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.GLUtessellatorCallbackbegin in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic void end()
end in interface javax.media.opengl.glu.GLUtessellatorCallbackend in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void errorData(int arg0,
java.lang.Object originalVertex)
errorData in interface javax.media.opengl.glu.GLUtessellatorCallbackerrorData in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void combineData(double[] coords,
java.lang.Object[] coordinateData,
float[] weights,
java.lang.Object[] outData,
java.lang.Object originalVertex)
combineData in interface javax.media.opengl.glu.GLUtessellatorCallbackcombineData in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void edgeFlagData(boolean arg0,
java.lang.Object originalVertex)
edgeFlagData in interface javax.media.opengl.glu.GLUtessellatorCallbackedgeFlagData in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void vertexData(java.lang.Object newVertex,
java.lang.Object originalVertex)
vertexData in interface javax.media.opengl.glu.GLUtessellatorCallbackvertexData in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic java.util.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 RenderableGeometryprotected 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 | |||||||||