VisioDevKit-Sample  v2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
VgMyPlaceConfigurationSetter Class Reference

Sets ID & Icons on places. More...

Public Member Functions

 VgMyPlaceConfigurationSetter (VgMyTextureLoader *pTextureLoader, VgEngine::VgIEngine *pEngine, const std::string &pResourcePath)
 
virtual ~VgMyPlaceConfigurationSetter ()
 
virtual void configurePlaces (VgMapModule::VgIMapModule *pMapModule)
 A demonstration method for how to set either a name or an icon above a place within the map, using the below VisioMobile methods: More...
 

Protected Attributes

VgMyTextureLoadermTextureLoader
 
VgEngine::VgIEngine * mEngine
 
std::string mResourcePath
 

Detailed Description

Sets ID & Icons on places.

This is only a DEMO/DEBUGGING helper class. It show how to use VgMapModule::VgIMapModule::setPlaceName and VgMapModule::VgIMapModule::setPlaceIcon

It also contains a snippet of code to demonstrate language support (with an Arabic text sample).

Constructor & Destructor Documentation

VgMyPlaceConfigurationSetter::VgMyPlaceConfigurationSetter ( VgMyTextureLoader pTextureLoader,
VgEngine::VgIEngine *  pEngine,
const std::string &  pResourcePath 
)
virtual VgMyPlaceConfigurationSetter::~VgMyPlaceConfigurationSetter ( )
virtual

Member Function Documentation

virtual void VgMyPlaceConfigurationSetter::configurePlaces ( VgMapModule::VgIMapModule *  pMapModule)
virtual

A demonstration method for how to set either a name or an icon above a place within the map, using the below VisioMobile methods:

  • VgIMapModule::setPlaceIcon
  • VgIMapModule::setPlaceName

It is advised to achieve the best performance to call setPlaceIcon/setPlaceName after loadConfiguration, but before loadDataset when updating many places.

You can also enable the display of arabic text to test the multilanguage support and changing Font.

Parameters
pMapModuleAccess to the map module is needed in order to set a place name or icon

Member Data Documentation

VgEngine::VgIEngine* VgMyPlaceConfigurationSetter::mEngine
protected
std::string VgMyPlaceConfigurationSetter::mResourcePath
protected
VgMyTextureLoader* VgMyPlaceConfigurationSetter::mTextureLoader
protected

The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013