Package gov.nasa.worldwind.util
Class ClippingTessellator
- java.lang.Object
-
- gov.nasa.worldwind.util.ClippingTessellator
-
public class ClippingTessellator extends java.lang.ObjectClippingTessellator
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]clipDegreesprotected intprevClipCodeprotected double[]prevCoordprotected com.jogamp.opengl.glu.GLUtessellatortessellator
-
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 voidaddVertex(double degreesLatitude, double degreesLongitude)voidbeginContour()protected intclipCode(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 voiddoAddVertex(double degreesLatitude, double degreesLongitude)voidendContour()
-
-
-
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.
-
-