Creates a VgMyRoutingHelper which simplifies the task of managing a route and showing/hiding it when changing floors (layers). More...
Classes | |
struct | LineObject |
struct | PointObject |
Public Member Functions | |
VgMyRoutingHelper (VgApplication::VgIApplication *pVgApplication, VgMyTextureLoader *pTextureLoader, VgEngine::VgRefPtr< VgRoutingModule::VgIRouteCallback >const &pCallback, VgMyLayerAndCameraHandler *pLayerAndCamerHandler) | |
virtual | ~VgMyRoutingHelper () |
virtual bool | setRoutePoint (VgMyRouteCreator::RoutePoint pPoint, const std::string &pPlaceID) |
Sets a RoutePoint to a specific place. | |
virtual bool | setRoutePoint (RoutePoint pPoint, VgEngine::VgPosition pPosition) |
Sets a RoutePoint to a position within the map. | |
virtual void | resetRoutePoint (VgMyRouteCreator::RoutePoint pPoint) |
Resets the place ID associated with a point. | |
virtual bool | isRoutePointSet (VgMyRouteCreator::RoutePoint pPoint) |
virtual void | computeRoute () |
Computes a route. | |
virtual VgRoutingModule::VgIRouteRequestParameters * | editRoutingRequestParameters () |
Returns a reference to the routing request parameters that computeRoute uses. | |
virtual void | resetRoutingRequestParameters () |
Resets the routing request parameters to their initial state. | |
virtual void | setAvoidStairs (bool pDisabledFriendly) |
Sets up the routing request parameters to include/exclude non disabled-friendly attributes. | |
VgEngine::VgRefPtr < VgEngine::VgAnimationDescriptor > | getRoutePointHighlightAnimationDescriptor () |
Returns the descriptor of an animation intended to emphasize routing points. | |
bool | createRouteObjects (VgEngine::VgConstRefPtr< VgRoutingModule::VgIRoute > const &pRoute) |
Creates the geometry objects to be added to the view to represent the route. | |
void | clear () |
Clears the object. | |
void | show () |
Declaration from interface : VgMyDisplayable. | |
void | hide () |
Hides this Object. | |
bool | isVisible () |
void | setPoiCallback (const std::string &pIdentifier, VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback >const &pCallback) |
Sets a callback for a specific POI identifier. | |
Static Public Attributes | |
static const std::string | kStartPointStrID |
static const std::string | kEndPointStrID |
Protected Types | |
typedef std::map< std::string, VgEngine::VgRefPtr < Vg3DModule::VgIGeometryCallback > > | POICallbackMap |
Protected Member Functions | |
double | computeFloorHeightFromLayer (const std::string &pLayer) const |
bool | isPlaceRoutable (const std::string &pID) |
void | requestRoute (const VgEngine::VgRefPtr< VgRoutingModule::VgIRoutingNode > pOrigin, const VgEngine::VgRefPtr< VgRoutingModule::VgIRoutingNode > pDestination) |
Requests a route from the routing module given some routing nodes. | |
void | createAndAddRouteMarker (VgMyRouteCreator::RoutePoint pPoint, const VgEngine::VgPosition &pPosition) |
void | removeRouteMarkers () |
std::string | getLayerNameForPosition (VgEngine::VgPosition pPosition) |
VgEngine::VgPosition | getPositionOfPlace (const std::string &pPlaceId) |
Protected Attributes | |
VgApplication::VgIApplication * | mVgApplication |
VgEngine::VgInstanceFactory * | mInstanceFactory |
VgMyTextureLoader * | mTextureLoader |
VgEngine::VgRefPtr < VgRoutingModule::VgIRouteCallback > | mCallback |
std::map < VgMyRouteCreator::RoutePoint, VgEngine::VgRefPtr < VgRoutingModule::VgIRoutingNode > > | mRoutePoints |
VgRoutingModule::VgIRouteRequestParameters | mRoutingRequestParameters |
VgRoutingModule::VgIRoutingModule * | mRoutingModule |
VgRoutingModule::VgIRoutingSolver * | mRouteSolver |
VgRoutingModule::VgIRouteConverter * | mRouteConverter2D |
VgMapModule::VgIMapModule * | mMapModule |
std::map < VgMyRouteCreator::RoutePoint, VgEngine::VgRefPtr < Vg3DModule::VgPoint > > | mHighlightedRoutePoints |
bool | mIsRouteVisible |
bool | mShowAnimatedTrack |
std::vector< PointObject > | mPoints |
std::list< VgEngine::VgRefPtr < Vg3DModule::VgLink > > | mLinks |
std::vector< LineObject > | mLines |
POICallbackMap | mRoutePoiCallbacks |
float | mObjectHeightOffset |
VgMyLayerAndCameraHandler * | mLayerAndCameraHandler |
VgEngine::VgRefPtr < VgEngine::VgAnimationDescriptor > | mHighlightedRoutePointsAnimationDescr |
Creates a VgMyRoutingHelper which simplifies the task of managing a route and showing/hiding it when changing floors (layers).
It can configure the images used for the route.
typedef std::map<std::string, VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback > > VgMyRoutingHelper::POICallbackMap [protected] |
VgMyRoutingHelper::VgMyRoutingHelper | ( | VgApplication::VgIApplication * | pVgApplication, |
VgMyTextureLoader * | pTextureLoader, | ||
VgEngine::VgRefPtr< VgRoutingModule::VgIRouteCallback >const & | pCallback, | ||
VgMyLayerAndCameraHandler * | pLayerAndCamerHandler | ||
) |
virtual VgMyRoutingHelper::~VgMyRoutingHelper | ( | ) | [virtual] |
void VgMyRoutingHelper::clear | ( | ) | [virtual] |
Clears the object.
Implements VgMyRouteDisplay.
double VgMyRoutingHelper::computeFloorHeightFromLayer | ( | const std::string & | pLayer ) | const [protected] |
virtual void VgMyRoutingHelper::computeRoute | ( | ) | [virtual] |
void VgMyRoutingHelper::createAndAddRouteMarker | ( | VgMyRouteCreator::RoutePoint | pPoint, |
const VgEngine::VgPosition & | pPosition | ||
) | [protected] |
bool VgMyRoutingHelper::createRouteObjects | ( | VgEngine::VgConstRefPtr< VgRoutingModule::VgIRoute > const & | pRoute ) | [virtual] |
Creates the geometry objects to be added to the view to represent the route.
pRoute | The object containing the route data to represent. |
Implements VgMyRouteDisplay.
virtual VgRoutingModule::VgIRouteRequestParameters* VgMyRoutingHelper::editRoutingRequestParameters | ( | ) | [virtual] |
Returns a reference to the routing request parameters that computeRoute uses.
Implements VgMyRouteCreator.
std::string VgMyRoutingHelper::getLayerNameForPosition | ( | VgEngine::VgPosition | pPosition ) | [protected] |
VgEngine::VgPosition VgMyRoutingHelper::getPositionOfPlace | ( | const std::string & | pPlaceId ) | [protected] |
VgEngine::VgRefPtr< VgEngine::VgAnimationDescriptor > VgMyRoutingHelper::getRoutePointHighlightAnimationDescriptor | ( | ) | [virtual] |
Returns the descriptor of an animation intended to emphasize routing points.
Implements VgMyRouteCreator.
void VgMyRoutingHelper::hide | ( | ) | [virtual] |
bool VgMyRoutingHelper::isPlaceRoutable | ( | const std::string & | pID ) | [protected] |
virtual bool VgMyRoutingHelper::isRoutePointSet | ( | VgMyRouteCreator::RoutePoint | pPoint ) | [virtual] |
pPoint | RoutePoint to test. |
Implements VgMyRouteCreator.
bool VgMyRoutingHelper::isVisible | ( | ) | [virtual] |
Implements VgMyRouteDisplay.
void VgMyRoutingHelper::removeRouteMarkers | ( | ) | [protected] |
void VgMyRoutingHelper::requestRoute | ( | const VgEngine::VgRefPtr< VgRoutingModule::VgIRoutingNode > | pOrigin, |
const VgEngine::VgRefPtr< VgRoutingModule::VgIRoutingNode > | pDestination | ||
) | [protected] |
Requests a route from the routing module given some routing nodes.
pOrigin | routing node to start from |
pDestination | routing node to finish at |
virtual void VgMyRoutingHelper::resetRoutePoint | ( | VgMyRouteCreator::RoutePoint | pPoint ) | [virtual] |
Resets the place ID associated with a point.
pPoint | RoutePoint to reset. |
Implements VgMyRouteCreator.
virtual void VgMyRoutingHelper::resetRoutingRequestParameters | ( | ) | [virtual] |
Resets the routing request parameters to their initial state.
Implements VgMyRouteCreator.
virtual void VgMyRoutingHelper::setAvoidStairs | ( | bool | pDisabledFriendly ) | [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 VgMyRoutingHelper::setPoiCallback | ( | const std::string & | pIdentifier, |
VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback >const & | pCallback | ||
) | [virtual] |
Sets a callback for a specific POI identifier.
Implements VgMyPoiConfigurationSetter.
virtual bool VgMyRoutingHelper::setRoutePoint | ( | RoutePoint | pPoint, |
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.
... 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; ...
pPoint | RoutePoint to set |
pPosition | Position to associates with pPoint. |
Implements VgMyRouteCreator.
virtual bool VgMyRoutingHelper::setRoutePoint | ( | VgMyRouteCreator::RoutePoint | pPoint, |
const std::string & | pPlaceID | ||
) | [virtual] |
Sets a RoutePoint to a specific place.
pPoint | RoutePoint to set |
pPlaceID | Place to associates with pPoint. |
Implements VgMyRouteCreator.
void VgMyRoutingHelper::show | ( | ) | [virtual] |
Declaration from interface : VgMyDisplayable.
Implements VgMyRouteDisplay.
const std::string VgMyRoutingHelper::kEndPointStrID [static] |
const std::string VgMyRoutingHelper::kStartPointStrID [static] |
VgEngine::VgRefPtr< VgRoutingModule::VgIRouteCallback > VgMyRoutingHelper::mCallback [protected] |
std::map<VgMyRouteCreator::RoutePoint, VgEngine::VgRefPtr< Vg3DModule::VgPoint > > VgMyRoutingHelper::mHighlightedRoutePoints [protected] |
VgEngine::VgRefPtr< VgEngine::VgAnimationDescriptor > VgMyRoutingHelper::mHighlightedRoutePointsAnimationDescr [protected] |
VgEngine::VgInstanceFactory* VgMyRoutingHelper::mInstanceFactory [protected] |
bool VgMyRoutingHelper::mIsRouteVisible [protected] |
std::vector< LineObject > VgMyRoutingHelper::mLines [protected] |
std::list< VgEngine::VgRefPtr< Vg3DModule::VgLink > > VgMyRoutingHelper::mLinks [protected] |
VgMapModule::VgIMapModule* VgMyRoutingHelper::mMapModule [protected] |
float VgMyRoutingHelper::mObjectHeightOffset [protected] |
std::vector< PointObject > VgMyRoutingHelper::mPoints [protected] |
VgRoutingModule::VgIRouteConverter* VgMyRoutingHelper::mRouteConverter2D [protected] |
POICallbackMap VgMyRoutingHelper::mRoutePoiCallbacks [protected] |
std::map<VgMyRouteCreator::RoutePoint, VgEngine::VgRefPtr<VgRoutingModule::VgIRoutingNode> > VgMyRoutingHelper::mRoutePoints [protected] |
VgRoutingModule::VgIRoutingSolver* VgMyRoutingHelper::mRouteSolver [protected] |
VgRoutingModule::VgIRoutingModule* VgMyRoutingHelper::mRoutingModule [protected] |
VgRoutingModule::VgIRouteRequestParameters VgMyRoutingHelper::mRoutingRequestParameters [protected] |
bool VgMyRoutingHelper::mShowAnimatedTrack [protected] |
VgMyTextureLoader* VgMyRoutingHelper::mTextureLoader [protected] |
VgApplication::VgIApplication* VgMyRoutingHelper::mVgApplication [protected] |