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
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
FieldsModifier and TypeFieldDescriptionorg.locationtech.jts.geom.CoordinateCoordinateof the cut point.doubleGround effect coefficient.doubleTopographic height of the point. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intorg.locationtech.jts.geom.CoordinateRetrieve the coordinate of the point.doubleRetrieve the ground effect coefficient of the point.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.toString()
-
Field Details
-
coordinate
public org.locationtech.jts.geom.Coordinate coordinateCoordinateof the cut point. -
zGround
public double zGroundTopographic height of the point. -
groundCoefficient
public double groundCoefficientGround 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 Details
-
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
Copy constructor- Parameters:
other- Other instance to copy
-
-
Method Details
-
clone
-
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
Retrieve the topographic height of the ground. (sea level = 0m)- Returns:
- The topographic height of the ground. (sea level = 0m)
-
compareTo
- Specified by:
compareToin interfaceComparable<CutPoint>- Parameters:
cutPoint- the object to be compared.- Returns:
-
toString
-