Class GLRouteElevation


  • @ParametersAreNonnullByDefault
    public class GLRouteElevation
    extends globus.glmap.GLNativeObject
    Class to load height data
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  GLRouteElevation.ResultsCallback
      Callback that will be called when request is finished
    • Method Summary

      Modifier and Type Method Description
      static void cancelRequest​(long requestID)
      Cancels request that was started
      float getMax()
      Maximum value
      float getMin()
      Minimal value
      float heightAtIndex​(int index)
      Returns height at given point index
      static long requestHeightForRoute​(GLRoute routeData, GLRouteElevation.ResultsCallback resultsCallback)
      Requests height for points in route
      • Methods inherited from class globus.glmap.GLNativeObject

        dispose
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • requestHeightForRoute

        public static long requestHeightForRoute​(GLRoute routeData,
                                                 GLRouteElevation.ResultsCallback resultsCallback)
        Requests height for points in route
        Parameters:
        routeData - route to update with height information
        resultsCallback - callback that is called when request is finished of cancelled
        Returns:
        request ID
      • cancelRequest

        public static void cancelRequest​(long requestID)
        Cancels request that was started
        Parameters:
        requestID - ID of request to cancel
      • getMin

        public float getMin()
        Minimal value
        Returns:
        Minimal value
      • getMax

        public float getMax()
        Maximum value
        Returns:
        Maximum value
      • heightAtIndex

        public float heightAtIndex​(int index)
        Returns height at given point index
        Parameters:
        index - index of point
        Returns:
        height at given point