|
GlsMap Toolkit
1.10.3
|
#include <gls_map_aif.h>
Inheritance diagram for disti::AifMapChartDataSource:Public Member Functions | |
| GLSGEN_GLSMAPAIF_EXPORT | AifMapChartDataSource (bool UseDefaultCache=true) |
| GLSGEN_GLSMAPAIF_EXPORT | ~AifMapChartDataSource () DISTI_METHOD_OVERRIDE |
| GLSGEN_GLSMAPAIF_EXPORT void | LoadAifFile (std::string filename) |
| virtual GLSGEN_GLSMAPAIF_EXPORT void | SetCache (AIFMapChartLayerCache &cache) |
| GLSGEN_GLSMAPAIF_EXPORT bool | GetAvailableCoverage (GeoRect *dest) DISTI_METHOD_OVERRIDE |
| GLSGEN_GLSMAPAIF_EXPORT void | GetCellList (const GeoRect &coverage, unsigned long layerID, double viewLogicalHeight, double viewGeoHeight, MapChartCellList &viewList) DISTI_METHOD_OVERRIDE |
| GLSGEN_GLSMAPAIF_EXPORT void | AddOverlay (const std::string &overlay, double resolution) |
| GLSGEN_GLSMAPAIF_EXPORT void | InsertOverlay (int index, const std::string &overlay, double resolution) |
| GLSGEN_GLSMAPAIF_EXPORT void | RemoveOverlay (const std::string &overlay, double resolution) |
| GLSGEN_GLSMAPAIF_EXPORT void | RemoveOverlay (const std::string &overlay) |
| GLSGEN_GLSMAPAIF_EXPORT void | RemoveOverlay (double resolution) |
| GLSGEN_GLSMAPAIF_EXPORT void | SetCacheSize (const float memSize) |
| GLSGEN_GLSMAPAIF_EXPORT float | GetCacheSize () const |
| GLSGEN_GLSMAPAIF_EXPORT float | GetCurrentCacheAllocated () |
| GLSGEN_GLSMAPAIF_EXPORT void | InstallViewManager (AIFViewManager &mgr) |
| GLSGEN_GLSMAPAIF_EXPORT void | UninstallViewManager () |
| GLSGEN_GLSMAPAIF_EXPORT void | PreCache (const GeoRect &area) |
| GLSGEN_GLSMAPAIF_EXPORT void | PreCache (const double resolution) |
| GLSGEN_GLSMAPAIF_EXPORT void | SetTargetCellLoadRate (const double targetCellLoadRate) |
| GLSGEN_GLSMAPAIF_EXPORT double | GetTargetCellLoadRate () const |
Public Member Functions inherited from disti::GlsMapChartDataSource | |
| virtual | ~GlsMapChartDataSource () |
| virtual bool | GetAvailableCoverage (GeoRect *dest)=0 |
| virtual unsigned long | GetBestLayer (GlsMapView *view, GlsMapChart *chart) const |
| virtual void | GetCellList (const GeoRect &coverage, unsigned long layerID, double viewLogicalHeight, double viewGeoHeight, MapChartCellList &viewList)=0 |
| virtual void | PrepareCells () |
| virtual void | PostDraw (GlsMapView *view, GlsMapChart *chart) |
| virtual bool | AreAllCellsLoaded (GlsMapView *view, GlsMapChart *chart) |
Protected Attributes | |
| OverlayCellMultiMap | _cells |
| ResolutionList | _resolutionList |
| GeoRect | _extents |
| OverlayListType | _overlayList |
| AIFMapChartLayerCache * | _pCache |
| AIFViewManager * | _pViewMgr |
| bool | _usingDefaultCache |
Additional Inherited Members | |
Protected Member Functions inherited from disti::GlsMapChartDataSource | |
| GlsMapChartDataSource () | |
Runtime implementation of an AifMapChartDataSource
| AifMapChartDataSource::AifMapChartDataSource | ( | bool | UseDefaultCache = true | ) |
Create a new AifMapChartDataSource.
| UseDefaultCache | whether to use the default caching system. See AIFMapChartLayerCache for more information |
| void AifMapChartDataSource::AddOverlay | ( | const std::string & | overlay, |
| double | resolution | ||
| ) |
Add an overlay layer to the list of layers to display.
| overlay | The name of the overlay layer to display. Must correspond to an overlay defined in the AIF file. |
| resolution | The resolution of the overlay to display. Must correspond to a resolution of an overlay defined in the AIF file. |
|
virtual |
See base class.
Implements disti::GlsMapChartDataSource.
|
virtual |
See base class.
Implements disti::GlsMapChartDataSource.
| double AifMapChartDataSource::GetTargetCellLoadRate | ( | ) | const |
Get the target rate in hz at which cells will be loaded
| void AifMapChartDataSource::InsertOverlay | ( | int | index, |
| const std::string & | overlay, | ||
| double | resolution | ||
| ) |
Insert an overlay layer to the list of layers to display at the given position.
| index | The index to insert the overlay at, if -1 or greater than the length of the overlay list then inserts at end. |
| overlay | The name of the overlay layer to display. Must correspond to an overlay defined in the AIF file. |
| resolution | The resolution of the overlay to display. Must correspond to a resolution of an overlay defined in the AIF file. |
| void AifMapChartDataSource::InstallViewManager | ( | AIFViewManager & | mgr | ) |
Install the view manager. The view manager (after being initialized by the user) will set this class up to add/remove overlays automatically based on the view height
| mgr | Manager to install |
| void AifMapChartDataSource::LoadAifFile | ( | std::string | filename | ) |
Load an AIF File with the given file name.
| filename | The name of the AIF file to load. Can be absolute or relative to the executing directory. |
| void AifMapChartDataSource::PreCache | ( | const double | resolution | ) |
Precache based on resolution
| resolution | Resolution to precache at. |
| void AifMapChartDataSource::PreCache | ( | const GeoRect & | area | ) |
Precache based on geo-rect area. This uses the AIFMapChartCache as the mechanism to precache images
| area | Geometric rect area to pre-cache |
| void AifMapChartDataSource::RemoveOverlay | ( | const std::string & | overlay | ) |
Remove all overlay layers with the given overlay name.
| overlay | The name of the set of overlay layers to remove. |
| void AifMapChartDataSource::RemoveOverlay | ( | const std::string & | overlay, |
| double | resolution | ||
| ) |
Remove an overlay layer from the list of layers to display.
| overlay | The name of the overlay layer to remove. Must correspond to an overlay defined in the AIF file. |
| resolution | The resolution of the overlay to remove. Must correspond to a resolution of an overlay defined in the AIF file. |
| void AifMapChartDataSource::RemoveOverlay | ( | double | resolution | ) |
Remove all overlay layers with the given resolution.
| resolution | The resolution of the set of overlay layers to remove. |
|
virtual |
If using custom cache, set it here. Caller responsible for its deallocation if necessary
| cache | Custom cache to use |
| void AifMapChartDataSource::SetCacheSize | ( | const float | memSize | ) |
| memSize | Set the cached size (megabytes) of images |
| void AifMapChartDataSource::SetTargetCellLoadRate | ( | const double | targetCellLoadRate | ) |
Set the target rate in hz at which cells will be loaded
| targetCellLoadRate | target rate in hz else 0.0 for no target rate ( i.e. load as quickly as possible ) |
|
protected |
A list of the resolutions in this AIF file for speeding up the selection of a resolution at cell load list time.