Package gov.nasa.worldwind.util
Class ClippingTessellator
- java.lang.Object
-
- gov.nasa.worldwind.util.ClippingTessellator
-
public class ClippingTessellator extends java.lang.Object
ClippingTessellator
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]
clipDegrees
protected int
prevClipCode
protected double[]
prevCoord
protected com.jogamp.opengl.glu.GLUtessellator
tessellator
-
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()
-
-
-
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.
-
-