GlsMap Toolkit
1.7.0
|
#include <gls_map_chart_data_source.h>
Public Member Functions | |
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 | PostDraw (GlsMapView *view, GlsMapChart *chart) |
virtual bool | AreAllCellsLoaded (GlsMapView *view, GlsMapChart *chart) |
Protected Member Functions | |
GlsMapChartDataSource () | |
/class MapDataSource
Abstract base class to encapsulate map library specific code and data.
Provides a list of MapCells for a given coverage area and layer. A MapDataSource may have just one layer or many layers of MapCells available.
|
virtual |
Returns if all of the visible cells have finished loading and will be visible on the next frame
view | The GlsMapView used to draw the chart |
chart | The GlsMapChart that is being drawn |
Reimplemented in disti::DTEDMapChartDataSource.
|
pure virtual |
Sets a GeoRect to describe the area containing all areas covered by this MapDataSource. This area may change as different databases are loaded. Calling this method may be slow. Pointer to a GeoRect to recieve the coverage.
Implemented in disti::ShapefileMapChartDataSource, disti::DNCMapChartDataSource, disti::CADRGMapChartDataSource, disti::AifMapChartDataSource, disti::GeoTIFFMapChartDataSource, and disti::DTEDMapChartDataSource.
|
inlinevirtual |
Returns the cell layer ('zoom level') that best matches the given area
view | The GlsMapView used to draw the chart |
chart | The GlsMapChart that is being drawn |
Reimplemented in disti::ShapefileMapChartDataSource, disti::DNCMapChartDataSource, and disti::CADRGMapChartDataSource.
|
pure virtual |
Get the list of the available cells in a given coverage area The caller will AddRef() any of the cells that it will be holding a reference to
coverage | GeoRect describing the requested area |
layerID | Which layer to return MapCells from |
viewLogicalHeight | The height of the view in logical units |
viewGeoHeight | The height of the view in geographic units |
viewList | Pointer MapChartCellList to recieve the list of available cells |
Implemented in disti::ShapefileMapChartDataSource, disti::DNCMapChartDataSource, disti::CADRGMapChartDataSource, disti::AifMapChartDataSource, disti::GeoTIFFMapChartDataSource, and disti::DTEDMapChartDataSource.
|
inlinevirtual |
Called after all the cells have been drawn to allow the data source to perform additional rendering if needed
view | The GlsMapView used to draw the chart |
chart | The GlsMapChart that is being drawn |
Reimplemented in disti::DNCMapChartDataSource.