private static class SimpleMinimumClearance.ComputeMCCoordinateSequenceFilter extends java.lang.Object implements CoordinateSequenceFilter
Modifier and Type | Field and Description |
---|---|
private Coordinate |
queryPt |
(package private) SimpleMinimumClearance |
smc |
Constructor and Description |
---|
ComputeMCCoordinateSequenceFilter(SimpleMinimumClearance smc,
Coordinate queryPt) |
Modifier and Type | Method and Description |
---|---|
private void |
checkSegmentDistance(Coordinate seg0,
Coordinate seg1) |
private void |
checkVertexDistance(Coordinate vertex) |
void |
filter(CoordinateSequence seq,
int i)
Performs an operation on a coordinate in a
CoordinateSequence . |
boolean |
isDone()
Reports whether the application of this filter can be terminated.
|
boolean |
isGeometryChanged()
Reports whether the execution of this filter
has modified the coordinates of the geometry.
|
SimpleMinimumClearance smc
private Coordinate queryPt
public ComputeMCCoordinateSequenceFilter(SimpleMinimumClearance smc, Coordinate queryPt)
public void filter(CoordinateSequence seq, int i)
CoordinateSequenceFilter
CoordinateSequence
.filter
in interface CoordinateSequenceFilter
seq
- the CoordinateSequence
to which the filter is appliedi
- the index of the coordinate to apply the filter toprivate void checkVertexDistance(Coordinate vertex)
private void checkSegmentDistance(Coordinate seg0, Coordinate seg1)
public boolean isDone()
CoordinateSequenceFilter
isDone
in interface CoordinateSequenceFilter
public boolean isGeometryChanged()
CoordinateSequenceFilter
Geometry.geometryChanged()
will be executed
after this filter has finished being executed.
Most filters can simply return a constant value reflecting whether they are able to change the coordinates.
isGeometryChanged
in interface CoordinateSequenceFilter