libosmscout
0.1
|
Callback class that gets call in various routing situations. More...
#include <RouteDescriptionPostprocessor.h>
Public Member Functions | |
virtual void | AfterNode (const RouteDescription::Node &node) |
Called after all possible callback methods for a node are called. More... | |
virtual void | BeforeNode (const RouteDescription::Node &node) |
Always called before we analyse a node. More... | |
virtual void | BeforeRoute () |
Call once before evaluation the the RouteDescription starts. More... | |
virtual bool | Continue () const |
If postprocessor should continue. More... | |
virtual void | OnMaxSpeed (const RouteDescription::MaxSpeedDescriptionRef &maxSpeedDescription) |
Called everytime we have max speed information for a route segment. More... | |
virtual void | OnMotorwayChange (const RouteDescription::MotorwayChangeDescriptionRef &motorwayChangeDescription, const RouteDescription::MotorwayJunctionDescriptionRef &motorwayJunctionDescription, const RouteDescription::DirectionDescriptionRef &directionDescription, const RouteDescription::DestinationDescriptionRef &crossingDestinationDescription) |
Called if we already on a motorway and switch to another motorway. More... | |
virtual void | OnMotorwayEnter (const RouteDescription::MotorwayEnterDescriptionRef &motorwayEnterDescription, const RouteDescription::CrossingWaysDescriptionRef &crossingWaysDescription) |
Called if we enter a motorway. More... | |
virtual void | OnMotorwayLeave (const RouteDescription::MotorwayLeaveDescriptionRef &motorwayLeaveDescription, const RouteDescription::MotorwayJunctionDescriptionRef &motorwayJunctionDescription, const RouteDescription::DirectionDescriptionRef &directionDescription, const RouteDescription::NameDescriptionRef &nameDescription, const RouteDescription::DestinationDescriptionRef &destinationDescription) |
Called if we are on a motorway an leave it to a non-motorway way. More... | |
virtual void | OnPathNameChange (const RouteDescription::NameChangedDescriptionRef &nameChangedDescription) |
Called anytime the way we are on changes its name. More... | |
virtual void | OnPOIAtRoute (const RouteDescription::POIAtRouteDescriptionRef &poiAtRouteDescription) |
Called everytime we have a POI at the route. More... | |
virtual void | OnRoundaboutEnter (const RouteDescription::RoundaboutEnterDescriptionRef &roundaboutEnterDescription, const RouteDescription::CrossingWaysDescriptionRef &crossingWaysDescription) |
Called if we enter a roundabout. More... | |
virtual void | OnRoundaboutLeave (const RouteDescription::RoundaboutLeaveDescriptionRef &roundaboutLeaveDescription, const RouteDescription::NameDescriptionRef &nameDescription) |
Called if we leave a roundabout entered before. More... | |
virtual void | OnStart (const RouteDescription::StartDescriptionRef &startDescription, const RouteDescription::TypeNameDescriptionRef &typeNameDescription, const RouteDescription::NameDescriptionRef &nameDescription) |
Called one for the start node. More... | |
virtual void | OnTargetReached (const RouteDescription::TargetDescriptionRef &targetDescription) |
Called once for the target node reached. More... | |
virtual void | OnTurn (const RouteDescription::TurnDescriptionRef &turnDescription, const RouteDescription::CrossingWaysDescriptionRef &crossingWaysDescription, const RouteDescription::DirectionDescriptionRef &directionDescription, const RouteDescription::TypeNameDescriptionRef &typeNameDescription, const RouteDescription::NameDescriptionRef &nameDescription) |
Call everytime a turn is necessary. More... | |
virtual void | OnViaAtRoute (const RouteDescription::ViaDescriptionRef &viaDescription) |
Called everytime we have a new section at the route when routing with some via points between start and target. More... | |
virtual | ~Callback ()=default |
Callback class that gets call in various routing situations.
|
virtualdefault |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
|
virtual |
Called after all possible callback methods for a node are called.
node |
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Always called before we analyse a node.
It may be that other callback methods are called or not (normally we only call other methods, if something relevant changes).
node |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Call once before evaluation the the RouteDescription starts.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
If postprocessor should continue.
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called everytime we have max speed information for a route segment.
maxSpeedDescription |
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called if we already on a motorway and switch to another motorway.
motorwayLeaveDescription | and and ref of leaving motorway |
motorwayJunctionDescription | name and ref of the motorway exit |
directionDescription | turn direction (right, left...) |
crossingDestinationDescription | semicolon separated list of exit destinations |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called if we enter a motorway.
motorwayEnterDescription | |
crossingWaysDescription |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called if we are on a motorway an leave it to a non-motorway way.
motorwayLeaveDescription | and and ref of leaving motorway |
motorwayJunctionDescription | name and ref of the motorway exit |
directionDescription | turn direction (right, left...) |
nameDescription | name of the way used for leaving |
destinationDescription | semicolon separated list of exit destinations |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called anytime the way we are on changes its name.
nameChangedDescription |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called everytime we have a POI at the route.
poiAtRouteDescription | The POI information |
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called if we enter a roundabout.
roundaboutEnterDescription | |
crossingWaysDescription |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called if we leave a roundabout entered before.
roundaboutLeaveDescription | |
nameDescription |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called one for the start node.
startDescription | |
typeNameDescription | |
nameDescription |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called once for the target node reached.
targetDescription |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Call everytime a turn is necessary.
Call with all information available regarding the turn and the way turned into and its direction.
turnDescription | |
crossingWaysDescription | |
directionDescription | |
typeNameDescription | |
nameDescription |
Reimplemented in osmscout::RouteDescriptionBuilder::Callback.
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().
|
virtual |
Called everytime we have a new section at the route when routing with some via points between start and target.
viaDescription | The via information |
Referenced by osmscout::RouteDescriptionPostprocessor::GenerateDescription().