VisioMove-Sample  2.1.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
VgMyBasicApplicationController Class Reference

Implements a basic logic to handle the map display & behaviour. More...

Inheritance diagram for VgMyBasicApplicationController:
Inheritance graph

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)
 
VgMyRouteCreatorgetRouteCreator () 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 removeLayerAndCameraListener (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...
 
VgRoutingModule::VgIRoutingNodeParameters * editRoutingNodeParameters ()
 Returns a reference to the routing node parameters that getRoutingNode for a position uses. More...
 
void resetRoutingNodeParameters ()
 Resets the routing node 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...
 
float getRouteWidth ()
 Returns the current 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)
 Notification that the layer focus is about to change. More...
 
void layerChangedTo (VgMyLayerAndCameraHandler *pSender, const std::string &pFloorFrom, const std::string &pFloorTo)
 Notification that the layer focus did change. More...
 
void modeWillChange (VgMyLayerAndCameraHandler *pSender, VgMyLayerAndCameraHandler::eVgViewMode pTargetMode)
 Notification that the mode will change. More...
 
void modeDidChange (VgMyLayerAndCameraHandler *pSender, VgMyLayerAndCameraHandler::eVgViewMode pTargetMode)
 Notification that the mode has changed. More...
 
eVgViewMode getViewMode () const
 
const std::string & getFocusedLayerName ()
 Gets the focused layer's name. More...
 
void gotoViewpoint (const VgEngine::VgIViewPoint &pViewPoint, const std::string &pLayerName, bool pIsAnimated=true)
 Moves the camera to a specific view point. More...
 
void gotoLookAtPosition (const VgEngine::VgPosition &pPosition, const std::string &pLayerName, bool pIsAnimated=true)
 Moves the camera so that it is focused on a given position. More...
 
void refreshParameters (unsigned int pWidth, unsigned int pHeight)
 Refreshes the inner parameters. More...
 
unsigned int getWidth ()
 Retrieves the map view's width. More...
 
unsigned int getHeight ()
 Retrieves the map view's height. More...
 
unsigned int getCurrentLayerIndex () const
 Gets the focused layer's index. More...
 
bool hasBuilding (const std::string &pBuildingId) const
 
void goTo (eVgViewMode pMode, const std::string &pBuilding, const std::string &pFloorName, bool pIsAnimated)
 Moves the camera and floors according to a specific visualization mode. More...
 
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)
 Called when the location has changed. More...
 
virtual void notifyFloorDidChange (const std::string &pProvider, const std::string &pFloor)
 Called when the floor has changed. More...
 
virtual void notifyAccuracyDidChange (const std::string &pProvider, double pAccuracy)
 Called when the accuracy has changed. More...
 
virtual void notifyContextDidChange (const std::string &pProvider, int pContext)
 Called when the context has changed. More...
 
virtual void notifyHeadingDidChange (const std::string &pProvider, double pHeading)
 Called when the heading has changed. More...
 
virtual void notifyStatusDidChange (const std::string &pProvider, int pStatus)
 Called when the status has changed. More...
 
virtual void notifyLocationProviderEnabled (const std::string &pProvider)
 Called when the provider is enabled. More...
 
virtual void notifyLocationProviderDisabled (const std::string &pProvider)
 Called when the provider is disabled. More...
 
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...
 
void goToInstruction (const unsigned int pInstructionIndex)
 

Protected Member Functions

void animateToInstruction (VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &pNavigation, unsigned int pIndex)
 
- Protected Member Functions inherited from VgMyLocationListener
virtual ~VgMyLocationListener ()
 

Protected Attributes

VgApplication::VgIApplication & mVgApplication
 
VgMyLayerAndCameraHandlermLayerAndCameraHandler
 
VgMyRouteCreatormRouteCreator
 
VgMyNavigationCreatormNavigationCreator
 
std::list
< VgMyLayerAndCameraListener * > 
mLayerAndCameraListeners
 
std::list< VgMyRouteDisplay * > mRouteDisplays
 
std::list
< VgMyInstructionDisplay * > 
mInstructionsDisplays
 
std::list
< VgMyNavigationListener * > 
mNavigationListeners
 
VgEngine::VgRefPtr
< VgRoutingModule::VgIRoute > 
mRoute
 Current Route of NULL if no route request succeed. More...
 
VgEngine::VgRefPtr
< VgNavigationModule::VgINavigation > 
mNavigation
 Current Navigation of NULL if no route request succeed. More...
 
unsigned int mMaximumInstructionNumber
 
VgMyTextureLoadermTextureLoader
 
