public class SmoothingFilter extends Object implements IVertexValuator
Note that this class modifies the index values of the vertices stored in the TIN. It also depends on the modified values as a way of tracking vertices. Therefore, calling applications should not modify these values while the smoothing filter is being used.
| Constructor and Description |
|---|
SmoothingFilter(IIncrementalTin tin)
Construct a smoothing filter.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMaxZ()
Gets the maximum value from the set of possible values.
|
double |
getMinZ()
Gets the minimum value from the set of possible values.
|
double |
getTimeToConstructFilter()
Gets the time required to construct the filter, in milliseconds.
|
double[] |
getVertexAdjustments()
Gets the array of adjustment for vertices.
|
void |
setVertexAdjustments(double[] adjustments)
Sets the array of adjustments for vertices
|
double |
value(Vertex v)
Given a vertex v, obtain its value
|
public SmoothingFilter(IIncrementalTin tin)
Important usage note: this constructor modifies the index values of the vertices stored in the TIN. It also depends on the modified values as a way of tracking vertices. Therefore, calling applications should not modify these values while the smoothing filter is being used.
The vertices belonging to constraints are not smoothed, but are represented with their original values by the smoothing filter.
tin - a valid Delaunay Triangulationpublic double getTimeToConstructFilter()
public double value(Vertex v)
IVertexValuatorvalue in interface IVertexValuatorv - a vertexpublic double[] getVertexAdjustments()
public void setVertexAdjustments(double[] adjustments)
adjustments - a valid array of same length as internal storagepublic double getMinZ()
public double getMaxZ()
Copyright © 2019. All rights reserved.