Package org.locationtech.jts.precision
Class SimpleMinimumClearance.ComputeMCCoordinateSequenceFilter
- java.lang.Object
-
- org.locationtech.jts.precision.SimpleMinimumClearance.ComputeMCCoordinateSequenceFilter
-
- All Implemented Interfaces:
CoordinateSequenceFilter
- Enclosing class:
- SimpleMinimumClearance
private static class SimpleMinimumClearance.ComputeMCCoordinateSequenceFilter extends java.lang.Object implements CoordinateSequenceFilter
-
-
Field Summary
Fields Modifier and Type Field Description private Coordinate
queryPt
(package private) SimpleMinimumClearance
smc
-
Constructor Summary
Constructors Constructor Description ComputeMCCoordinateSequenceFilter(SimpleMinimumClearance smc, Coordinate queryPt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 aCoordinateSequence
.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.
-
-
-
Field Detail
-
smc
SimpleMinimumClearance smc
-
queryPt
private Coordinate queryPt
-
-
Constructor Detail
-
ComputeMCCoordinateSequenceFilter
public ComputeMCCoordinateSequenceFilter(SimpleMinimumClearance smc, Coordinate queryPt)
-
-
Method Detail
-
filter
public void filter(CoordinateSequence seq, int i)
Description copied from interface:CoordinateSequenceFilter
Performs an operation on a coordinate in aCoordinateSequence
.- Specified by:
filter
in interfaceCoordinateSequenceFilter
- Parameters:
seq
- theCoordinateSequence
to which the filter is appliedi
- the index of the coordinate to apply the filter to
-
checkVertexDistance
private void checkVertexDistance(Coordinate vertex)
-
checkSegmentDistance
private void checkSegmentDistance(Coordinate seg0, Coordinate seg1)
-
isDone
public boolean isDone()
Description copied from interface:CoordinateSequenceFilter
Reports whether the application of this filter can be terminated. Once this method returns false, it should continue to return false on every subsequent call.- Specified by:
isDone
in interfaceCoordinateSequenceFilter
- Returns:
- true if the application of this filter can be terminated.
-
isGeometryChanged
public boolean isGeometryChanged()
Description copied from interface:CoordinateSequenceFilter
Reports whether the execution of this filter has modified the coordinates of the geometry. If so,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.
- Specified by:
isGeometryChanged
in interfaceCoordinateSequenceFilter
- Returns:
- true if this filter has changed the coordinates of the geometry
-
-