Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
vtRoadMap Class Reference

#include <RoadMap.h>

Inheritance diagram for vtRoadMap:
RoadMapEdit vtRoadMap3d vtRoadLayer

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.


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