Package globus.glroute
Class GLRouteElevation
- java.lang.Object
-
- globus.glmap.GLNativeObject
-
- globus.glroute.GLRouteElevation
-
public class GLRouteElevation extends globus.glmap.GLNativeObjectClass to load height data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGLRouteElevation.ResultsCallbackCallback that will be called when request is finished
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcancelRequest(long requestID)Cancels request that was startedfloatgetMax()Maximum valuefloatgetMin()Minimal valuefloatheightAtIndex(int index)Returns height at given point indexstatic longrequestHeightForRoute(GLRoute route, GLRouteElevation.ResultsCallback resultsCallback)Requests height for points in routestatic longrequestOfflineHeightForRoute(GLRoute route, boolean allowPartial, GLRouteElevation.ResultsCallback resultsCallback)Requests height for points in route
-
-
-
Method Detail
-
requestHeightForRoute
public static long requestHeightForRoute(@NonNull GLRoute route, @NonNull GLRouteElevation.ResultsCallback resultsCallback)Requests height for points in route- Parameters:
route- route to update with height informationresultsCallback- callback that is called when request is finished or cancelled- Returns:
- request ID
-
requestOfflineHeightForRoute
public static long requestOfflineHeightForRoute(@NonNull GLRoute route, boolean allowPartial, @NonNull GLRouteElevation.ResultsCallback resultsCallback)Requests height for points in route- Parameters:
route- route to update with height informationallowPartial- when 'false' request will fail if any tile with height data is absentresultsCallback- callback that is called when request is finished or cancelled
-
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
-
-