org.deegree.rendering.r3d.opengl.tesselation
Class TexturedGeometryCallBack
java.lang.Object
javax.media.opengl.glu.GLUtessellatorCallbackAdapter
org.deegree.rendering.r3d.opengl.tesselation.GeometryCallBack
org.deegree.rendering.r3d.opengl.tesselation.TexturedGeometryCallBack
- All Implemented Interfaces:
- javax.media.opengl.glu.GLUtessellatorCallback
public class TexturedGeometryCallBack
- extends GeometryCallBack
The TexturedGeometryCallBack
class TODO add class documentation here.
- Version:
- $Revision: 18171 $, $Date: 2009-06-17 16:00:07 +0200 (Mi, 17. Jun 2009) $
- Author:
- Rutger Bezema, last edited by: $Author: mschneider $
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 |
TexturedGeometryCallBack
public TexturedGeometryCallBack(TexturedGeometry geom)
- Parameters:
geom
-
combineData
public void combineData(double[] coords,
java.lang.Object[] coordinateData,
float[] weights,
java.lang.Object[] outData,
java.lang.Object originalVertex)
- Specified by:
combineData
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
combineData
in class GeometryCallBack
vertexData
public void vertexData(java.lang.Object newVertex,
java.lang.Object originalVertex)
- Specified by:
vertexData
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
vertexData
in class GeometryCallBack
createNewVertex
public Vertex createNewVertex(int currentVertexLocation)
- Description copied from class:
GeometryCallBack
- Create a vertex appropriate for the tesselation of the given type of geometry.
- Overrides:
createNewVertex
in class GeometryCallBack
- Parameters:
currentVertexLocation
- of the coordinates (the Vertex count)
- Returns:
- the vertex used for the tesselation process.
createRenderableGeometry
public RenderableGeometry createRenderableGeometry(boolean useDirectBuffers)
- Description copied from class:
GeometryCallBack
- Calculate the normals for the tesselated geometry and return a renderable geometry created from the given
SimpleAccessGeometry
- Overrides:
createRenderableGeometry
in class GeometryCallBack
- Parameters:
useDirectBuffers
- to use direct buffers instead of heap buffers.
- Returns:
- the tesselated
SimpleAccessGeometry
as a RenderableGeometry
getTesselatedTextureCoordinates
protected float[] getTesselatedTextureCoordinates()
- Returns:
- the texture coordinates of the vertices created by the tesselation process.
Copyright © 2011. All Rights Reserved.