VisioMove-Sample
2.1.5
|
Provides common operation on routes. More...
Classes | |
struct | LineObject |
Holds information on Lines to ease show/hide. More... | |
struct | PointObject |
Holds information on Points to ease show/hide. More... | |
Public Member Functions | |
VgMyRoutingHelper (VgApplication::VgIApplication *pVgApplication, VgMyTextureLoader *pTextureLoader, VgEngine::VgRefPtr< VgRoutingModule::VgIRouteCallback >const &pCallback, VgMyLayerAndCameraHandler *pLayerAndCamerHandler) | |
Constructor. More... | |
virtual | ~VgMyRoutingHelper () |
virtual bool | setRoutePoint (VgMyRouteCreator::RoutePoint pPoint, const std::string &pPlaceID) |
Implementation of interface : VgMyRouteCreator. More... | |
virtual bool | setRoutePoint (RoutePoint pPoint, const VgEngine::VgPosition &pPosition) |
Sets a RoutePoint to a position within the map. More... | |
virtual void | resetRoutePoint (VgMyRouteCreator::RoutePoint pPoint) |
Resets the place ID associated with a point. More... | |
virtual bool | isRoutePointSet (VgMyRouteCreator::RoutePoint pPoint) |
virtual void | computeRoute () |
Computes a route. More... | |
virtual VgRoutingModule::VgIRouteRequestParameters * | editRoutingRequestParameters () |
Returns a reference to the routing request parameters that computeRoute uses. More... | |
virtual void | resetRoutingRequestParameters () |
Resets the routing request parameters to their initial state. More... | |
virtual VgRoutingModule::VgIRoutingNodeParameters * | editRoutingNodeParameters () |
Returns a reference to the routing node parameters that getRoutingNode for a position uses. More... | |
virtual void | resetRoutingNodeParameters () |
Resets the routing node parameters to their initial state. More... | |
virtual void | setAvoidStairs (bool pDisabledFriendly) |
Sets up the routing request parameters to include/exclude non disabled-friendly attributes. More... | |
VgEngine::VgRefPtr < VgEngine::VgAnimationDescriptor > | getRoutePointHighlightAnimationDescriptor () |
Returns the descriptor of an animation intended to emphasize routing points. More... | |
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 | 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... | |
bool | createRouteObjects (VgEngine::VgConstRefPtr< VgRoutingModule::VgIRoute > const &pRoute) |
Implementation of interface : VgMyRouteDisplay. More... | |
void | clear () |
Clears the object. More... | |
void | show () |
Declaration from interface : VgMyDisplayable. More... | |
void | hide () |
Hides this Object. More... | |
bool | isVisible () |
void | setPoiCallback (const std::string &pIdentifier, VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback >const &pCallback) |
Implementation of interface : VgMyPoiConfigurationSetter. More... | |
bool | setRoutePoint (RoutePoint pPoint, const VgEngine::VgPosition &pPosition, const std::string &pLayerName) |
Sets a RoutePoint to a position and layer within the map. More... | |
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) |
bool | isPositionRoutable (const VgEngine::VgPosition &pPosition) |
void | requestRoute (const VgEngine::VgRefPtr< VgRoutingModule::VgIRoutingNode > pOrigin, const std::vector< VgEngine::VgRefPtr< VgRoutingModule::VgIRoutingNode > > &pDestinations) |
Requests a route from the routing module given some routing nodes. More... | |
void | createAndAddRouteMarker (VgMyRouteCreator::RoutePoint pPoint, const VgEngine::VgPosition &pPosition, const std::string &pLayerName) |
Add a route marker to the map. More... | |
void | removeRouteMarkers () |
std::string | getLayerNameForPosition (const VgEngine::VgPosition &pPosition) |
VgEngine::VgPosition | getPositionOfPlace (const std::string &pPlaceId) |
std::string | getLayerNameOfPlace (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::VgIRoutingNodeParameters | mRoutingNodeParameters |
VgRoutingModule::VgIRoutingModule * | mRoutingModule |
VgRoutingModule::VgIRoutingSolver * | mRouteSolver |
VgRoutingModule::VgIRouteConverter * | mRouteConverter2D |
VgMapModule::VgIMapModule * | mMapModule |
std::map < VgMyRouteCreator::RoutePoint, VgEngine::VgRefPtr < Vg3DModule::VgPoint > > | mHighlightedRoutePoints |
bool | mIsRouteVisible |
VgMyRouteStyler::RouteStyle | mRouteStyle |
std::vector< PointObject > | mPoints |
std::list< VgEngine::VgRefPtr < Vg3DModule::VgLink > > | mLinks |
std::vector< LineObject > | mLines |
POICallbackMap | mRoutePoiCallbacks |
float | mObjectHeightOffset |
float | mRouteWidth |
VgMyLayerAndCameraHandler * | mLayerAndCameraHandler |
VgEngine::VgRefPtr < VgEngine::VgAnimationDescriptor > | mHighlightedRoutePointsAnimationDescr |
VgMyRouteStyler | mRouteStyler |
Additional Inherited Members | |
![]() | |
enum | RoutePoint { eStart, eStop0, eStop1, eStop2, eStop3, eStop4, eStop5, eStopMax = 7, eEnd } |
The points that a route may have. More... | |
Provides common operation on routes.
This helper simplifies the task of managing a route and showing/hiding it when changing floors (layers).
IMPLEMENTATION TIPS: In this class, you can configure :
|
protected |
VgMyRoutingHelper::VgMyRoutingHelper | ( | VgApplication::VgIApplication * | pVgApplication, |
VgMyTextureLoader * | pTextureLoader, | ||
VgEngine::VgRefPtr< VgRoutingModule::VgIRouteCallback >const & | pCallback, | ||
VgMyLayerAndCameraHandler * | pLayerAndCamerHandler | ||
) |
Constructor.
You can customize the textures here.
|
virtual |
|
virtual |
Clears the object.
Implements VgMyRouteDisplay.
|
protected |
|
virtual |
Computes a route.
Implements VgMyRouteCreator.
|
protected |
Add a route marker to the map.
Uses a RoutePoint to determine if it is start or end. Uses the position to place the point. Uses the pLayerName to determine which layer to put point, if the pLayerName is empty it will use the altitude of the pPosition to determine the layer. Use the pLayerName to reduce the computation or to select the right layer on maps that have multiple layers at the same height (e.g. multibuilding scenarios)
pPoint | routing node either start or end |
pPosition | to place point |
pLayerName | optional layername of point if known. |
|
virtual |
Implementation of interface : VgMyRouteDisplay.
Creates the routes and its associated POIs
You can customize the route display as well as its starting&ending points.
Implements VgMyRouteDisplay.
|
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.
Implements VgMyRouteCreator.
|
virtual |
Returns a reference to the routing request parameters that computeRoute uses.
Implements VgMyRouteCreator.
|
protected |
|
protected |
|
protected |
|
virtual |
Returns the descriptor of an animation intended to emphasize routing points.
Implements VgMyRouteCreator.
|
virtual |
|
virtual |
Returns the current width of the created route.
Implements VgMyRouteCreator.
|
virtual |
|
protected |
|
protected |
|
virtual |
pPoint | RoutePoint to test. |
Implements VgMyRouteCreator.
|
virtual |
Implements VgMyRouteDisplay.
|
protected |
|
protected |
Requests a route from the routing module given some routing nodes.
pOrigin | routing node to start from |
pDestinations | array of at least size 1 of routing nodes. |
|
virtual |
Resets the place ID associated with a point.
pPoint | RoutePoint to reset. |
Implements VgMyRouteCreator.
|
virtual |
Resets the routing node parameters to their initial state.
Implements VgMyRouteCreator.
|
virtual |
Resets the routing request parameters to their initial state.
Implements VgMyRouteCreator.
|
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.
|
virtual |
Implementation of interface : VgMyPoiConfigurationSetter.
Implements VgMyPoiConfigurationSetter.
|
virtual |
Set route marker height.
Adjust so that the marker appears to be anchored to the top of desired surface.
pHeight | The height of the route markers in meters. |
Implements VgMyRouteCreator.
|
virtual |
Implementation of interface : VgMyRouteCreator.
Implements VgMyRouteCreator.
|
virtual |
Sets a RoutePoint to a position within the map.
Finds the closest routing node from the routing network to the given position.
pPoint | RoutePoint to set |
pPosition | Position to associates with pPoint. |
Implements VgMyRouteCreator.
bool VgMyRoutingHelper::setRoutePoint | ( | RoutePoint | pPoint, |
const VgEngine::VgPosition & | pPosition, | ||
const std::string & | pLayerName | ||
) |
Sets a RoutePoint to a position and layer within the map.
Used when the layername for a given position cannot be deduced from its altitude, for example multiple building's.
pPoint | RoutePoint to set |
pPosition | Position to associates with pPoint. |
pLayerName | where the position is, pPosition.mZOrAltitude should be within the minimum and maximum heights for the layer |
|
virtual |
Change the routing style of lines generated by the routing helper.
pRouteStyle | route style |
pRecomputeRoute |
Implements VgMyRouteCreator.
|
virtual |
Determines the width of the created route.
pWidth | The width of the route in meters |
Implements VgMyRouteCreator.
|
virtual |
Declaration from interface : VgMyDisplayable.
Implements VgMyRouteDisplay.
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |