Interface for Objects responsible for the route creations.
More...
Interface for Objects responsible for the route creations.
These methods are called if the VgMyRouteCreator sub-class has been registered with the setRouteCreator() method within VgMyBasicApplicationController.
The points that a route may have.
Enumerator |
---|
eStart |
Route start point.
|
eEnd |
Route end point.
|
virtual void VgMyRouteCreator::computeRoute |
( |
| ) |
|
|
pure virtual |
virtual VgRoutingModule::VgIRouteRequestParameters* VgMyRouteCreator::editRoutingRequestParameters |
( |
| ) |
|
|
pure 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.
Implemented in VgMyBasicApplicationController.
virtual VgEngine::VgRefPtr< VgEngine::VgAnimationDescriptor > VgMyRouteCreator::getRoutePointHighlightAnimationDescriptor |
( |
| ) |
|
|
pure virtual |
virtual bool VgMyRouteCreator::isRoutePointSet |
( |
RoutePoint |
pPoint | ) |
|
|
pure virtual |
virtual void VgMyRouteCreator::resetRoutePoint |
( |
RoutePoint |
pPoint | ) |
|
|
pure virtual |
virtual void VgMyRouteCreator::resetRoutingRequestParameters |
( |
| ) |
|
|
pure virtual |
virtual void VgMyRouteCreator::setAvoidStairs |
( |
bool |
pDisabledFriendly | ) |
|
|
pure virtual |
Sets up the routing request parameters to include/exclude non disabled-friendly attributes.
- Parameters
-
pDisabledFriendly | True if disabled friendly routing is wanted, false if not |
Implemented in VgMyBasicApplicationController.
virtual void VgMyRouteCreator::setRouteMarkerHeight |
( |
float |
pHeight | ) |
|
|
pure virtual |
Set route marker height.
Adjust so that the marker appears to be anchored to the top of desired surface.
- Parameters
-
pHeight | The height of the route markers in meters. |
Implemented in VgMyBasicApplicationController.
virtual bool VgMyRouteCreator::setRoutePoint |
( |
RoutePoint |
pPoint, |
|
|
const std::string & |
pPlaceID |
|
) |
| |
|
pure virtual |
Sets a RoutePoint to a specific place.
- Parameters
-
pPoint | RoutePoint to set |
pPlaceID | Place to associates with pPoint. |
- Returns
- False if the specified placeID is not routable.
Implemented in VgMyBasicApplicationController.
virtual bool VgMyRouteCreator::setRoutePoint |
( |
RoutePoint |
pPoint, |
|
|
const 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.
- 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
-
pPoint | RoutePoint to set |
pPosition | Position to associates with pPoint. |
- Returns
- False if the pPosition is not routable.
Implemented in VgMyBasicApplicationController.
Change the routing style of lines generated by the routing helper.
- Parameters
-
pRouteStyle | route style |
pRecomputeRoute | |
Implemented in VgMyBasicApplicationController.
virtual void VgMyRouteCreator::setRouteWidth |
( |
float |
pWidth | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: