CartoType API
Public Member Functions | Public Attributes
CartoType::Router::TArc Class Reference

#include <cartotype_router.h>

Inherited by TMapDataArc.

List of all members.

Public Member Functions

virtual void GetContour (TContour &aContour) const =0
virtual const CMapObjectMapObject () 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

CNodeiDest
int32 iCost

Detailed Description

An abstract class for a directed arc connecting a node to another node.


Member Function Documentation

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.


Member Data Documentation

The cost of traversing this arc in arbitrary units.

The node at the end of the arc.


The documentation for this class was generated from the following files: