VisioMove SDK (Android)  2.1.22
 All Classes Functions Variables Pages
VgIRoutingNodeRefPtr Class Reference

Public Member Functions

 VgIRoutingNodeRefPtr ()
 
 VgIRoutingNodeRefPtr (VgIRoutingNode pPointer)
 
 VgIRoutingNodeRefPtr (VgIRoutingNodeRefPtr pRefPtr)
 
VgIRoutingNodeRefPtr set (VgIRoutingNode pPointer)
 
VgIRoutingNode __ref__ ()
 
VgIRoutingNode __deref__ ()
 
VgIRoutingNode get ()
 
boolean isValid ()
 
boolean hasPosition ()
 
VgPosition getPosition ()
 
boolean hasRoutePosition ()
 
VgPosition getRoutePosition ()
 
boolean hasPoiID ()
 
String getPoiID ()
 
String getLayerName ()
 
void ref ()
 
int unref ()
 
int getNbReferences ()
 

Static Public Member Functions

static VgIRoutingNodeRefPtr getNull ()
 

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

Constructor & Destructor Documentation

VgIRoutingNodeRefPtr.VgIRoutingNodeRefPtr ( )
VgIRoutingNodeRefPtr.VgIRoutingNodeRefPtr ( VgIRoutingNode  pPointer)
VgIRoutingNodeRefPtr.VgIRoutingNodeRefPtr ( VgIRoutingNodeRefPtr  pRefPtr)

Member Function Documentation

VgIRoutingNode VgIRoutingNodeRefPtr.__deref__ ( )
VgIRoutingNode VgIRoutingNodeRefPtr.__ref__ ( )
VgIRoutingNode VgIRoutingNodeRefPtr.get ( )
String VgIRoutingNodeRefPtr.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.
int VgIRoutingNodeRefPtr.getNbReferences ( )
static VgIRoutingNodeRefPtr VgIRoutingNodeRefPtr.getNull ( )
static
String VgIRoutingNodeRefPtr.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 VgIRoutingNodeRefPtr.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 VgIRoutingNodeRefPtr.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 VgIRoutingNodeRefPtr.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 VgIRoutingNodeRefPtr.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 VgIRoutingNodeRefPtr.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
boolean VgIRoutingNodeRefPtr.isValid ( )
void VgIRoutingNodeRefPtr.ref ( )
VgIRoutingNodeRefPtr VgIRoutingNodeRefPtr.set ( VgIRoutingNode  pPointer)
int VgIRoutingNodeRefPtr.unref ( )

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