VisioMove-Sample
2.1.3
|
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 () |
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... | |
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 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, 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::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 |
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 |
[pLayer] | layername of point if known. |
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 |
|
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 |
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 |
void VgMyRoutingHelper::setRouteStyle | ( | VgMyRouteStyler::RouteStyle | pRouteStyle, |
bool | pRecomputeRoute = true |
||
) |
void VgMyRoutingHelper::setRouteWidth | ( | float | pWidth | ) |
void VgMyRoutingHelper::show | ( | ) |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |