|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object MapSegment MapWaySegment
public class MapWaySegment
line between two nodes in the map data
Field Summary |
---|
Fields inherited from class MapSegment |
---|
endNode, startNode |
Constructor Summary | |
---|---|
MapWaySegment(OSMWay osmWay,
MapNode startNode,
MapNode endNode)
|
Method Summary | |
---|---|
void |
addOverlap(MapOverlap<?,?> overlap)
|
void |
addRepresentation(WaySegmentWorldObject representation)
adds a visual representation for this way segment |
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ()
|
WaySegmentElevationProfile |
getElevationProfile()
returns the elevation information for this GridElement. |
Iterable<MapIntersectionWW> |
getIntersectionsWW()
|
int |
getLayer()
|
OSMWay |
getOsmWay()
|
Collection<MapOverlap<?,?>> |
getOverlaps()
returns all overlaps between this MapElement
and other MapElement s. |
WaySegmentWorldObject |
getPrimaryRepresentation()
returns the primary representation, or null if the object doesn't have any. |
List<WaySegmentWorldObject> |
getRepresentations()
returns the visual representations of this element. |
TagGroup |
getTags()
returns the tags of the underlying OSMElement |
void |
setElevationProfile(WaySegmentElevationProfile elevationProfile)
|
String |
toString()
|
Methods inherited from class MapSegment |
---|
getCenter, getDirection, getEndNode, getLineSegment, getOtherNode, getRightNormal, getStartEndNodes, getStartNode, isConnectedTo, isConnectedTo, sharesBothNodes |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapWaySegment(OSMWay osmWay, MapNode startNode, MapNode endNode)
Method Detail |
---|
public int getLayer()
getLayer
in interface MapElement
public OSMWay getOsmWay()
public TagGroup getTags()
MapElement
OSMElement
getTags
in interface MapElement
public void addOverlap(MapOverlap<?,?> overlap)
public Collection<MapOverlap<?,?>> getOverlaps()
MapElement
MapElement
and other MapElement
s.
getOverlaps
in interface MapElement
public Iterable<MapIntersectionWW> getIntersectionsWW()
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
public List<WaySegmentWorldObject> getRepresentations()
MapElement
getRepresentations
in interface MapElement
public WaySegmentWorldObject getPrimaryRepresentation()
MapElement
getPrimaryRepresentation
in interface MapElement
MapElement.getRepresentations()
public void addRepresentation(WaySegmentWorldObject representation)
public WaySegmentElevationProfile getElevationProfile()
MapElement
getElevationProfile
in interface MapElement
public void setElevationProfile(WaySegmentElevationProfile elevationProfile)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |