VisioMove SDK (Android)  2.1.22
 All Classes Functions Variables Pages
VgIRoutingNode Class Reference
Inheritance diagram for VgIRoutingNode:
Inheritance graph

Public Member Functions

boolean hasPosition ()
 
VgPosition getPosition ()
 
boolean hasRoutePosition ()
 
VgPosition getRoutePosition ()
 
boolean hasPoiID ()
 
String getPoiID ()
 
String getLayerName ()
 
- Public Member Functions inherited from VgReferenced
synchronized void release ()
 
 VgReferenced ()
 
 VgReferenced (VgReferenced pThis)
 
void ref ()
 
int unref ()
 
int getNbReferences ()
 

Detailed Description

This class is an opaque pointer class to routing nodes from the routing module. You can't instanciate this class, only the routing module can. To get an instance of routing node you can call VgIRoutingSolver::getRoutingNode

Member Function Documentation

String VgIRoutingNode.getLayerName ( )

Allows to query routing node layername

// to obtain the layername of a poiID
VgRoutingModule::VgIRoutingSolver* lSolver = lRoutingModule->getRoutingSolver();
std::vector<std::string> lPlaceIDs;
self.mapModule->queryAllPlaceIDs(lPlaceIDs);
for (std::vector<std::string>::const_iterator lIter = lPlaceIDs.begin(), lEnd = lPlaceIDs.end(); lIter != lEnd; ++lIter)
{
VgEngine::VgRefPtr<VgRoutingModule::VgIRoutingNode> lNode = lSolver->getRoutingNode(*lIter);
std::string lLayerName;
if (lNode.isValid())
{
lLayerName = lNode->getLayerName();
}
else
{
VgMapModule::VgPOIDescriptor lPOIDescriptor;
if (lMapModule->queryPOIDescriptor(*lIter, lPOIDescriptor))
{
lLayerName = lPOIDescriptor.mLayerName;
}
}
}
See also
VgRoutingModule::VgIRoutingSolver::getRoutingNode
Version
2.1.8
Returns
the layername of the routing node.
String VgIRoutingNode.getPoiID ( )

Allows to query routing node poiID, assumes hasPoiID returns true.

See also
VgRoutingModule::VgIRoutingNode::hasPoiID
VgRoutingModule::VgIRoutingSolver::getRoutingNode
Version
2.1.8
Returns
the poiID of the routing node.
VgPosition VgIRoutingNode.getPosition ( )

Allows to query the position with which the VgIRoutingNode was created.

See also
VgRoutingModule::VgIRoutingNode::hasRoutePosition
VgRoutingModule::VgIRoutingSolver::getRoutingNode
Version
2.1.8
Returns
the position that was passed into to getRoutingNode.
VgPosition VgIRoutingNode.getRoutePosition ( )

Allows to query routing node's position. This position is on the routing network, and might not be the same as was used to get the routing node. The altitude is 0, and the SRS will be the Scene SRS.

See also
VgRoutingModule::VgIRoutingNode::hasRoutePosition
VgRoutingModule::VgIRoutingSolver::getRoutingNode
Version
2.1.8
Returns
the position on the routing network as a function of the VgIRoutingNodeParameters
boolean VgIRoutingNode.hasPoiID ( )

Allows to query if the routing node has a known location

See also
VgRoutingModule::VgIRoutingNode::getPoiID
Version
2.1.8
Returns
true if getPoiID will return a valid POI ID
boolean VgIRoutingNode.hasPosition ( )

Allows to query the position with which the VgIRoutingNode was created.

See also
VgRoutingModule::VgIRoutingNode::getPosition
Version
2.1.8
Returns
true if getPosition will return a valid position
boolean VgIRoutingNode.hasRoutePosition ( )

Allows to query the position of the routing node on the network

See also
VgRoutingModule::VgIRoutingNode::getRoutePosition
Version
2.1.8
Returns
true if getRoutePosition will return a valid position

The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016