org.osm2world.core.map_elevation.data
Class WaySegmentElevationProfile

Object
  extended by ElevationProfile
      extended by WaySegmentElevationProfile

public class WaySegmentElevationProfile
extends ElevationProfile

elevation profile for a MapWaySegment


Constructor Summary
WaySegmentElevationProfile(MapWaySegment line)
           
 
Method Summary
 void addPointWithEle(VectorXYZ pointWithEle)
          adds a result of ElevationCalculator.
 double getEleAt(VectorXZ pos)
           
protected  MapElement getElement()
           
 double getMaxEle()
           
 double getMinEle()
           
 List<VectorXYZ> getPointsWithEle()
          returns all points along the line where elevation values exist.
 
Methods inherited from class ElevationProfile
getWithEle, getWithEle
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaySegmentElevationProfile

public WaySegmentElevationProfile(MapWaySegment line)
Method Detail

getElement

protected MapElement getElement()
Specified by:
getElement in class ElevationProfile

getPointsWithEle

public List<VectorXYZ> getPointsWithEle()
returns all points along the line where elevation values exist. This will at least include the starting and end point of the line. Other elements in between are ordered along the line. Must not be used before calculation results have been set using addPointWithEle(VectorXYZ)

Specified by:
getPointsWithEle in class ElevationProfile

getEleAt

public double getEleAt(VectorXZ pos)
Specified by:
getEleAt in class ElevationProfile

addPointWithEle

public void addPointWithEle(VectorXYZ pointWithEle)
adds a result of ElevationCalculator. Must be called at least twice (start and end node)


getMaxEle

public double getMaxEle()
Specified by:
getMaxEle in class ElevationProfile

getMinEle

public double getMinEle()
Specified by:
getMinEle in class ElevationProfile