GME  13
AutoRouter.h
Go to the documentation of this file.
00001 #ifndef GME_AutoRouter_h
00002 #define GME_AutoRouter_h
00003 
00004 #include "stdafx.h"
00005 #include "afxcoll.h"
00006 #include "afxtempl.h"
00007 
00008 #include "AutoRouterPath.h"
00009 
00010 class CGuiConnection;
00011 
00012 typedef CList<CPoint, CPoint&>  CPointList;
00013 
00014 
00015 class CAutoRouter {
00016 public:
00017         CAutoRouter();
00018         ~CAutoRouter();
00019 
00020 private:
00021         CAutoRouterGraph* router;
00022         int routeret;
00023 
00024 public:
00025         bool AutoRoute(long aspect);
00026         void AutoRoute(CGuiFcoList& fcos, long aspect);
00027         void Fill(CGuiFcoList& fcos);
00028         void Clear(CGuiFcoList& fcos);
00029         void SetPortPreferences(CAutoRouterPort* portBox, CGuiPort* object);
00030         void SetPathPreferences(CAutoRouterPath* path, CGuiConnection* conn);
00031         bool RemoveDeletedCustomPathDataFromGuiConnections(void);
00032         void AddObjects(CGuiFcoList& fcos);
00033         void AddFco(CGuiFco* fco);
00034         void AddObject(CGuiObject* obj);
00035         void AddConnections(CGuiConnectionList& connList);
00036         void AddConnection(CGuiConnection* conn);
00037         void DeleteObjects(CGuiObjectList& objectList);
00038         void DeleteObject(CGuiObject* model);
00039         void ClearRouterPorts(CGuiPortList& portList);
00040         void DeleteConnection(CGuiConnection* conn);
00041         CGuiConnection* FindConnection(CPoint& pt) const;
00042         void NudgeObjects(CGuiObjectList& objectList, int right, int down, long aspect);
00043 };
00044 
00045 #endif // whole file