|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object MapArea
public class MapArea
Constructor Summary | |
---|---|
MapArea(OSMElement objectWithTags,
List<MapNode> nodes)
|
|
MapArea(OSMElement objectWithTags,
List<MapNode> nodes,
List<List<MapNode>> holes)
|
|
MapArea(OSMElement objectWithTags,
List<MapNode> nodes,
List<List<MapNode>> holes,
PolygonWithHolesXZ polygon)
|
Method Summary | |
---|---|
void |
addOverlap(MapOverlap<?,?> overlap)
|
void |
addRepresentation(AreaWorldObject representation)
adds a visual representation for this area |
Collection<MapAreaSegment> |
getAreaSegments()
returns the segments making up this area's outer and inner boundaries |
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ()
|
List<MapNode> |
getBoundaryNodes()
|
AreaElevationProfile |
getElevationProfile()
returns the elevation information for this GridElement. |
Collection<List<MapNode>> |
getHoles()
|
int |
getLayer()
|
OSMElement |
getOsmObject()
returns the way or relation with the tags for this area |
SimplePolygonXZ |
getOuterPolygon()
|
Collection<MapOverlap<?,?>> |
getOverlaps()
returns all overlaps between this MapElement
and other MapElement s. |
PolygonWithHolesXZ |
getPolygon()
returns the area as a polygon. |
AreaWorldObject |
getPrimaryRepresentation()
returns the primary representation, or null if the object doesn't have any. |
List<AreaWorldObject> |
getRepresentations()
returns the visual representations of this element. |
TagGroup |
getTags()
returns the tags of the underlying OSMElement |
static SimplePolygonXZ |
polygonFromMapNodeLoop(List<MapNode> nodes)
|
void |
setElevationProfile(AreaElevationProfile elevationProfile)
|
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapArea(OSMElement objectWithTags, List<MapNode> nodes)
public MapArea(OSMElement objectWithTags, List<MapNode> nodes, List<List<MapNode>> holes)
public MapArea(OSMElement objectWithTags, List<MapNode> nodes, List<List<MapNode>> holes, PolygonWithHolesXZ polygon)
Method Detail |
---|
public static final SimplePolygonXZ polygonFromMapNodeLoop(List<MapNode> nodes)
public List<MapNode> getBoundaryNodes()
public int getLayer()
getLayer
in interface MapElement
public Collection<List<MapNode>> getHoles()
public OSMElement getOsmObject()
public TagGroup getTags()
MapElement
OSMElement
getTags
in interface MapElement
public PolygonWithHolesXZ getPolygon()
public SimplePolygonXZ getOuterPolygon()
public Collection<MapAreaSegment> getAreaSegments()
public List<AreaWorldObject> getRepresentations()
MapElement
getRepresentations
in interface MapElement
public AreaWorldObject getPrimaryRepresentation()
MapElement
getPrimaryRepresentation
in interface MapElement
MapElement.getRepresentations()
public void addRepresentation(AreaWorldObject representation)
public AreaElevationProfile getElevationProfile()
MapElement
getElevationProfile
in interface MapElement
public void setElevationProfile(AreaElevationProfile elevationProfile)
public void addOverlap(MapOverlap<?,?> overlap)
public Collection<MapOverlap<?,?>> getOverlaps()
MapElement
MapElement
and other MapElement
s.
getOverlaps
in interface MapElement
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |