GlsMap Toolkit  1.3.1
disti::GlsMapSymbologyBasicDataSource< IconT, PathT > Class Template Reference
+ Inheritance diagram for disti::GlsMapSymbologyBasicDataSource< IconT, PathT >:

Public Member Functions

virtual const void GetSymbolsInRegion (GlsMapSymbology *symbology, const GeoRect &region, IconIDList &icons, PathIDList &paths)
 
virtual DisplayObject * GetIconGeometry (IconID iconID, GlsMapSymbology *symbology)
 
virtual void GetIconLocation (IconID iconID, GeoCoord &location)
 
virtual DisplayObject * GetPathGeometry (PathID pathID, GlsMapSymbology *symbology)
 
virtual long GetPathPointCount (PathID pathID)
 
virtual void GetPathPointLocation (PathID pathID, long point, GeoCoord &locationOut)
 
virtual void SetupIconForRendering (GlsMapSymbology *, IconID iconID, DisplayObject *iconGeometry)
 
virtual void SetupPathForRendering (GlsMapSymbology *, PathID pathID, DisplayObject *iconGeometry)
 
virtual void PostDraw (disti::GlsMapView *view, disti::GlsMapSymbology *symbology)
 
virtual bool IconIsVisible (IconT *icon)
 
virtual bool PathIsVisible (PathT *path)
 
virtual IconID AddIcon (const GeoCoord &location, int geometryIndex)
 
virtual IconT * GetIcon (IconID iconID)
 
virtual unsigned int GetIconCount ()
 
virtual void UpdateIcon (IconID iconID, GeoCoord &location)
 
virtual void UpdateIcon (IconID iconID, GeoCoord &location, int geometryIndex)
 
virtual PathID AddPath ()
 
virtual PathT * GetPath (PathID pathID)
 
virtual unsigned int GetPathCount ()
 
virtual void RemoveIcon (IconID iconID)
 
virtual void RemovePath (PathID pathID)
 
virtual void RemoveAllIcons ()
 
virtual void RemoveAllPaths ()
 
- Public Member Functions inherited from disti::GlsMapSymbologyDataSource
virtual void SetupIconForRendering (disti::GlsMapSymbology *symbology, IconID iconID, disti::DisplayObject *iconGeometry)=0
 
virtual void SetupPathForRendering (disti::GlsMapSymbology *symbology, PathID pathID, disti::DisplayObject *pathGeometry)=0
 

Protected Member Functions

IconID GetNextIconID ()
 
int FindIconByID (IconID id)
 
PathID GetNextPathID ()
 
int FindPathByID (PathID id)
 

Protected Attributes

DynamicArray< IconT, false > _iconArray
 
DynamicArray< IconID > _iconIDArray
 
IconID _nextIconID
 
DynamicArray< PathT, false > _pathArray
 
DynamicArray< PathID > _pathIDArray
 
PathID _nextPathID
 

Additional Inherited Members

- Public Types inherited from disti::GlsMapSymbologyDataSource
typedef long IconID
 
typedef long PathID
 
typedef DynamicArray< IconID > IconIDList
 
typedef DynamicArray< PathID > PathIDList
 

Member Function Documentation

template<class IconT, class PathT>
virtual IconID disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::AddIcon ( const GeoCoord location,
int  geometryIndex 
)
inlinevirtual

Add an icon to the data source

Parameters
locationThe location of the new icon
geometryIndexThe geometry index to use for drawing. (-1 indicates do not draw)
Returns
the IconID for the new icon
template<class IconT, class PathT>
virtual PathID disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::AddPath ( )
inlinevirtual

Add a path to the data source Call GetPath() with the returned PathID to access the new path and add/modify points in the path.

See also
GetPath
Returns
the PathID of the new path
template<class IconT, class PathT>
virtual IconT* disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::GetIcon ( IconID  iconID)
inlinevirtual

Access an icon in the data source

Parameters
iconIDIconID of the desired icon
Returns
Pointer to the given icon, or NULL if not found
template<class IconT, class PathT>
virtual unsigned int disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::GetIconCount ( )
inlinevirtual
Returns
The number of icons in the data source
template<class IconT, class PathT>
virtual PathT* disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::GetPath ( PathID  pathID)
inlinevirtual

Access a path in the data source

Parameters
pathIDPathID of the desired path
Returns
Pointer to the given path, or NULL if not found
template<class IconT, class PathT>
virtual unsigned int disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::GetPathCount ( )
inlinevirtual
Returns
The number of paths in the data source
template<class IconT, class PathT>
virtual bool disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::IconIsVisible ( IconT *  icon)
inlinevirtual

Derived classes can override this method to disable drawing of certain icon types.

template<class IconT, class PathT>
virtual bool disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::PathIsVisible ( PathT *  path)
inlinevirtual

Derived classes can override this method to disable drawing of certain path types.

template<class IconT, class PathT>
virtual void disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::UpdateIcon ( IconID  iconID,
GeoCoord location 
)
inlinevirtual

Updates the given icon if it exists

Parameters
iconIDThe identifier of the icon to update
locationThe new location of the icon
template<class IconT, class PathT>
virtual void disti::GlsMapSymbologyBasicDataSource< IconT, PathT >::UpdateIcon ( IconID  iconID,
GeoCoord location,
int  geometryIndex 
)
inlinevirtual

Updates the given icon if it exists

Parameters
iconIDThe identifier of the icon to update
locationThe new location of the icon
geometryIndexThe geometry index to use for drawing.

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