Package gov.nasa.worldwind.render
Class PolygonTessellator
- java.lang.Object
-
- gov.nasa.worldwind.render.PolygonTessellator
-
public class PolygonTessellator extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PolygonTessellator.TessCallbackAdapter
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.IntBuffer
boundaryIndices
protected boolean
enabled
protected java.nio.IntBuffer
interiorIndices
protected boolean
isBoundaryEdge
protected com.jogamp.opengl.glu.GLUtessellator
tess
protected double[]
vertexCoord
-
Constructor Summary
Constructors Constructor Description PolygonTessellator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.IntBuffer
addIndex(java.nio.IntBuffer buffer, int index)
void
addVertex(double x, double y, double z, int index)
void
beginContour()
void
beginPolygon()
void
endContour()
void
endPolygon()
java.nio.IntBuffer
getBoundaryIndices()
java.nio.IntBuffer
getInteriorIndices()
boolean
isEnabled()
void
reset()
void
setEnabled(boolean enabled)
void
setPolygonNormal(double x, double y, double z)
protected void
tessBegin(int type)
protected void
tessCombine(double[] coords, java.lang.Object[] vertexData, float[] weight, java.lang.Object[] outData)
protected void
tessEdgeFlag(boolean boundaryEdge)
protected void
tessEnd()
protected void
tessVertex(java.lang.Object vertexData)
-
-
-
Field Detail
-
enabled
protected boolean enabled
-
tess
protected com.jogamp.opengl.glu.GLUtessellator tess
-
interiorIndices
protected java.nio.IntBuffer interiorIndices
-
boundaryIndices
protected java.nio.IntBuffer boundaryIndices
-
isBoundaryEdge
protected boolean isBoundaryEdge
-
vertexCoord
protected double[] vertexCoord
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getInteriorIndices
public java.nio.IntBuffer getInteriorIndices()
-
getBoundaryIndices
public java.nio.IntBuffer getBoundaryIndices()
-
reset
public void reset()
-
setPolygonNormal
public void setPolygonNormal(double x, double y, double z)
-
beginPolygon
public void beginPolygon()
-
beginContour
public void beginContour()
-
addVertex
public void addVertex(double x, double y, double z, int index)
-
endContour
public void endContour()
-
endPolygon
public void endPolygon()
-
tessBegin
protected void tessBegin(int type)
-
tessEdgeFlag
protected void tessEdgeFlag(boolean boundaryEdge)
-
tessVertex
protected void tessVertex(java.lang.Object vertexData)
-
tessEnd
protected void tessEnd()
-
tessCombine
protected void tessCombine(double[] coords, java.lang.Object[] vertexData, float[] weight, java.lang.Object[] outData)
-
addIndex
protected java.nio.IntBuffer addIndex(java.nio.IntBuffer buffer, int index)
-
-