public class PolylineGeneralizer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
PolylineGeneralizer.Element |
Modifier and Type | Field and Description |
---|---|
protected PolylineGeneralizer.Element[] |
heap |
protected int |
heapSize |
protected double[] |
vertexArea |
protected int |
vertexCount |
Constructor and Description |
---|
PolylineGeneralizer() |
Modifier and Type | Method and Description |
---|---|
void |
addVertex(double x,
double y,
double z) |
void |
beginPolyline() |
protected double |
computeEffectiveArea(PolylineGeneralizer.Element e) |
protected void |
computeEliminationArea() |
protected void |
computeInitialArea() |
void |
endPolyline() |
int |
getVertexCount() |
double[] |
getVertexEffectiveArea(double[] array) |
protected void |
heapify() |
protected PolylineGeneralizer.Element |
pop() |
void |
reset() |
protected void |
siftDown(int k,
PolylineGeneralizer.Element x) |
protected void |
siftUp(int k,
PolylineGeneralizer.Element x) |
protected void |
updateEffectiveArea(PolylineGeneralizer.Element e) |
protected PolylineGeneralizer.Element[] heap
protected int heapSize
protected double[] vertexArea
protected int vertexCount
public void addVertex(double x, double y, double z)
public void beginPolyline()
protected double computeEffectiveArea(PolylineGeneralizer.Element e)
protected void computeEliminationArea()
protected void computeInitialArea()
public void endPolyline()
public int getVertexCount()
public double[] getVertexEffectiveArea(double[] array)
protected void heapify()
protected PolylineGeneralizer.Element pop()
public void reset()
protected void siftDown(int k, PolylineGeneralizer.Element x)
protected void siftUp(int k, PolylineGeneralizer.Element x)
protected void updateEffectiveArea(PolylineGeneralizer.Element e)