Interface for Objects responsible for the route creations. More...

Public Types | |
| enum | RoutePoint { eStart, eEnd } |
Public Member Functions | |
| virtual bool | setRoutePoint (RoutePoint pPoint, const std::string &pPlaceID)=0 |
| Sets a RoutePoint to a specific place. | |
| virtual bool | setRoutePoint (RoutePoint pPoint, VgEngine::VgPosition pPosition)=0 |
| Sets a RoutePoint to a position within the map. | |
| virtual void | resetRoutePoint (RoutePoint pPoint)=0 |
| Resets the place ID associated with a point. | |
| virtual bool | isRoutePointSet (RoutePoint pPoint)=0 |
| virtual void | computeRoute ()=0 |
| Computes a route. | |
| virtual VgRoutingModule::VgIRouteRequestParameters * | editRoutingRequestParameters ()=0 |
| Returns a reference to the routing request parameters that computeRoute uses. | |
| virtual void | resetRoutingRequestParameters ()=0 |
| Resets the routing request parameters to their initial state. | |
| virtual VgEngine::VgRefPtr < VgEngine::VgAnimationDescriptor > | getRoutePointHighlightAnimationDescriptor ()=0 |
| Returns the descriptor of an animation intended to emphasize routing points. | |
| virtual void | setAvoidStairs (bool pDisabledFriendly)=0 |
| Sets up the routing request parameters to include/exclude non disabled-friendly attributes. | |
Interface for Objects responsible for the route creations.
| virtual void VgMyRouteCreator::computeRoute | ( | ) | [pure virtual] |
Computes a route.
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual VgRoutingModule::VgIRouteRequestParameters* VgMyRouteCreator::editRoutingRequestParameters | ( | ) | [pure virtual] |
Returns a reference to the routing request parameters that computeRoute uses.
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual VgEngine::VgRefPtr< VgEngine::VgAnimationDescriptor > VgMyRouteCreator::getRoutePointHighlightAnimationDescriptor | ( | ) | [pure virtual] |
Returns the descriptor of an animation intended to emphasize routing points.
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual bool VgMyRouteCreator::isRoutePointSet | ( | RoutePoint | pPoint ) | [pure virtual] |
| pPoint | RoutePoint to test. |
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual void VgMyRouteCreator::resetRoutePoint | ( | RoutePoint | pPoint ) | [pure virtual] |
Resets the place ID associated with a point.
| pPoint | RoutePoint to reset. |
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual void VgMyRouteCreator::resetRoutingRequestParameters | ( | ) | [pure virtual] |
Resets the routing request parameters to their initial state.
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual void VgMyRouteCreator::setAvoidStairs | ( | bool | pDisabledFriendly ) | [pure 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 |
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual bool VgMyRouteCreator::setRoutePoint | ( | RoutePoint | pPoint, |
| const std::string & | pPlaceID | ||
| ) | [pure virtual] |
Sets a RoutePoint to a specific place.
| pPoint | RoutePoint to set |
| pPlaceID | Place to associates with pPoint. |
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.
| virtual bool VgMyRouteCreator::setRoutePoint | ( | RoutePoint | pPoint, |
| VgEngine::VgPosition | pPosition | ||
| ) | [pure 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. |
Implemented in VgMyBasicApplicationController, and VgMyRoutingHelper.