org.deegree.rendering.r3d.opengl.tesselation
Class TexturedGeometryCallBack

java.lang.Object
  extended by javax.media.opengl.glu.GLUtessellatorCallbackAdapter
      extended by org.deegree.rendering.r3d.opengl.tesselation.GeometryCallBack
          extended by 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 $

Constructor Summary
TexturedGeometryCallBack(TexturedGeometry geom)
           
 
Method Summary
 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
protected  float[] getTesselatedTextureCoordinates()
           
 void vertexData(Object newVertex, Object originalVertex)
           
 
Methods inherited from class org.deegree.rendering.r3d.opengl.tesselation.GeometryCallBack
addVertex, begin, calculateNormals, edgeFlagData, end, errorData, getGeometry, getOpenGLType, getTesselatedCoordinates, getTesselatedVertices
 
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
 

Constructor Detail

TexturedGeometryCallBack

public TexturedGeometryCallBack(TexturedGeometry geom)
Parameters:
geom -
Method Detail

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.