org.osm2world.core.map_data.data
Interface MapElement

All Superinterfaces:
IntersectionTestObject
All Known Implementing Classes:
MapArea, MapNode, MapWaySegment

public interface MapElement
extends IntersectionTestObject


Method Summary
 ElevationProfile getElevationProfile()
          returns the elevation information for this GridElement.
 int getLayer()
           
 Collection<MapOverlap<? extends MapElement,? extends MapElement>> getOverlaps()
          returns all overlaps between this MapElement and other MapElements.
 WorldObject getPrimaryRepresentation()
          returns the primary representation, or null if the object doesn't have any.
 List<? extends WorldObject> getRepresentations()
          returns the visual representations of this element.
 TagGroup getTags()
          returns the tags of the underlying OSMElement
 
Methods inherited from interface IntersectionTestObject
getAxisAlignedBoundingBoxXZ
 

Method Detail

getLayer

int getLayer()

getRepresentations

List<? extends WorldObject> getRepresentations()
returns the visual representations of this element. The order should match the order in which they were added, so that dependencies are preserved (elements that depend on another element should be placed after that element). The first element is considered the "primary" representation, and for some purposes - such as elevation calculation -, only this representation will be used.


getPrimaryRepresentation

WorldObject getPrimaryRepresentation()
returns the primary representation, or null if the object doesn't have any.

See Also:
getRepresentations()

getElevationProfile

ElevationProfile getElevationProfile()
returns the elevation information for this GridElement. Can be null if no elevations have been set yet or if the element was ignored during elevation calculation because it didn't have a representation.


getOverlaps

Collection<MapOverlap<? extends MapElement,? extends MapElement>> getOverlaps()
returns all overlaps between this MapElement and other MapElements.


getTags

TagGroup getTags()
returns the tags of the underlying OSMElement