GlsMap Toolkit  1.3.1
disti::CADRGMapChartDataSource Class Reference

#include <gls_map_cadrg.h>

+ Inheritance diagram for disti::CADRGMapChartDataSource:

Public Member Functions

void ParseDirectory (const char *directoryPath)
 
void SetTargetCellLoadRate (const double targetCellLoadRate)
 
double GetTargetCellLoadRate (void) const
 
virtual bool GetAvailableCoverage (GeoRect *dest)
 
virtual unsigned long GetBestLayer (GlsMapView *view, GlsMapChart *chart)
 
virtual void GetCellList (const GeoRect &coverage, unsigned long layerID, MapChartCellList *viewList)
 
void SetCADRGLayer (unsigned long layer)
 
void SetCADRGLayer (std::string str)
 
unsigned long GetCADRGLayer (void)
 
void SetCIBLayer (unsigned long layer)
 
void SetCIBLayer (std::string str)
 
unsigned long GetCIBLayer (void)
 
void SetUseCADRGLayerFlag (bool layerFlag)
 
bool GetUseCADRGLayerFlag (void)
 
void SetUseCIBLayerFlag (bool layerFlag)
 
bool GetUseCIBLayerFlag (void)
 
void SetLayerCacheCount (const unsigned int cacheCount)
 
unsigned int GetLayerCacheCount (void) const
 
void CalcAvailableCoverage ()
 
Image * LoadCellImage (MapChartCell *cell)
 
- Public Member Functions inherited from disti::GlsMapChartDataSource
virtual ~GlsMapChartDataSource ()
 
virtual void PostDraw (GlsMapView *view, GlsMapChart *chart)
 
virtual bool AreAllCellsLoaded (GlsMapView *view, GlsMapChart *chart)
 

Protected Member Functions

 CADRGMapChartDataSource (const CADRGMapChartDataSource &)
 
const CADRGMapChartDataSourceoperator= (const CADRGMapChartDataSource &)
 
- Protected Member Functions inherited from disti::GlsMapChartDataSource
 GlsMapChartDataSource ()
 

Protected Attributes

GeoRect _availableCoverage
 
MapChartCellList _masterCellList
 
unsigned long _userDefinedCADRGLayer
 
unsigned long _userDefinedCIBLayer
 
bool _useUserDefinedCADRGLayer
 
bool _useUserDefinedCIBLayer
 
CADRGMapChartLayerCache * _layerCache
 
CADRGMap * _cadrgMapStore
 

Detailed Description

Runtime implementation of an CADRGMapChartDataSource

Member Function Documentation

void disti::CADRGMapChartDataSource::CalcAvailableCoverage ( )

Updates the coverage area that is returned by GetAvailableCoverage. This is called automatically when something causes the coverage area to change. This method is slow, users of the class should not need to call it directly.

unsigned long disti::CADRGMapChartDataSource::GetCADRGLayer ( void  )
inline

Get the currently set layer for CADRG data.

Returns
The currently set layer for CADRG data.
unsigned long disti::CADRGMapChartDataSource::GetCIBLayer ( void  )
inline

Get the currently set layer for CIB data.

Returns
The currently set layer for CIB data.
unsigned int disti::CADRGMapChartDataSource::GetLayerCacheCount ( void  ) const

Get the count of the layer cache

Returns
max number of layers to cache ( 0u if layer caching is disabled )
double disti::CADRGMapChartDataSource::GetTargetCellLoadRate ( void  ) const

Get the target rate in hz at which cells will be loaded

Returns
target rate in hz else 0.0 for no target rate ( i.e. load as quickly as possible )
void disti::CADRGMapChartDataSource::SetCADRGLayer ( unsigned long  layer)

Set the user-specificed layer to display for CADRG data. Note: This value will NOT be used unless the SetUseCADRGLayerFlag is true. The valid values are: 0 - OVERVIEW1 1 - GNC - 1:5M 2 - JNC - 1:2M 3 - ONC - 1:1M 4 - TPC - 1:500K 5 - JOG - 1:250K 6 - TLM - 1:100K 7 - TLM - 1:50K

Parameters
layerThe layer to display. Should be in the range [0, 7].
void disti::CADRGMapChartDataSource::SetCADRGLayer ( std::string  str)

Set the layer to display for CADRG data by scale string. Note: This value will NOT be used unless the SetUseCADRGLayerFlag is true. The valid values are: string - layer name "1:5M" - GNC "1:2M" - JNC "1:1M" - ONC "1:500K" - TPC "1:250K" - JOG "1:100K" - TLM "1:50K" - TLM

Parameters
strThe scale string of the layer to display. The strings are defined int the CADRG standard, i.e. "1:1M".
void disti::CADRGMapChartDataSource::SetCIBLayer ( unsigned long  layer)

Set the layer to display for CIB data. Note: This value will NOT be used unless the SetUseCADRGLayerFlag is true. The valid values are: 8 - 10M 9 - 5M 10 - 1M

Parameters
layerThe layer to display. Should be in the range [8, 10].
void disti::CADRGMapChartDataSource::SetCIBLayer ( std::string  str)

Set the layer to display for CIB data by scale string. Note: This value will NOT be used unless the SetUseCADRGLayerFlag is true. The valid values are: "10M" "5M" "1M"

Parameters
strThe scale string of the layer to display. The strings are defined int the CADRG standard, i.e. "1M".
void disti::CADRGMapChartDataSource::SetLayerCacheCount ( const unsigned int  cacheCount)

Set the count of the layer cache

Parameters
cacheCountmax number of layers to cache else 0u to disable layer caching
void disti::CADRGMapChartDataSource::SetTargetCellLoadRate ( const double  targetCellLoadRate)

Set the target rate in hz at which cells will be loaded

Parameters
targetCellLoadRatetarget rate in hz else 0.0 for no target rate ( i.e. load as quickly as possible )

The documentation for this class was generated from the following files: