Class ClippingTessellator


  • public class ClippingTessellator
    extends java.lang.Object
    ClippingTessellator
    • Constructor Summary

      Constructors 
      Constructor Description
      ClippingTessellator​(com.jogamp.opengl.glu.GLUtessellator tessellator, Sector sector)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addVertex​(double degreesLatitude, double degreesLongitude)  
      void beginContour()  
      protected int clipCode​(double degreesLatitude, double degreesLongitude)
      Computes a 4-bit code indicating the vertex's location in the 9 cell grid defined by the clip coordinates and the eight adjacent spaces defined by extending the min/max boundaries to infinity.0 indicates that the vertex is inside the clip coordinates.
      protected void doAddVertex​(double degreesLatitude, double degreesLongitude)  
      void endContour()  
      • Methods inherited from class java.lang.Object

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

      • tessellator

        protected com.jogamp.opengl.glu.GLUtessellator tessellator
      • clipDegrees

        protected double[] clipDegrees
      • prevCoord

        protected double[] prevCoord
      • prevClipCode

        protected int prevClipCode
    • Constructor Detail

      • ClippingTessellator

        public ClippingTessellator​(com.jogamp.opengl.glu.GLUtessellator tessellator,
                                   Sector sector)
    • Method Detail

      • beginContour

        public void beginContour()
      • endContour

        public void endContour()
      • addVertex

        public void addVertex​(double degreesLatitude,
                              double degreesLongitude)
      • doAddVertex

        protected void doAddVertex​(double degreesLatitude,
                                   double degreesLongitude)
      • clipCode

        protected int clipCode​(double degreesLatitude,
                               double degreesLongitude)
        Computes a 4-bit code indicating the vertex's location in the 9 cell grid defined by the clip coordinates and the eight adjacent spaces defined by extending the min/max boundaries to infinity.0 indicates that the vertex is inside the clip coordinates.
        Parameters:
        degreesLatitude - The latitude for computation.
        degreesLongitude - The longitude for computation.
        Returns:
        The vertex location code.