|
VisioMove-Sample
2.1.3
|
Implements a basic logic to handle the map display & behaviour. More...

Public Member Functions | |
| VgMyBasicApplicationController (VgApplication::VgIApplication &pApplication, VgMyTextureLoader *pTextureLoader) | |
| virtual | ~VgMyBasicApplicationController () |
| bool | loadConfiguration (const std::string &pConfiguration, const unsigned int pSecretKey, const std::string &pLicenseURL, const int pDataset=0) |
| void | unloadConfiguration () |
| void | setLayerAndCameraHandler (VgMyLayerAndCameraHandler *pHandler) |
| void | setRouteCreator (VgMyRouteCreator *pCreator) |
| VgMyRouteCreator * | getRouteCreator () const |
| void | addRouteDisplay (VgMyRouteDisplay *pDisplay) |
| void | setNavigationCreator (VgMyNavigationCreator *pCreator) |
| void | addInstructionDisplay (VgMyInstructionDisplay *pDisplay) |
| void | removeInstructionDisplay (VgMyInstructionDisplay *pDisplay) |
| void | addNavigationListener (VgMyNavigationListener *pListener) |
| Add navigation listener in order to receive navigation related notifications. More... | |
| void | removeNavigationListener (VgMyNavigationListener *pListener) |
| Add navigation listener in order to receive navigation related notifications. More... | |
| bool | has3DModule () const |
| bool | hasMapModule () const |
| bool | hasRoutingModule () const |
| bool | hasNavigationModule () const |
| void | addLayerAndCameraListener (VgMyLayerAndCameraListener *pListener) |
| void | deleteRoute () |
| bool | setRoutePoint (VgMyRouteCreator::RoutePoint pPoint, const std::string &pPlaceID) |
| Implementation of interface : VgMyRouteCreator. More... | |
| bool | setRoutePoint (VgMyRouteCreator::RoutePoint pPoint, const VgEngine::VgPosition &pPosition) |
| Sets a RoutePoint to a position within the map. More... | |
| void | resetRoutePoint (VgMyRouteCreator::RoutePoint pPoint) |
| Resets the place ID associated with a point. More... | |
| bool | isRoutePointSet (VgMyRouteCreator::RoutePoint pPoint) |
| void | computeRoute () |
| Computes a route. More... | |
| VgRoutingModule::VgIRouteRequestParameters * | editRoutingRequestParameters () |
| Returns a reference to the routing request parameters that computeRoute uses. More... | |
| void | resetRoutingRequestParameters () |
| Resets the routing request parameters to their initial state. More... | |
| VgEngine::VgRefPtr < VgEngine::VgAnimationDescriptor > | getRoutePointHighlightAnimationDescriptor () |
| Returns the descriptor of an animation intended to emphasize routing points. More... | |
| void | setAvoidStairs (bool pDisabledFriendly) |
| Sets up the routing request parameters to include/exclude non disabled-friendly attributes. More... | |
| void | setRouteWidth (float pWidth) |
| Determines the width of the created route. More... | |
| void | setRouteMarkerHeight (float pHeight) |
| Set route marker height. More... | |
| void | layerWillChangeFrom (VgMyLayerAndCameraHandler *pSender, const std::string &pFloorFrom, const std::string &pFloorTo) |
| void | layerChangedTo (VgMyLayerAndCameraHandler *pSender, const std::string &pFloorFrom, const std::string &pFloorTo) |
| void | viewWillChange (VgMyLayerAndCameraHandler *pSender, const bool pDoesChangeFromGlobalToDetailed) |
| void | viewDidChange (VgMyLayerAndCameraHandler *pSender, const bool pDoesChangeFromGlobalToDetailed) |
| void | goToInstruction (const unsigned int pInstructionIndex) |
| bool | isGlobalView () |
| void | switchToGlobalView (bool pIsAnimated=true) |
| void | switchToDetailedView (bool pIsAnimated=true) |
| const std::string & | getFocusedLayerName () |
| void | gotoLayer (const std::string &pLayerName, bool pIsAnimated=true) |
| void | gotoLayer (const unsigned int pLayerIndex, bool pIsAnimated=true) |
| unsigned int | getNumberOfLayers () |
| bool | getLayerName (const unsigned int pLayerIndex, std::string &pLayerNameOut) |
| void | gotoViewpoint (const VgEngine::VgIViewPoint &pViewPoint, const std::string &pLayerName, bool pIsAnimated=true) |
| void | gotoLookAtPosition (const VgEngine::VgPosition &pPosition, const std::string &pLayerName, bool pIsAnimated=true) |
| void | refreshParameters (unsigned int pWidth, unsigned int pHeight) |
| unsigned int | getWidth () |
| unsigned int | getHeight () |
| virtual void | notifyRouteComputed (VgRoutingModule::VgRouteRequestStatus pStatus, VgEngine::VgRefPtr< VgRoutingModule::VgIRoute > const &pRoute) |
| virtual bool | notifyNavigationComputed (VgNavigationModule::VgNavigationRequestStatus pStatus, VgEngine::VgRefPtr< VgNavigationModule::VgINavigation > const &pNavigation) |
| virtual void | notifyPositionUpdated (VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &pNavigation, const VgEngine::VgPosition &pPosition, double pTime) |
| virtual void | notifyNewInstruction (VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &pNavigation, unsigned int pIndex) |
| virtual void | notifyPositionDidChange (const std::string &pProvider, const VgEngine::VgPosition &pPosition) |
| virtual void | notifyFloorDidChange (const std::string &pProvider, const std::string &pFloor) |
| virtual void | notifyAccuracyDidChange (const std::string &pProvider, double pAccuracy) |
| virtual void | notifyContextDidChange (const std::string &pProvider, int pContext) |
| virtual void | notifyHeadingDidChange (const std::string &pProvider, double pHeading) |
| virtual void | notifyStatusDidChange (const std::string &pProvider, int pStatus) |
| virtual void | notifyLocationProviderEnabled (const std::string &pProvider) |
| virtual void | notifyLocationProviderDisabled (const std::string &pProvider) |
| VgEngine::VgRefPtr < VgRoutingModule::VgIRouteCallback > | getRouteCallback () |
| void | setRouteStyle (VgMyRouteStyler::RouteStyle pRouteStyle, bool pRecomputeRoute=true) |
| Change the routing style of lines generated by the routing helper. More... | |
| VgMyRouteStyler::RouteStyle | getRouteStyle () const |
| get the current route style More... | |
Protected Member Functions | |
| void | animateToInstruction (VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &pNavigation, unsigned int pIndex) |
Additional Inherited Members | |
Public Types inherited from VgMyRouteCreator | |
| enum | RoutePoint { eStart, eEnd } |
| The points that a route may have. More... | |
Implements a basic logic to handle the map display & behaviour.
This helper class eases the common operations onto maps. Customize it at will to fit your own application.
This controller inherits from main listeners to act as a dispatcher. All objects related to the map management should somehow be registred to this controller.
| VgMyBasicApplicationController::VgMyBasicApplicationController | ( | VgApplication::VgIApplication & | pApplication, |
| VgMyTextureLoader * | pTextureLoader | ||
| ) |
|
virtual |
| void VgMyBasicApplicationController::addInstructionDisplay | ( | VgMyInstructionDisplay * | pDisplay | ) |
| void VgMyBasicApplicationController::addLayerAndCameraListener | ( | VgMyLayerAndCameraListener * | pListener | ) |
| void VgMyBasicApplicationController::addNavigationListener | ( | VgMyNavigationListener * | pListener | ) |
Add navigation listener in order to receive navigation related notifications.
| pListener | Navigation listener to receive |
| void VgMyBasicApplicationController::addRouteDisplay | ( | VgMyRouteDisplay * | pDisplay | ) |
|
protected |
|
virtual |
Computes a route.
Implements VgMyRouteCreator.
| void VgMyBasicApplicationController::deleteRoute | ( | ) |
|
virtual |
Returns a reference to the routing request parameters that computeRoute uses.
Implements VgMyRouteCreator.
| const std::string& VgMyBasicApplicationController::getFocusedLayerName | ( | ) |
| unsigned int VgMyBasicApplicationController::getHeight | ( | ) |
| bool VgMyBasicApplicationController::getLayerName | ( | const unsigned int | pLayerIndex, |
| std::string & | pLayerNameOut | ||
| ) |
| unsigned int VgMyBasicApplicationController::getNumberOfLayers | ( | ) |
|
inline |
References mRouteCallback.
| VgMyRouteCreator* VgMyBasicApplicationController::getRouteCreator | ( | ) | const |
|
virtual |
Returns the descriptor of an animation intended to emphasize routing points.
Implements VgMyRouteCreator.
|
virtual |
| unsigned int VgMyBasicApplicationController::getWidth | ( | ) |
| void VgMyBasicApplicationController::goToInstruction | ( | const unsigned int | pInstructionIndex | ) |
| void VgMyBasicApplicationController::gotoLayer | ( | const std::string & | pLayerName, |
| bool | pIsAnimated = true |
||
| ) |
| void VgMyBasicApplicationController::gotoLayer | ( | const unsigned int | pLayerIndex, |
| bool | pIsAnimated = true |
||
| ) |
| void VgMyBasicApplicationController::gotoLookAtPosition | ( | const VgEngine::VgPosition & | pPosition, |
| const std::string & | pLayerName, | ||
| bool | pIsAnimated = true |
||
| ) |
| void VgMyBasicApplicationController::gotoViewpoint | ( | const VgEngine::VgIViewPoint & | pViewPoint, |
| const std::string & | pLayerName, | ||
| bool | pIsAnimated = true |
||
| ) |
| bool VgMyBasicApplicationController::has3DModule | ( | ) | const |
| bool VgMyBasicApplicationController::hasMapModule | ( | ) | const |
| bool VgMyBasicApplicationController::hasNavigationModule | ( | ) | const |
| bool VgMyBasicApplicationController::hasRoutingModule | ( | ) | const |
| bool VgMyBasicApplicationController::isGlobalView | ( | ) |
|
virtual |
| pPoint | RoutePoint to test. |
Implements VgMyRouteCreator.
| void VgMyBasicApplicationController::layerChangedTo | ( | VgMyLayerAndCameraHandler * | pSender, |
| const std::string & | pFloorFrom, | ||
| const std::string & | pFloorTo | ||
| ) |
| void VgMyBasicApplicationController::layerWillChangeFrom | ( | VgMyLayerAndCameraHandler * | pSender, |
| const std::string & | pFloorFrom, | ||
| const std::string & | pFloorTo | ||
| ) |
| bool VgMyBasicApplicationController::loadConfiguration | ( | const std::string & | pConfiguration, |
| const unsigned int | pSecretKey, | ||
| const std::string & | pLicenseURL, | ||
| const int | pDataset = 0 |
||
| ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void VgMyBasicApplicationController::refreshParameters | ( | unsigned int | pWidth, |
| unsigned int | pHeight | ||
| ) |
| void VgMyBasicApplicationController::removeInstructionDisplay | ( | VgMyInstructionDisplay * | pDisplay | ) |
| void VgMyBasicApplicationController::removeNavigationListener | ( | VgMyNavigationListener * | pListener | ) |
Add navigation listener in order to receive navigation related notifications.
| pListener | Navigation listener to receive |
|
virtual |
Resets the place ID associated with a point.
| pPoint | RoutePoint to reset. |
Implements VgMyRouteCreator.
|
virtual |
Resets the routing request parameters to their initial state.
Implements VgMyRouteCreator.
|
virtual |
Sets up the routing request parameters to include/exclude non disabled-friendly attributes.
| pDisabledFriendly | True if disabled friendly routing is wanted, false if not |
Implements VgMyRouteCreator.
| void VgMyBasicApplicationController::setLayerAndCameraHandler | ( | VgMyLayerAndCameraHandler * | pHandler | ) |
| void VgMyBasicApplicationController::setNavigationCreator | ( | VgMyNavigationCreator * | pCreator | ) |
| void VgMyBasicApplicationController::setRouteCreator | ( | VgMyRouteCreator * | pCreator | ) |
|
virtual |
Set route marker height.
Adjust so that the marker appears to be anchored to the top of desired surface.
| pHeight | The height of the route markers in meters. |
Implements VgMyRouteCreator.
|
virtual |
Implementation of interface : VgMyRouteCreator.
Implements VgMyRouteCreator.
|
virtual |
Sets a RoutePoint to a position within the map.
Finds the closest routing node from the routing network to the given position.
| pPoint | RoutePoint to set |
| pPosition | Position to associates with pPoint. |
Implements VgMyRouteCreator.
|
virtual |
Change the routing style of lines generated by the routing helper.
| pRouteStyle | route style |
| pRecomputeRoute |
Implements VgMyRouteCreator.
|
virtual |
Determines the width of the created route.
| pWidth | The width of the route in meters |
Implements VgMyRouteCreator.
| void VgMyBasicApplicationController::switchToDetailedView | ( | bool | pIsAnimated = true | ) |
| void VgMyBasicApplicationController::switchToGlobalView | ( | bool | pIsAnimated = true | ) |
| void VgMyBasicApplicationController::unloadConfiguration | ( | ) |
| void VgMyBasicApplicationController::viewDidChange | ( | VgMyLayerAndCameraHandler * | pSender, |
| const bool | pDoesChangeFromGlobalToDetailed | ||
| ) |
| void VgMyBasicApplicationController::viewWillChange | ( | VgMyLayerAndCameraHandler * | pSender, |
| const bool | pDoesChangeFromGlobalToDetailed | ||
| ) |
|
protected |
Used in conjuction with a position provider.
Records the last received floor change notification.
|
protected |
Current physical position.
Note the altitude is relative to the ground, and not the current floor. So from this position it's possible to determine the floor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Current Navigation of NULL if no route request succeed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Current Route of NULL if no route request succeed.
|
protected |
Referenced by getRouteCallback().
|
protected |
|
protected |
|
protected |
|
protected |