Class ElevationFilter
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.profilebuilder.ElevationFilter
-
- All Implemented Interfaces:
org.locationtech.jts.geom.CoordinateSequenceFilter
public final class ElevationFilter extends Object implements org.locationtech.jts.geom.CoordinateSequenceFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElevationFilter.UpdateZ
-
Constructor Summary
Constructors Constructor Description ElevationFilter(ProfileBuilder profileBuilder, boolean resetZ)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(org.locationtech.jts.geom.CoordinateSequence coordinateSequence, int i)booleanisDone()booleanisGeometryChanged()voidreset()
-
-
-
Constructor Detail
-
ElevationFilter
public ElevationFilter(ProfileBuilder profileBuilder, boolean resetZ)
Constructor- Parameters:
profileBuilder- Initialised instance of profileBuilderresetZ- If filtered geometry contain Z and resetZ is false, do not update Z.
-
-
Method Detail
-
reset
public void reset()
-
filter
public void filter(org.locationtech.jts.geom.CoordinateSequence coordinateSequence, int i)- Specified by:
filterin interfaceorg.locationtech.jts.geom.CoordinateSequenceFilter- Parameters:
coordinateSequence- theCoordinateSequenceto which the filter is appliedi- the index of the coordinate to apply the filter to
-
isDone
public boolean isDone()
- Specified by:
isDonein interfaceorg.locationtech.jts.geom.CoordinateSequenceFilter
-
isGeometryChanged
public boolean isGeometryChanged()
- Specified by:
isGeometryChangedin interfaceorg.locationtech.jts.geom.CoordinateSequenceFilter
-
-