VisioMove
2.1.5
|
The VgIMapModule defines all the needed interfaces to interact with the map module. More...
Public Types | |
typedef std::vector< std::string > | StringVector |
Public Member Functions | |
virtual | ~VgIMapModule () |
Destructor. More... | |
virtual void | addListener (VgEngine::VgRefPtr< VgIPlaceListener >const &pListener)=0 |
Adds a place listener. More... | |
virtual void | removeListener (VgEngine::VgRefPtr< VgIPlaceListener >const &pListener)=0 |
Removes a place listener. More... | |
virtual void | setPlaceName (const std::string &pID, const std::string &pName)=0 |
Sets a place name according to its ID. More... | |
virtual void | setPlaceIcon (const std::string &pID, const VgPlaceIconDescriptor &pPlaceIconDescriptor)=0 |
Sets a place icon according to its ID. More... | |
virtual bool | getPlaceName (const std::string &pID, std::string &pPlaceName) const =0 |
Gets a place name according to its ID. More... | |
virtual bool | queryPlaceDescriptor (const std::string &pID, VgPlaceDescriptor &pPlaceDescriptor) const =0 |
Queries a place descriptor. More... | |
virtual bool | queryPOIDescriptor (const std::string &pID, VgPOIDescriptor &pPOIDescriptor) const =0 |
Queries a POI descriptor. More... | |
virtual void | queryAllPlaceIDs (std::vector< std::string > &pPlaceIDs) const =0 |
Queries all place IDs. More... | |
virtual bool | getLayerForPosition (const VgEngine::VgPosition &pPos, std::string &pLayerNameContainingPosition) const =0 |
Finds the best fitting layer for a given position. More... | |
virtual bool | getHeightRangeForLayer (const std::string &pLayerName, float &pHeightMin, float &pHeightMax) const =0 |
Gets the height range (min and max) for a given layer. More... | |
virtual void | setPlaceColor (const std::string &pID, const VgPlaceColorDescriptor &pColorDescriptor)=0 |
Sets a place color according to its ID. More... | |
virtual void | setPlaceColor (const std::vector< std::string > &pIDs, const VgPlaceColorDescriptor &pColorDescriptor)=0 |
Sets a place color according to a list of place ID's. More... | |
virtual void | resetPlaceColor (const std::string &pID)=0 |
Resets the original color of a place. More... | |
virtual void | resetPlaceColor (const std::vector< std::string > &pIDs)=0 |
Resets the original color of a list of place. More... | |
virtual bool | getGeofences (std::vector< std::string > &pGeofenceIDs)=0 |
Retrieve the names of all the geofences. More... | |
virtual bool | getGeofences (const VgEngine::VgPosition &pPosition, std::vector< std::string > &pGeofenceIDs)=0 |
Retrieve the names of the geofences that the position belongs to. More... | |
virtual bool | getGeofences (const VgEngine::VgPosition &pPosition, const std::string &pLayerName, std::vector< std::string > &pGeofenceIDs)=0 |
Retrieve the names of the geofences that the position belongs to. More... | |
![]() | |
virtual | ~VgIModule () |
Destructor. More... | |
virtual const std::string & | getName () const =0 |
Retrieves the module name. More... | |
Protected Member Functions | |
VgIMapModule () | |
Constructor. More... | |
![]() | |
VgIModule () | |
Constructor. More... | |
The VgIMapModule defines all the needed interfaces to interact with the map module.
typedef std::vector< std::string > VgMapModule::VgIMapModule::StringVector |
|
inlineprotected |
Constructor.
|
inlinevirtual |
Destructor.
|
pure virtual |
Adds a place listener.
pListener | The place listener to be added. |
|
pure virtual |
Retrieve the names of all the geofences.
[out] | pGeofenceIDs | list of IDs in no particular order. |
|
pure virtual |
Retrieve the names of the geofences that the position belongs to.
It uses the position's mZOrAltitude to determine which layers to search.
pPosition | search position, it will use the position's mZOrAltitude to determine which layers to search | |
[out] | pGeofenceIDs | list of IDs in no particular order. |
|
pure virtual |
Retrieve the names of the geofences that the position belongs to.
It ignores the mZOrAltitude component of the position and forces search only in provided layer.
pPosition | search position. | |
pLayerName | layer name, it will only search the geofences in that layer. | |
[out] | pGeofenceIDs | list of IDs in no particular order. |
|
pure virtual |
Gets the height range (min and max) for a given layer.
These ranges may overlap between floors.
pLayerName | The layer who's height range is of interest | |
[out] | pHeightMin | An output parameter containing the minimum height (i.e. the floor) of pLayerName, this is used for indoor positioning. usually floor altitude minus 6.0 |
[out] | pHeightMax | An output parameter containing the maximum height (i.e. the ceiling) of pLayerName, this is used for indoor positioning. usually floor altitude plus 6.0 |
|
pure virtual |
Finds the best fitting layer for a given position.
pPos | the position of interest | |
[out] | pLayerNameContainingPosition | A string which will be populated with the name of the best fitting layer. |
This means that the positions returned by picking in VgIPlaceListener subclasses will not be suitable to determine the layer in which the "click" occured, instead use the VgMapModule::VgPlaceDescriptor structure.
This behavior will change in the near future to take SRSs into account.
|
pure virtual |
Gets a place name according to its ID.
pID | the place ID. | |
[out] | pPlaceName | the place name. |
|
pure virtual |
Queries all place IDs.
This call can be made anytime after VgEngine::VgIDatabase::loadConfiguration()
[out] | pPlaceIDs | A string vector which will be populated with place IDs for the current dataset. |
|
pure virtual |
Queries a place descriptor.
pID | the place ID. | |
[out] | pPlaceDescriptor | the place descriptor. |
|
pure virtual |
Queries a POI descriptor.
A POI Descriptor contains information like the layername, center, bounding positions (i.e. footprints), preferred heading of a POI. The bounding positions can be used with VgEngine::VgICamera::getViewpointFromPositions with some padding to obtain a nice fitting viewpoint for a given POI.
pID | the POI ID. | |
[out] | pPOIDescriptor | the POI descriptor. |
|
pure virtual |
Removes a place listener.
pListener | The place listener to be removed. |
|
pure virtual |
Resets the original color of a place.
There are no effect if the place color has not been changed.
pID | The place ID. |
|
pure virtual |
Resets the original color of a list of place.
There are no effect on places whose color has not been changed.
pIDs | A list of place IDs. |
|
pure virtual |
Sets a place color according to its ID.
pID | The place ID to color. |
pColorDescriptor | The place color descriptor to be set. |
|
pure virtual |
Sets a place color according to a list of place ID's.
pIDs | the list of place IDs to color. |
pColorDescriptor | the place color descriptor to be set. |
|
pure virtual |
Sets a place icon according to its ID.
The Texture it adds will be available on all datasets and will only be released if a different Texture is set for the same place ID or if a different configuration is loaded.
[in] | pID | the place ID. |
[in] | pPlaceIconDescriptor | The place icon descriptor |
|
pure virtual |
Sets a place name according to its ID.
pID | the place ID. |
pName | the place name to be set. |