GL Studio C++ Runtime API
GlsMapSymbologyBasicDataSource< IconT, PathT > Class Template Reference
Inheritance diagram for GlsMapSymbologyBasicDataSource< IconT, PathT >:
GlsMapSymbologyDataSource

Public Member Functions

virtual void GetSymbolsInRegion (GlsMapSymbology *symbology, const GeoRect &region, IconIDList &icons, PathIDList &paths)
 See base class.
 
virtual DisplayObjectGetIconGeometry (IconID iconID, GlsMapSymbology *symbology)
 See base class.
 
virtual void GetIconLocation (IconID iconID, GeoCoord &location)
 See base class.
 
virtual DisplayObjectGetPathGeometry (PathID pathID, GlsMapSymbology *symbology)
 See base class.
 
virtual long GetPathPointCount (PathID pathID)
 See base class.
 
virtual void GetPathPointLocation (PathID pathID, long point, GeoCoord &locationOut)
 See base class.
 
virtual void SetupIconForRendering (GlsMapSymbology *, IconID iconID, DisplayObject *iconGeometry)
 See base class.
 
virtual void SetupPathForRendering (GlsMapSymbology *, PathID pathID, DisplayObject *iconGeometry)
 See base class.
 
virtual void PostDraw (disti::GlsMapView *view, disti::GlsMapSymbology *symbology)
 See base class.
 
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)
 Remove a icon from the data source.
 
virtual void RemovePath (PathID pathID)
 Remove a path from the data source.
 
virtual void RemoveAllIcons ()
 Remove all icons from the data source.
 
virtual void RemoveAllPaths ()
 Remove all paths from the data source.
 
- Public Member Functions inherited from GlsMapSymbologyDataSource
 GlsMapSymbologyDataSource ()
 Constructor.
 
virtual ~GlsMapSymbologyDataSource ()
 Destructor.
 

Member Function Documentation

virtual IconID 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
virtual PathID 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
virtual IconT* 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
virtual unsigned int GetIconCount ( )
inlinevirtual
Returns
The number of icons in the data source
virtual 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
virtual unsigned int GetPathCount ( )
inlinevirtual
Returns
The number of paths in the data source
virtual bool IconIsVisible ( IconT *  icon)
inlinevirtual

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

virtual bool PathIsVisible ( PathT *  path)
inlinevirtual

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

virtual void 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
virtual void 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: