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: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
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,
Object[] coordinateData,
float[] weights,
Object[] outData,
Object originalVertex)
- Specified by:
combineData
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
combineData
in class GeometryCallBack
vertexData
public void vertexData(Object newVertex,
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.