#include <RoadMap.h>
Public Member Functions | |
void | DeleteElements () |
DRECT | GetMapExtent () |
void | ComputeExtents () |
int | NumLinks () const |
int | NumNodes () const |
TLink * | GetFirstLink () |
TNode * | GetFirstNode () |
virtual TNode * | NewNode () |
virtual TLink * | NewLink () |
void | AddNode (TNode *pNode) |
void | AddLink (TLink *pLink) |
TNode * | FindNodeByID (int id) |
TNode * | FindNodeAtPoint (const DPoint2 &point, double epsilon) |
int | RemoveUnusedNodes () |
void | RemoveNode (TNode *pNode) |
void | RemoveLink (TLink *pLink) |
bool | ReadRMF (const char *filename, bool bHwy, bool bPaved, bool bDirt) |
bool | WriteRMF (const char *filename) |
vtProjection & | GetProjection () |
Protected Attributes | |
DRECT | m_extents |
bool | m_bValidExtents |
TLink * | m_pFirstLink |
TNode * | m_pFirstNode |
vtProjection | m_proj |
vtRoadMap contains a sets of nodes (TNode) and links (TLink) which define a transportation network.
It can be loaded and saved from RMF files, an ad-hoc Road Map Format which is overdue to be replaced by some clean, extensible standard for transportation networks. Unforunately, such a standard does not yet exist.
Find the node closest to the indicated point. Ignore nodes more than epsilon units away from the point.