Class CutPoint
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.profilebuilder.CutPoint
-
- All Implemented Interfaces:
Cloneable,Comparable<CutPoint>
- Direct Known Subclasses:
CutPointGroundEffect,CutPointReceiver,CutPointReflection,CutPointSource,CutPointTopography,CutPointVEdgeDiffraction,CutPointWall
public class CutPoint extends Object implements Comparable<CutPoint>, Cloneable
On the vertical cut profile, this is one of the point This abstract class is implemented with specific attributes depending on the intersection object
-
-
Field Summary
Fields Modifier and Type Field Description org.locationtech.jts.geom.CoordinatecoordinateCoordinateof the cut point.doublegroundCoefficientGround effect coefficient.doublezGroundTopographic height of the point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CutPointclone()intcompareTo(CutPoint cutPoint)org.locationtech.jts.geom.CoordinategetCoordinate()Retrieve the coordinate of the point.doublegetGroundCoefficient()Retrieve the ground effect coefficient of the point.DoublegetzGround()Retrieve the topographic height of the ground.voidsetCoordinate(org.locationtech.jts.geom.Coordinate coordinate)voidsetGroundCoefficient(double groundCoefficient)Sets the ground coefficient of this point.voidsetZGround(double zGround)Sets the topographic height.StringtoString()
-
-
-
Field Detail
-
coordinate
public org.locationtech.jts.geom.Coordinate coordinate
Coordinateof the cut point.
-
zGround
public double zGround
Topographic height of the point.
-
groundCoefficient
public double groundCoefficient
Ground effect coefficient. G=1.0 Soft, uncompacted ground (pasture, loose soil); snow etc G=0.7 Compacted soft ground (lawns, park areas): G=0.3 Compacted dense ground (gravel road, compacted soil): G=0.0 Hard surfaces (asphalt, concrete, top of buildings):
-
-
Constructor Detail
-
CutPoint
public CutPoint()
-
CutPoint
public CutPoint(org.locationtech.jts.geom.Coordinate coordinate)
-
CutPoint
public CutPoint(org.locationtech.jts.geom.Coordinate coordinate, double zGround, double groundCoefficient)
-
CutPoint
public CutPoint(CutPoint other)
Copy constructor- Parameters:
other- Other instance to copy
-
-
Method Detail
-
setCoordinate
public void setCoordinate(org.locationtech.jts.geom.Coordinate coordinate)
-
setGroundCoefficient
public void setGroundCoefficient(double groundCoefficient)
Sets the ground coefficient of this point.- Parameters:
groundCoefficient- The ground coefficient of this point.
-
setZGround
public void setZGround(double zGround)
Sets the topographic height.- Parameters:
zGround- The topographic height.
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate()
Retrieve the coordinate of the point.- Returns:
- The coordinate of the point. z is the altitude of the point. (sea level = 0m)
-
getGroundCoefficient
public double getGroundCoefficient()
Retrieve the ground effect coefficient of the point. If there is no coefficient, returns 0.- Returns:
- Ground effect coefficient or NaN.
-
getzGround
public Double getzGround()
Retrieve the topographic height of the ground. (sea level = 0m)- Returns:
- The topographic height of the ground. (sea level = 0m)
-
compareTo
public int compareTo(CutPoint cutPoint)
- Specified by:
compareToin interfaceComparable<CutPoint>- Parameters:
cutPoint- the object to be compared.- Returns:
-
-