VgEngine::VgRefPtr
< VgMyBasicRouteCallback
mRouteCallback
 
VgEngine::VgRefPtr
< VgMyBasicNavigationCallback
mNavigationCallback
 
VgEngine::VgRefPtr
< VgMyBasicNavigationListener
mNavigationListener
 
std::string mCurrentPhysicalFloor
 Used in conjuction with a position provider. More...
 
VgEngine::VgPosition mCurrentPhysicalPosition
 Current physical position. More...
 

Additional Inherited Members

- Public Types inherited from VgMyLayerAndCameraHandler
enum  eVgViewMode { eVgViewModeGlobal, eVgViewModeBuilding, eVgViewModeFloor }
 View mode used to display a the map. More...
 
- Public Types inherited from VgMyRouteCreator
enum  RoutePoint {
  eStart, eStop0, eStop1, eStop2,
  eStop3, eStop4, eStop5, eStopMax = 7,
  eEnd
}
 The points that a route may have. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

VgMyBasicApplicationController::VgMyBasicApplicationController ( VgApplication::VgIApplication &  pApplication,
VgMyTextureLoader pTextureLoader 
)
virtual VgMyBasicApplicationController::~VgMyBasicApplicationController ( )
virtual

Member Function Documentation

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.

Parameters
pListenerNavigation listener to receive
void VgMyBasicApplicationController::addRouteDisplay ( VgMyRouteDisplay pDisplay)
void VgMyBasicApplicationController::animateToInstruction ( VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &  pNavigation,
unsigned int  pIndex 
)
protected
void VgMyBasicApplicationController::computeRoute ( )
virtual

Computes a route.

Remarks
Works only if both end points are set.
Calling this method often will result in poor performance of the map.

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::deleteRoute ( )
VgRoutingModule::VgIRoutingNodeParameters* VgMyBasicApplicationController::editRoutingNodeParameters ( )
virtual

Returns a reference to the routing node parameters that getRoutingNode for a position uses.

Used for special configurations, for example you may want to use eRoutingNodeOptionsOnEdge and exclude the modality "shuttle" on edges.

Returns
a reference to the routing node parameters to be used on the next getRoutingNode for a position.

Implements VgMyRouteCreator.

VgRoutingModule::VgIRouteRequestParameters* VgMyBasicApplicationController::editRoutingRequestParameters ( )
virtual

Returns a reference to the routing request parameters that computeRoute uses.

Returns
a reference to the routing request parameters to be used on the next computeRoute.

Implements VgMyRouteCreator.

unsigned int VgMyBasicApplicationController::getCurrentLayerIndex ( ) const
virtual

Gets the focused layer's index.

The "focused" layer is the one that is displayed in the detailled view. if the global view is displayed, the focused layer should be the most visible one.

Returns
The focused layer's index.

Implements VgMyLayerAndCameraHandler.

const std::string& VgMyBasicApplicationController::getFocusedLayerName ( )
virtual

Gets the focused layer's name.

The "focused" layer is the one that is displayed in the detailled view. if the global view is displayed, the focused layer should be the most visible one.

Returns
The focused layer's name.

Implements VgMyLayerAndCameraHandler.

unsigned int VgMyBasicApplicationController::getHeight ( )
virtual

Retrieves the map view's height.

Implements VgMyLayerAndCameraHandler.

VgEngine::VgRefPtr< VgRoutingModule::VgIRouteCallback > VgMyBasicApplicationController::getRouteCallback ( )
inline

References mRouteCallback.

VgMyRouteCreator* VgMyBasicApplicationController::getRouteCreator ( ) const
VgEngine::VgRefPtr< VgEngine::VgAnimationDescriptor > VgMyBasicApplicationController::getRoutePointHighlightAnimationDescriptor ( )
virtual

Returns the descriptor of an animation intended to emphasize routing points.

Implements VgMyRouteCreator.

VgMyRouteStyler::RouteStyle VgMyBasicApplicationController::getRouteStyle ( ) const
virtual

get the current route style

Returns
current route style.

Implements VgMyRouteCreator.

float VgMyBasicApplicationController::getRouteWidth ( )
virtual

Returns the current width of the created route.

Returns
The current width in meters

Implements VgMyRouteCreator.

eVgViewMode VgMyBasicApplicationController::getViewMode ( ) const
virtual
Returns
the current view mode.

Implements VgMyLayerAndCameraHandler.

unsigned int VgMyBasicApplicationController::getWidth ( )
virtual

Retrieves the map view's width.

