Package gov.nasa.worldwind.util
Class PolylineGeneralizer
- java.lang.Object
-
- gov.nasa.worldwind.util.PolylineGeneralizer
-
public class PolylineGeneralizer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classPolylineGeneralizer.Element
-
Field Summary
Fields Modifier and Type Field Description protected PolylineGeneralizer.Element[]heapprotected intheapSizeprotected double[]vertexAreaprotected intvertexCount
-
Constructor Summary
Constructors Constructor Description PolylineGeneralizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVertex(double x, double y, double z)voidbeginPolyline()protected doublecomputeEffectiveArea(PolylineGeneralizer.Element e)protected voidcomputeEliminationArea()protected voidcomputeInitialArea()voidendPolyline()intgetVertexCount()double[]getVertexEffectiveArea(double[] array)protected voidheapify()protected PolylineGeneralizer.Elementpop()voidreset()protected voidsiftDown(int k, PolylineGeneralizer.Element x)protected voidsiftUp(int k, PolylineGeneralizer.Element x)protected voidupdateEffectiveArea(PolylineGeneralizer.Element e)
-
-
-
Field Detail
-
heapSize
protected int heapSize
-
heap
protected PolylineGeneralizer.Element[] heap
-
vertexCount
protected int vertexCount
-
vertexArea
protected double[] vertexArea
-
-
Method Detail
-
getVertexCount
public int getVertexCount()
-
getVertexEffectiveArea
public double[] getVertexEffectiveArea(double[] array)
-
beginPolyline
public void beginPolyline()
-
endPolyline
public void endPolyline()
-
reset
public void reset()
-
addVertex
public void addVertex(double x, double y, double z)
-
computeInitialArea
protected void computeInitialArea()
-
computeEliminationArea
protected void computeEliminationArea()
-
computeEffectiveArea
protected double computeEffectiveArea(PolylineGeneralizer.Element e)
-
updateEffectiveArea
protected void updateEffectiveArea(PolylineGeneralizer.Element e)
-
heapify
protected void heapify()
-
pop
protected PolylineGeneralizer.Element pop()
-
siftUp
protected void siftUp(int k, PolylineGeneralizer.Element x)
-
siftDown
protected void siftDown(int k, PolylineGeneralizer.Element x)
-
-