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 Object
implements CoordinateSequenceFilter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckSegmentDistance(Coordinate seg0, Coordinate seg1) private voidcheckVertexDistance(Coordinate vertex) voidfilter(CoordinateSequence seq, int i) Performs an operation on a coordinate in aCoordinateSequence.booleanisDone()Reports whether the application of this filter can be terminated.booleanReports whether the execution of this filter has modified the coordinates of the geometry.
-
Field Details
-
smc
-
queryPt
-
-
Constructor Details
-
ComputeMCCoordinateSequenceFilter
-
-
Method Details
-
filter
Description copied from interface:CoordinateSequenceFilterPerforms an operation on a coordinate in aCoordinateSequence.- Specified by:
filterin interfaceCoordinateSequenceFilter- Parameters:
seq- theCoordinateSequenceto which the filter is appliedi- the index of the coordinate to apply the filter to
-
checkVertexDistance
-
checkSegmentDistance
-
isDone
public boolean isDone()Description copied from interface:CoordinateSequenceFilterReports 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:
isDonein interfaceCoordinateSequenceFilter- Returns:
- true if the application of this filter can be terminated.
-
isGeometryChanged
public boolean isGeometryChanged()Description copied from interface:CoordinateSequenceFilterReports 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:
isGeometryChangedin interfaceCoordinateSequenceFilter- Returns:
- true if this filter has changed the coordinates of the geometry
-