Implements VgMyLayerAndCameraHandler.

void VgMyBasicApplicationController::goTo ( eVgViewMode  pMode,
const std::string &  pBuilding,
const std::string &  pFloorName,
bool  pIsAnimated 
)
virtual

Moves the camera and floors according to a specific visualization mode.

When passing Global view mode, both building and floor values are ignored When passing Building view mode, the floor name is optional. If not specified, it will display the given building's ground floor. When passing Floor view mode, pBuilding should contains the given floor. If it is not the case, the ground floor of the given vuilding will be displaed instead.

Parameters
pModeView mode to enable
pBuildingBuilding to go to. (optional if the view mode is global)
pFloorNameFloor to go to. (optional if the view mode is global or building)
pIsAnimatedPass true if you want both Camera and Layers to be animated from their actual position to their target state.

Implements VgMyLayerAndCameraHandler.

void VgMyBasicApplicationController::goToInstruction ( const unsigned int  pInstructionIndex)
void VgMyBasicApplicationController::gotoLookAtPosition ( const VgEngine::VgPosition &  pPosition,
const std::string &  pLayerName,
bool  pIsAnimated = true 
)
virtual

Moves the camera so that it is focused on a given position.

The camera's view, heading, pitch are always conserved. The altitude of pPosition is automatically set to zero.

If the pLayerName isn't the currently focused layer, then before any camera movement is invoked, pLayerName becomes the focused layer.

Note
If the stack is in global view, the camera will not change.
Parameters
pPositionThe position to focus on.
pLayerNameThe name of the layer associated with the position.
pIsAnimatedIf true then animates the transition, otherwise does not.

Implements VgMyLayerAndCameraHandler.

void VgMyBasicApplicationController::gotoViewpoint ( const VgEngine::VgIViewPoint &  pViewPoint,
const std::string &  pLayerName,
bool  pIsAnimated = true 
)
virtual

Moves the camera to a specific view point.

If the pLayerName isn't the currently focused layer, then before any camera movement is invoked, pLayerName becomes the focused layer.

Note
If the stack is in global view, the camera will not change.
Parameters
pViewPointThe view point to associate with the camera
pLayerNameThe layer which should be given the focus.
pIsAnimatedIf true then animates the transition, otherwise does not.

Implements VgMyLayerAndCameraHandler.

bool VgMyBasicApplicationController::has3DModule ( ) const
bool VgMyBasicApplicationController::hasBuilding ( const std::string &  pBuildingId) const
virtual
Parameters
pBuildingIdThe unique building identifier
Returns
true if the handler has a building with this id. If the map does not support buildings, returns false.

Implements VgMyLayerAndCameraHandler.

bool VgMyBasicApplicationController::hasMapModule ( ) const
bool VgMyBasicApplicationController::hasNavigationModule ( ) const
bool VgMyBasicApplicationController::hasRoutingModule ( ) const
bool VgMyBasicApplicationController::isRoutePointSet ( VgMyRouteCreator::RoutePoint  pPoint)
virtual
Parameters
pPointRoutePoint to test.
Returns
True if the specified point is already set.

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::layerChangedTo ( VgMyLayerAndCameraHandler pSender,
const std::string &  pFloorFrom,
const std::string &  pFloorTo 
)
virtual

Notification that the layer focus did change.

Parameters
pSender
pFloorFromThe layer which previously had the focus.
pFloorToThe layer which currently has the focus.
Remarks
do not use, as it is not called yet, use layerWillChangeFrom.

Implements VgMyLayerAndCameraListener.

void VgMyBasicApplicationController::layerWillChangeFrom ( VgMyLayerAndCameraHandler pSender,
const std::string &  pFloorFrom,
const std::string &  pFloorTo 
)
virtual

Notification that the layer focus is about to change.

Parameters
pSender
pFloorFromThe layer which currently has focus
pFloorToThe layer which will soon have the focus

Implements VgMyLayerAndCameraListener.

bool VgMyBasicApplicationController::loadConfiguration ( const std::string &  pConfiguration,
const unsigned int  pSecretKey,
const std::string &  pLicenseURL,
const int  pDataset = 0 
)
void VgMyBasicApplicationController::modeDidChange ( VgMyLayerAndCameraHandler pSender,
VgMyLayerAndCameraHandler::eVgViewMode  pTargetMode 
)
virtual

Notification that the mode has changed.

Parameters
pSender
pTargetModeThe mode which which is currently active.

Implements VgMyLayerAndCameraListener.

