//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd. // = FileName : TGNode.h // = Version : ver2.0 // = Author : xlc // = CreateDate : 2002-09-09 // = Description: 类的声明 // = Maintainers: // //-----------------------------------------------------------------------------+ #ifndef _TGNODE_H_ #define _TGNODE_H_ #ifndef _TLIST_H_ #include "TList.h" #endif #ifndef _TGPOINT_H_ #include "TGPoint.h" #endif #ifndef _TGPOINT2D_H_ #include "TGPoint2D.h" #endif #ifndef _TPGEEDGE_H_ #include "TPGeEdge.h" #endif #ifndef _TPGEEDGEPATH_H_ #include "TPGeEdgePath.h" #endif class GEOAPI TGNode:public TGPoint2D,public TList { public: TGNode(); TGNode(const TGPoint&pt); ~TGNode(); //从this节点出发找通往pNodeTo可能的唯一路径(不经过LOCKED节点和边) //this不等于pNodeTo!,pNodeTo可以为NULL bool FindNode(TGNode*pNodeTo,TPGeEdgePath&path); bool operator ==(const TGPoint&pt)const; bool operator > (const TGNode&)const; bool operator < (const TGNode&)const; }; #endif