Class MirrorReceiversCompute
java.lang.Object
org.noise_planet.noisemodelling.pathfinder.path.MirrorReceiversCompute
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMirrorReceiversCompute(List<Wall> buildWalls, org.locationtech.jts.geom.Coordinate receiverCoordinates, int reflectionOrder, double maximumPropagationDistance, double maximumDistanceFromWall) Generate all image receivers from the provided list of walls -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.PolygoncreateWallReflectionVisibilityCone(org.locationtech.jts.geom.Coordinate receiverImage, org.locationtech.jts.geom.LineSegment wall, double maximumPropagationDistance, double maximumDistanceFromWall) voidexportVisibility(StringBuilder sb, double maxPropagationDistance, double maxPropagationDistanceFromWall, int t, List<MirrorReceiver> MirrorReceiverList, boolean includeHeader) findCloseMirrorReceivers(org.locationtech.jts.geom.Coordinate sourcePosition) intvoidsetMirrorReceiverCapacity(int mirrorReceiverCapacity) static booleanwallPointTest(org.locationtech.jts.geom.LineSegment wall1, org.locationtech.jts.geom.Coordinate pt) Occlusion test between one wall and a viewer.
-
Field Details
-
DEFAULT_MIRROR_RECEIVER_CAPACITY
public static final int DEFAULT_MIRROR_RECEIVER_CAPACITY- See Also:
-
-
Constructor Details
-
MirrorReceiversCompute
public MirrorReceiversCompute(List<Wall> buildWalls, org.locationtech.jts.geom.Coordinate receiverCoordinates, int reflectionOrder, double maximumPropagationDistance, double maximumDistanceFromWall) Generate all image receivers from the provided list of walls- Parameters:
buildWalls-receiverCoordinates-reflectionOrder-
-
-
Method Details
-
createWallReflectionVisibilityCone
public static org.locationtech.jts.geom.Polygon createWallReflectionVisibilityCone(org.locationtech.jts.geom.Coordinate receiverImage, org.locationtech.jts.geom.LineSegment wall, double maximumPropagationDistance, double maximumDistanceFromWall) -
wallPointTest
public static boolean wallPointTest(org.locationtech.jts.geom.LineSegment wall1, org.locationtech.jts.geom.Coordinate pt) Occlusion test between one wall and a viewer. Simple Feature Access (ISO 19125-1) say that: On polygon exterior ring are CCW, and interior rings are CW.- Parameters:
wall1- Wall segmentpt- Observer- Returns:
- True if the wall is oriented to the point, false if the wall Occlusion Culling (transparent)
-
getMirrorReceiverCapacity
public int getMirrorReceiverCapacity() -
setMirrorReceiverCapacity
public void setMirrorReceiverCapacity(int mirrorReceiverCapacity) -
exportVisibility
public void exportVisibility(StringBuilder sb, double maxPropagationDistance, double maxPropagationDistanceFromWall, int t, List<MirrorReceiver> MirrorReceiverList, boolean includeHeader) -
findCloseMirrorReceivers
public List<MirrorReceiver> findCloseMirrorReceivers(org.locationtech.jts.geom.Coordinate sourcePosition)
-