void VgMyBasicApplicationController::modeWillChange ( VgMyLayerAndCameraHandler pSender,
VgMyLayerAndCameraHandler::eVgViewMode  pTargetMode 
)
virtual

Notification that the mode will change.

Parameters
pSender
pTargetModeThe mode which will soon be activated.

Implements VgMyLayerAndCameraListener.

virtual void VgMyBasicApplicationController::notifyAccuracyDidChange ( const std::string &  pProvider,
double  pAccuracy 
)
virtual

Called when the accuracy has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pAccuracyThe new accuracy

Implements VgMyLocationListener.

virtual void VgMyBasicApplicationController::notifyContextDidChange ( const std::string &  pProvider,
int  pContext 
)
virtual

Called when the context has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pContextThe new context

Implements VgMyLocationListener.

virtual void VgMyBasicApplicationController::notifyFloorDidChange ( const std::string &  pProvider,
const std::string &  pFloor 
)
virtual

Called when the floor has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pFloorThe new floor

Implements VgMyLocationListener.

virtual void VgMyBasicApplicationController::notifyHeadingDidChange ( const std::string &  pProvider,
double  pHeading 
)
virtual

Called when the heading has changed.

Heading is the horizontal direction of travel of this device, and is not related to the device orientation.

Parameters
pProviderThe location provider responsible for sending the notification.
pHeadingThe new heading. The valid range for the heading is [0.0, 360.0]. Where 0.0 is North, and increasing values starts towards the East.

Implements VgMyLocationListener.

virtual void VgMyBasicApplicationController::notifyLocationProviderDisabled ( const std::string &  pProvider)
virtual

Called when the provider is disabled.

Parameters
pProviderThe location provider responsible for sending the notification.

Implements VgMyLocationListener.

virtual void VgMyBasicApplicationController::notifyLocationProviderEnabled ( const std::string &  pProvider)
virtual

Called when the provider is enabled.

Parameters
pProviderThe location provider responsible for sending the notification.

Implements VgMyLocationListener.

virtual bool VgMyBasicApplicationController::notifyNavigationComputed ( VgNavigationModule::VgNavigationRequestStatus  pStatus,
VgEngine::VgRefPtr< VgNavigationModule::VgINavigation > const &  pNavigation 
)
virtual
virtual void VgMyBasicApplicationController::notifyNewInstruction ( VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &  pNavigation,
unsigned int  pIndex 
)
virtual
virtual void VgMyBasicApplicationController::notifyPositionDidChange ( const std::string &  pProvider,
const VgEngine::VgPosition &  pPosition 
)
virtual

Called when the location has changed.

Parameters
pProviderThe location provider responsible for sending the notification
pPositionThe new position

Implements VgMyLocationListener.

virtual void VgMyBasicApplicationController::notifyPositionUpdated ( VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &  pNavigation,
const VgEngine::VgPosition &  pPosition,
double  pTime 
)
virtual
virtual void VgMyBasicApplicationController::notifyRouteComputed ( VgRoutingModule::VgRouteRequestStatus  pStatus,
VgEngine::VgRefPtr< VgRoutingModule::VgIRoute > const &  pRoute 
)
virtual
virtual void VgMyBasicApplicationController::notifyStatusDidChange ( const std::string &  pProvider,
int  pStatus 
)
virtual

Called when the status has changed.

Parameters
pProviderThe location provider responsible for sending the notification.
pStatusThe new status.
See Also
VgMyLocationProvider for available values.

Implements VgMyLocationListener.

void VgMyBasicApplicationController::refreshParameters ( unsigned int  pWidth,
unsigned int  pHeight 
)
virtual

Refreshes the inner parameters.

Typically, subclasses can use it to recompute their view parameters when the rendering size changes.

Implements VgMyLayerAndCameraHandler.

void VgMyBasicApplicationController::removeInstructionDisplay ( VgMyInstructionDisplay pDisplay)
void VgMyBasicApplicationController::removeLayerAndCameraListener ( VgMyLayerAndCameraListener pListener)
void VgMyBasicApplicationController::removeNavigationListener ( VgMyNavigationListener pListener)

Add navigation listener in order to receive navigation related notifications.

Parameters
pListenerNavigation listener to receive
void VgMyBasicApplicationController::resetRoutePoint ( VgMyRouteCreator::RoutePoint  pPoint)
virtual

Resets the place ID associated with a point.

Parameters
pPointRoutePoint to reset.

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::resetRoutingNodeParameters ( )
virtual

Resets the routing node parameters to their initial state.

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::resetRoutingRequestParameters ( )
virtual

