Constructor and Description |
---|
OSMIntersectionInfo(OSMNode centre)
Create an IntersectionInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
addRoadSegment(OSMRoadInfo road)
Add an incoming road.
|
java.awt.geom.Area |
getArea()
Get the area covered by this shape.
|
OSMNode |
getCentre()
Get the OSMNode at the centre of this intersection.
|
java.util.List<Point2D> |
getVertices()
Get the vertices of this shape in clockwise order.
|
void |
process(double sizeOf1m)
Process this intersection and determine the vertices and area it covers.
|
java.lang.String |
toString() |
public OSMIntersectionInfo(OSMNode centre)
centre
- The OSMNode at the centre of the intersection.public void addRoadSegment(OSMRoadInfo road)
road
- The incoming road.public void process(double sizeOf1m)
sizeOf1m
- The size of 1m in latitude/longitude.public OSMNode getCentre()
public java.awt.geom.Area getArea()
OSMShape
public java.util.List<Point2D> getVertices()
OSMShape
getVertices
in interface OSMShape
public java.lang.String toString()
toString
in class java.lang.Object