Class GLUTessellatorSupport.CollectIndexListsCallback

  • All Implemented Interfaces:
    com.jogamp.opengl.glu.GLUtessellatorCallback
    Enclosing class:
    GLUTessellatorSupport

    public static class GLUTessellatorSupport.CollectIndexListsCallback
    extends com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
    Provides the callback class used to capture the shapes determined by the tessellator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.Integer> currentPrim  
      protected int currentType  
      protected int numIndices  
      protected java.util.List<java.util.List<java.lang.Integer>> prims  
      protected java.util.List<java.lang.Integer> primTypes  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void begin​(int type)  
      void combine​(double[] coords, java.lang.Object[] data, float[] weight, java.lang.Object[] outData)  
      void end()  
      int getNumIndices()  
      java.util.List<java.util.List<java.lang.Integer>> getPrims()  
      java.util.List<java.lang.Integer> getPrimTypes()  
      void vertex​(java.lang.Object vertexData)  
      • Methods inherited from class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter

        beginData, combineData, edgeFlag, edgeFlagData, endData, error, errorData, vertexData
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • numIndices

        protected int numIndices
      • currentType

        protected int currentType
      • currentPrim

        protected java.util.List<java.lang.Integer> currentPrim
      • prims

        protected java.util.List<java.util.List<java.lang.Integer>> prims
      • primTypes

        protected java.util.List<java.lang.Integer> primTypes
    • Constructor Detail

      • CollectIndexListsCallback

        public CollectIndexListsCallback()
    • Method Detail

      • getPrims

        public java.util.List<java.util.List<java.lang.Integer>> getPrims()
      • getPrimTypes

        public java.util.List<java.lang.Integer> getPrimTypes()
      • getNumIndices

        public int getNumIndices()
      • begin

        public void begin​(int type)
        Specified by:
        begin in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        begin in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
      • vertex

        public void vertex​(java.lang.Object vertexData)
        Specified by:
        vertex in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        vertex in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
      • end

        public void end()
        Specified by:
        end in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        end in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
      • combine

        public void combine​(double[] coords,
                            java.lang.Object[] data,
                            float[] weight,
                            java.lang.Object[] outData)
        Specified by:
        combine in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        combine in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter