Online Maps  v3
OnlineMapsElevationManager< T > Class Template Reference

Base class - singleton for elevation manager More...

Inheritance diagram for OnlineMapsElevationManager< T >:
OnlineMapsElevationManagerBase OnlineMapsSinglePartElevationManager< T > OnlineMapsTiledElevationManager< T >

Public Member Functions

override void RequestNewElevationData ()
 Downloads new elevation data for area More...
 
virtual void SetElevationData (short[,] data)
 Sets elevation data More...
 
- Public Member Functions inherited from OnlineMapsElevationManagerBase
abstract void CancelCurrentElevationRequest ()
 Cancel current elevation request More...
 
float GetMaxElevation (float yScale)
 Returns the maximum known elevation value More...
 
float GetMinElevation (float yScale)
 Returns the minimum known elevation value More...
 

Properties

static bool isEnabled [get]
 Elevation manager is enabled More...
 
- Properties inherited from OnlineMapsElevationManagerBase
static OnlineMapsElevationManagerBase instance [get]
 Instance of elevation manager More...
 
static bool isActive [get]
 Elevation manager is active? More...
 
static bool useElevation [get]
 Are elevations used for map? More...
 
abstract bool hasData [get]
 Elevation manager has elevation data More...
 

Additional Inherited Members

- Static Public Member Functions inherited from OnlineMapsElevationManagerBase
static float GetBestElevationYScale ()
 Returns yScale for an area More...
 
static float GetBestElevationYScale (double tlx, double tly, double brx, double bry)
 Returns yScale for an area More...
 
static float GetElevation (double x, double z, float? yScale=null)
 Returns the scaled elevation value for a point in the scene relative to left-top corner of the map. More...
 
static float GetElevation (double x, double z, float yScale, double tlx, double tly, double brx, double bry)
 Returns the scaled elevation value for a point in the scene relative to left-top corner of the map. More...
 
static float GetUnscaledElevation (double x, double z)
 Returns the unscaled elevation value for a point in the scene relative to left-top corner of the map. More...
 
static float GetUnscaledElevation (double x, double z, double tlx, double tly, double brx, double bry)
 Returns the unscaled elevation value for a point in the scene relative to left-top corner of the map. More...
 
static float GetUnscaledElevationByCoordinate (double lng, double lat)
 Returns the unscaled elevation value for a coordinate. More...
 
- Public Attributes inherited from OnlineMapsElevationManagerBase
Action< string > OnElevationFails
 Called when downloading elevation data failed More...
 
Action OnElevationRequested
 Called when downloading of elevation data began More...
 
Action OnElevationUpdated
 Called when elevation data has been updated More...
 
Action< double, double, double, double > OnGetElevation
 Called when downloading of elevation data for an area begins More...
 
OnlineMapsElevationBottomMode bottomMode = OnlineMapsElevationBottomMode.zero
 The rule for calculating the lowest point of the map mesh More...
 
float scale = 1
 Scale of elevation values More...
 
OnlineMapsRange zoomRange = new OnlineMapsRange(11, OnlineMaps.MAXZOOM_EXT)
 Range when elevations will be shown More...
 
short minValue
 The minimum elevation value. More...
 
short maxValue
 The maximum elevation value. More...
 
bool lockYScale = false
 Lock yScale value More...
 
float yScaleValue = 1
 Fixed yScale value More...
 

Detailed Description

Base class - singleton for elevation manager

Template Parameters
TType of elevation manager
Type Constraints
T :OnlineMapsElevationManager<T> 

Member Function Documentation

◆ RequestNewElevationData()

override void OnlineMapsElevationManager< T >.RequestNewElevationData ( )
virtual

Downloads new elevation data for area

Implements OnlineMapsElevationManagerBase.

◆ SetElevationData()

virtual void OnlineMapsElevationManager< T >.SetElevationData ( short  data[,])
virtual

Sets elevation data

Parameters
dataArray of elevation data. By default: 32x32.

Reimplemented in OnlineMapsSinglePartElevationManager< T >.

Property Documentation

◆ isEnabled

bool OnlineMapsElevationManager< T >.isEnabled
staticget

Elevation manager is enabled