|
VisioDevKit-Sample
v2.0
|
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) |
| virtual void | resetRoutePoint (VgMyRouteCreator::RoutePoint pPoint) |
| virtual bool | isRoutePointSet (VgMyRouteCreator::RoutePoint pPoint) |
| virtual void | computeRoute () |
| virtual VgRoutingModule::VgIRouteRequestParameters * | editRoutingRequestParameters () |
| virtual void | resetRoutingRequestParameters () |
| virtual void | setAvoidStairs (bool pDisabledFriendly) |
| VgEngine::VgRefPtr < VgEngine::VgAnimationDescriptor > | getRoutePointHighlightAnimationDescriptor () |
| std::vector< VgEngine::VgPosition > | simplifyForWidth (const std::vector< VgEngine::VgPosition > &pPositions, double pWidth) |
| void | setRouteStyle (VgMyRouteStyler::RouteStyle pRouteStyle, bool pRecomputeRoute=true) |
| VgMyRouteStyler::RouteStyle | getRouteStyle () const |
| void | setRouteWidth (float pWidth) |
| void | setRouteMarkerHeight (float pHeight) |
| bool | createRouteObjects (VgEngine::VgConstRefPtr< VgRoutingModule::VgIRoute > const &pRoute) |
| Implementation of interface : VgMyRouteDisplay. More... | |
| void | clear () |
| void | show () |
| void | hide () |
| bool | isVisible () |
| void | setPoiCallback (const std::string &pIdentifier, VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback >const &pCallback) |
| Implementation of interface : VgMyPoiConfigurationSetter. 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 VgEngine::VgRefPtr< VgRoutingModule::VgIRoutingNode > pDestination) |
| Requests a route from the routing module given some routing nodes. More... | |
| 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 |
| 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 |
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 |
| void VgMyRoutingHelper::clear | ( | ) |
|
protected |
|
virtual |
|
protected |
| bool VgMyRoutingHelper::createRouteObjects | ( | VgEngine::VgConstRefPtr< VgRoutingModule::VgIRoute > const & | pRoute | ) |
Implementation of interface : VgMyRouteDisplay.
Creates the routes and its associated POIs
You can customize the route display as well as its starting&ending points.
|
virtual |
|
protected |
|
protected |
| VgEngine::VgRefPtr< VgEngine::VgAnimationDescriptor > VgMyRoutingHelper::getRoutePointHighlightAnimationDescriptor | ( | ) |
| VgMyRouteStyler::RouteStyle VgMyRoutingHelper::getRouteStyle | ( | ) | const |
| void VgMyRoutingHelper::hide | ( | ) |
|
protected |
|
protected |
|
virtual |
| bool VgMyRoutingHelper::isVisible | ( | ) |
|
protected |
|
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 |
|
virtual |
|
virtual |
|
virtual |
Implementation of interface : VgMyPoiConfigurationSetter.
Implements VgMyPoiConfigurationSetter.
| void VgMyRoutingHelper::setRouteMarkerHeight | ( | float | pHeight | ) |
|
virtual |
Implementation of interface : VgMyRouteCreator.
|
virtual |
| void VgMyRoutingHelper::setRouteStyle | ( | VgMyRouteStyler::RouteStyle | pRouteStyle, |
| bool | pRecomputeRoute = true |
||
| ) |
| void VgMyRoutingHelper::setRouteWidth | ( | float | pWidth | ) |
| void VgMyRoutingHelper::show | ( | ) |
| std::vector< VgEngine::VgPosition > VgMyRoutingHelper::simplifyForWidth | ( | const std::vector< VgEngine::VgPosition > & | pPositions, |
| double | pWidth | ||
| ) |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |