|
CartoType API
|
#include <cartotype_router.h>
Inherited by TMapDataArc.
Public Member Functions | |
| virtual void | GetContour (TContour &aContour) const =0 |
| virtual const CMapObject * | MapObject () const =0 |
| virtual int32 | Distance (double aPointScale) const =0 |
| CT_IMPORT double | StartAngle (double aMinDistance) const |
| CT_IMPORT double | EndAngle (double aMinDistance) const |
| CT_IMPORT TRoadType | RoadType () const |
Public Attributes | |
| CNode * | iDest |
| int32 | iCost |
An abstract class for a directed arc connecting a node to another node.
| virtual int32 CartoType::Router::TArc::Distance | ( | double | aPointScale | ) | const [pure virtual] |
Return the distance along the arc in metres. This is not a straight-line distance but must follow any turns. aPointScale is the size of the units used for points, in metres.
| CT_EXPORT double TArc::EndAngle | ( | double | aMinDistance | ) | const |
Return the ending angle of an arc in radians, using a point at least aMinDistance along the arc if possible.
| virtual void CartoType::Router::TArc::GetContour | ( | TContour & | aContour | ) | const [pure virtual] |
Get a contour representing the arc, so that it can be drawn. The contour is returned in map coordinates.
| virtual const CMapObject* CartoType::Router::TArc::MapObject | ( | ) | const [pure virtual] |
Get the map object, if any, of which this arc is a part. If the arc is not part of a map object return NULL.
| CT_EXPORT double TArc::StartAngle | ( | double | aMinDistance | ) | const |
Return the starting angle of an arc in radians, using a point at least aMinDistance along the arc if possible.
The cost of traversing this arc in arbitrary units.
The node at the end of the arc.
1.7.5.1