public class VisibilityAlgorithm extends Object
| Constructor and Description |
|---|
VisibilityAlgorithm(double maxDistance) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeometry(org.locationtech.jts.geom.Geometry geometry)
Explode geometry and add occlusion segments in isovist
|
void |
addLineString(org.locationtech.jts.geom.LineString lineString) |
void |
addSegment(org.locationtech.jts.geom.Coordinate p0,
org.locationtech.jts.geom.Coordinate p1)
Add occlusion segment in isovist
|
void |
fixSegments() |
double |
getEpsilon() |
org.locationtech.jts.geom.Polygon |
getIsoVist(org.locationtech.jts.geom.Coordinate position,
boolean addEnvelope)
Compute isovist polygon
|
void |
setEpsilon(double epsilon) |
void |
setNumPoints(int numPoints) |
public VisibilityAlgorithm(double maxDistance)
maxDistance - maximum distance constraint for visibility polygon, from view pointpublic void fixSegments()
public void setNumPoints(int numPoints)
numPoints - Number of points of the bounding circle polygon. Default 100public void addSegment(org.locationtech.jts.geom.Coordinate p0,
org.locationtech.jts.geom.Coordinate p1)
p0 - segment originp1 - segment destinationpublic org.locationtech.jts.geom.Polygon getIsoVist(org.locationtech.jts.geom.Coordinate position,
boolean addEnvelope)
position - View coordinateaddEnvelope - If true add circle bounding box. This function does not work properly if the view point is not
enclosed by segmentspublic double getEpsilon()
public void setEpsilon(double epsilon)
public void addLineString(org.locationtech.jts.geom.LineString lineString)
public void addGeometry(org.locationtech.jts.geom.Geometry geometry)
geometry - Geometry collection, LineString or Polygon instanceCopyright © 2019 CNRS. All rights reserved.