Resets the routing request parameters to their initial state.

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::setAvoidStairs ( bool  pDisabledFriendly)
virtual

Sets up the routing request parameters to include/exclude non disabled-friendly attributes.

Parameters
pDisabledFriendlyTrue 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)
void VgMyBasicApplicationController::setRouteMarkerHeight ( float  pHeight)
virtual

Set route marker height.

Adjust so that the marker appears to be anchored to the top of desired surface.

Parameters
pHeightThe height of the route markers in meters.

Implements VgMyRouteCreator.

bool VgMyBasicApplicationController::setRoutePoint ( VgMyRouteCreator::RoutePoint  pPoint,
const std::string &  pPlaceID 
)
virtual

Implementation of interface : VgMyRouteCreator.

Implements VgMyRouteCreator.

bool VgMyBasicApplicationController::setRoutePoint ( VgMyRouteCreator::RoutePoint  pPoint,
const VgEngine::VgPosition &  pPosition 
)
virtual

Sets a RoutePoint to a position within the map.

Finds the closest routing node from the routing network to the given position.

  • pPosition.getMZOrAltitude() is used to determine what layer the position is associated to.
  • Use the method VgMapModule::VgIMapModule::getHeightRangeForLayer() to find the appropriate altitude value for pPosition. For example:
    ...
    double lFloorHeight = 0.0;
    float pHeightMax;
    float pHeightMin;
    std::sring lLayerName = "0";
    if ( mMapModule->getHeightRangeForLayer(pLayer, pHeightMax, pHeightMin))
    {
    lFloorHeight = ((pHeightMax + pHeightMin) / 2);
    }
    lPosition.mZOrAltitude = lFloorHeight;
    ...
    Parameters
    pPointRoutePoint to set
    pPositionPosition to associates with pPoint.
    Returns
    False if the pPosition is not routable.

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::setRouteStyle ( VgMyRouteStyler::RouteStyle  pRouteStyle,
bool  pRecomputeRoute = true 
)
virtual

Change the routing style of lines generated by the routing helper.

Parameters
pRouteStyleroute style
pRecomputeRoute

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::setRouteWidth ( float  pWidth)
virtual

Determines the width of the created route.

Parameters
pWidthThe width of the route in meters

Implements VgMyRouteCreator.

void VgMyBasicApplicationController::unloadConfiguration ( )

Member Data Documentation

std::string VgMyBasicApplicationController::mCurrentPhysicalFloor
protected

Used in conjuction with a position provider.

Records the last received floor change notification.

VgEngine::VgPosition VgMyBasicApplicationController::mCurrentPhysicalPosition
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.

std::list<VgMyInstructionDisplay*> VgMyBasicApplicationController::mInstructionsDisplays
protected
VgMyLayerAndCameraHandler* VgMyBasicApplicationController::mLayerAndCameraHandler
protected
std::list<VgMyLayerAndCameraListener*> VgMyBasicApplicationController::mLayerAndCameraListeners
protected
unsigned int VgMyBasicApplicationController::mMaximumInstructionNumber
protected
VgEngine::VgRefPtr< VgNavigationModule::VgINavigation > VgMyBasicApplicationController::mNavigation
protected

Current Navigation of NULL if no route request succeed.

Remarks
Only this controller delete this object
VgEngine::VgRefPtr< VgMyBasicNavigationCallback > VgMyBasicApplicationController::mNavigationCallback
protected
VgMyNavigationCreator* VgMyBasicApplicationController::mNavigationCreator
protected
VgEngine::VgRefPtr< VgMyBasicNavigationListener > VgMyBasicApplicationController::mNavigationListener
protected
std::list<VgMyNavigationListener*> VgMyBasicApplicationController::mNavigationListeners
protected
VgEngine::VgRefPtr< VgRoutingModule::VgIRoute > VgMyBasicApplicationController::mRoute
protected

Current Route of NULL if no route request succeed.

Remarks
Only this controller delete this object
VgEngine::VgRefPtr< VgMyBasicRouteCallback > VgMyBasicApplicationController::mRouteCallback
protected

Referenced by getRouteCallback().

VgMyRouteCreator* VgMyBasicApplicationController::mRouteCreator
protected
std::list<VgMyRouteDisplay*> VgMyBasicApplicationController::mRouteDisplays
protected
VgMyTextureLoader* VgMyBasicApplicationController::mTextureLoader
protected
VgApplication::VgIApplication& VgMyBasicApplicationController::mVgApplication
protected

The documentation for this class was generated from the following file:
VisioMove 2.1.5, Visioglobe® 2015