public class ClippingTessellator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double[] |
clipDegrees |
protected int |
prevClipCode |
protected double[] |
prevCoord |
protected com.jogamp.opengl.glu.GLUtessellator |
tessellator |
Constructor and Description |
---|
ClippingTessellator(com.jogamp.opengl.glu.GLUtessellator tessellator,
Sector sector) |
Modifier and Type | Method and 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.
|
protected void |
doAddVertex(double degreesLatitude,
double degreesLongitude) |
void |
endContour() |
protected double[] clipDegrees
protected int prevClipCode
protected double[] prevCoord
protected com.jogamp.opengl.glu.GLUtessellator tessellator
public ClippingTessellator(com.jogamp.opengl.glu.GLUtessellator tessellator, Sector sector)
public void addVertex(double degreesLatitude, double degreesLongitude)
public void beginContour()
protected int clipCode(double degreesLatitude, double degreesLongitude)
degreesLatitude
- the latitude in degrees.degreesLongitude
- the longitude in degrees.protected void doAddVertex(double degreesLatitude, double degreesLongitude)
public void endContour()