40 #ifndef INCLUDED_GLS_MAP_CHART_DATA_SOURCE_H
41 #define INCLUDED_GLS_MAP_CHART_DATA_SOURCE_H
53 class GlsMapChartDataSource;
71 , _referenceCount( 1 )
72 , _geoRectSet( false )
87 if( _referenceCount < 1 )
119 nonConst->_geoRectSet =
true;
125 GeoCoord& GetLowerLeftCoord() {
return _lowerLeft; }
126 GeoCoord& GetLowerRightCoord() {
return _lowerRight; }
127 GeoCoord& GetUpperLeftCoord() {
return _upperLeft; }
128 GeoCoord& GetUpperRightCoord() {
return _upperRight; }
134 virtual unsigned int GetLoadPriority()
const {
return _loadPriority; }
175 unsigned int _loadPriority;
188 virtual void Write( std::ostream& os )
const;
192 void operator=( const
MapChartCell& ) DISTI_SPECIAL_MEM_FUN_DELETE;
201 typedef DynamicArray<MapChartCell*> MapChartCellList;
221 virtual bool GetAvailableCoverage(
GeoRect* dest ) = 0;
237 virtual void GetCellList(
const GeoRect& coverage,
unsigned long layerID,
double viewLogicalHeight,
double viewGeoHeight, MapChartCellList& viewList ) = 0;
void SetToPoint(const GeoCoord &point)
Definition: gls_map_util.h:477
virtual void InvalidateTexture()=0
Use this method to force the texture to be recreated on the next call to BindTexture().
virtual void BindTexture()=0
virtual void PostDraw(GlsMapView *view, GlsMapChart *chart)
Definition: gls_map_chart_data_source.h:158
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
Definition: gls_map_chart_data_source.h:210
virtual unsigned long GetLayerID() const
Definition: gls_map_chart_data_source.h:109
virtual bool TextureIsReady() const =0
Definition: gls_map_util.h:414
virtual void Write(std::ostream &os) const
Method to override for printing to a stream.
virtual unsigned long GetBestLayer(GlsMapView *view, GlsMapChart *chart) const
Definition: gls_map_chart_data_source.h:228
virtual bool IsSameCell(const MapChartCell &other) const =0
const GeoRect & GetGeoRect() const
Definition: gls_map_chart_data_source.h:112
The GlsMapView is a special group that controls the map view parameters. It contains all of the objec...
Definition: gls_map_view.h:86
Definition: gls_map_util.h:67
Utility classes for GL Studio Map toolkit.
virtual bool IsCellValid() const
Definition: gls_map_chart_data_source.h:101
virtual GlsMapChartDataSource * GetSource() const =0
Returns the MapDataSource for this MapCell.
MapChartCell()
Definition: gls_map_chart_data_source.h:69
virtual bool HasTexture() const =0
virtual bool AllowOutlines() const
Definition: gls_map_chart_data_source.h:96
The MapChartCell class represents an area within a 2D map.
Definition: gls_map_chart_data_source.h:64
virtual void SetLoadPriority(unsigned int val)
Definition: gls_map_chart_data_source.h:133
virtual ~MapChartCell()
Definition: gls_map_chart_data_source.h:185
virtual void AddRef()
Use this method to increment the reference count of the MapDataSource.
Definition: gls_map_chart_data_source.h:77
virtual void Release()
Definition: gls_map_chart_data_source.h:84
friend std::ostream & operator<<(std::ostream &os, const MapChartCell &cell)
Definition: gls_map_chart_data_source.h:167
void GrowToContainPoint(const GeoCoord &point)
Definition: gls_map_util.h:493
virtual ~GlsMapChartDataSource()
Destructor for abstract base class.
Definition: gls_map_chart_data_source.h:263
Macros and helper code to determine what subset of C++11/14/17 is available.
Definition: gls_map_chart.h:70
Definition: bmpimage.h:46
virtual void PostDraw(GlsMapView *view, GlsMapChart *chart)
Definition: gls_map_chart_data_source.h:243