vtRoadMap Class Reference

List of all members.

Public Member Functions

void DeleteElements ()
DRECT GetMapExtent ()
void ComputeExtents ()
int NumLinks () const
int NumNodes () const
TLinkGetFirstLink ()
TNodeGetFirstNode ()
virtual TNodeNewNode ()
virtual TLinkNewLink ()
void AddNode (TNode *pNode)
void AddLink (TLink *pLink)
TNodeFindNodeByID (int id)
TNodeFindNodeAtPoint (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)
vtProjectionGetProjection ()

Protected Attributes

DRECT m_extents
bool m_bValidExtents
TLinkm_pFirstLink
TNodem_pFirstNode
vtProjection m_proj

Detailed Description

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.


Member Function Documentation

TNode * vtRoadMap::FindNodeAtPoint const DPoint2 point,
double  epsilon
 

Find the node closest to the indicated point. Ignore nodes more than epsilon units away from the point.


Generated on Tue Apr 22 10:11:01 2008 for vtdata library by  doxygen 1.4.5