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 classPolygonTessellator.TessCallbackAdapter
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.IntBufferboundaryIndicesprotected booleanenabledprotected java.nio.IntBufferinteriorIndicesprotected booleanisBoundaryEdgeprotected com.jogamp.opengl.glu.GLUtessellatortessprotected double[]vertexCoord
-
Constructor Summary
Constructors Constructor Description PolygonTessellator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.IntBufferaddIndex(java.nio.IntBuffer buffer, int index)voidaddVertex(double x, double y, double z, int index)voidbeginContour()voidbeginPolygon()voidendContour()voidendPolygon()java.nio.IntBuffergetBoundaryIndices()java.nio.IntBuffergetInteriorIndices()booleanisEnabled()voidreset()voidsetEnabled(boolean enabled)voidsetPolygonNormal(double x, double y, double z)protected voidtessBegin(int type)protected voidtessCombine(double[] coords, java.lang.Object[] vertexData, float[] weight, java.lang.Object[] outData)protected voidtessEdgeFlag(boolean boundaryEdge)protected voidtessEnd()protected voidtessVertex(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)
-
-