NASA World Wind

gov.nasa.worldwind.util
Class GLUTessellatorSupport.CollectIndexListsCallback

java.lang.Object
  extended by javax.media.opengl.glu.GLUtessellatorCallbackAdapter
      extended by gov.nasa.worldwind.util.GLUTessellatorSupport.CollectIndexListsCallback
All Implemented Interfaces:
GLUtessellatorCallback
Enclosing class:
GLUTessellatorSupport

public static class GLUTessellatorSupport.CollectIndexListsCallback
extends GLUtessellatorCallbackAdapter

Provides the callback class used to capture the shapes determined by the tessellator.


Field Summary
protected  List<Integer> currentPrim
           
protected  int currentType
           
protected  int numIndices
           
protected  List<List<Integer>> prims
           
protected  List<Integer> primTypes
           
 
Constructor Summary
GLUTessellatorSupport.CollectIndexListsCallback()
           
 
Method Summary
 void begin(int type)
           
 void combine(double[] coords, Object[] data, float[] weight, Object[] outData)
           
 void end()
           
 int getNumIndices()
           
 List<List<Integer>> getPrims()
           
 List<Integer> getPrimTypes()
           
 void vertex(Object vertexData)
           
 
Methods inherited from class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
beginData, combineData, edgeFlag, edgeFlagData, endData, error, errorData, vertexData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentPrim

protected List<Integer> currentPrim

currentType

protected int currentType

numIndices

protected int numIndices

prims

protected List<List<Integer>> prims

primTypes

protected List<Integer> primTypes
Constructor Detail

GLUTessellatorSupport.CollectIndexListsCallback

public GLUTessellatorSupport.CollectIndexListsCallback()
Method Detail

begin

public void begin(int type)
Specified by:
begin in interface GLUtessellatorCallback
Overrides:
begin in class GLUtessellatorCallbackAdapter

combine

public void combine(double[] coords,
                    Object[] data,
                    float[] weight,
                    Object[] outData)
Specified by:
combine in interface GLUtessellatorCallback
Overrides:
combine in class GLUtessellatorCallbackAdapter

end

public void end()
Specified by:
end in interface GLUtessellatorCallback
Overrides:
end in class GLUtessellatorCallbackAdapter

getNumIndices

public int getNumIndices()

getPrims

public List<List<Integer>> getPrims()

getPrimTypes

public List<Integer> getPrimTypes()

vertex

public void vertex(Object vertexData)
Specified by:
vertex in interface GLUtessellatorCallback
Overrides:
vertex in class GLUtessellatorCallbackAdapter

NASA World Wind