vtdata library
Public Member Functions | Public Attributes | Protected Attributes | List of all members
TNode Class Reference

Public Member Functions

bool operator== (TNode &ref)
 
void Copy (TNode *node)
 
TLinkGetLink (uint n) const
 
int NumLinks () const
 
int AddLink (TLink *pR)
 
void DetachLink (TLink *pR)
 
void DetermineLinkAngles ()
 
float GetLinkAngle (uint iLinkNum)
 
void SortLinksByAngle ()
 
DPoint2 GetAdjacentLinkPoint2d (int iLinkNum)
 
int GetLinkNum (TLink *link)
 
bool SetIntersectType (uint linkNum, IntersectionType type)
 
IntersectionType GetIntersectType (uint linkNum)
 
bool HasLights ()
 
bool IsControlled ()
 
void AdjustForLights ()
 
int FindLink (int linkID)
 
void SetNext (TNode *next)
 
TNodeGetNext () const
 
void SetPos (const DPoint2 &pos)
 
void SetPos (const double x, const double y)
 
DPoint2Pos ()
 
const DPoint2Pos () const
 

Public Attributes

int m_id
 
std::vector< float > m_fLinkAngle
 

Protected Attributes

DPoint2 m_p
 
TNodem_pNext
 
std::vector< TLink * > m_connect
 

Detailed Description

A Transporation Node is a place where 2 or more links meet.