AnimatLab  2
Test
SimulationWindowMgr.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
20 class ANIMAT_PORT SimulationWindowMgr : public AnimatBase
21 {
22 protected:
24  CStdFPoint m_ptPosition;
25 
27  CStdFPoint m_ptSize;
28 
30  CStdPtrArray<SimulationWindow> m_aryWindows;
31 
34 
35  SimulationWindow *LoadSimulationWindow(CStdXml &oXml);
36 
37  virtual void SetupCameras();
38 
39 public:
40  SimulationWindowMgr(void);
41  ~SimulationWindowMgr(void);
42 
43  static SimulationWindowMgr *CastToDerived(AnimatBase *lpBase) {return static_cast<SimulationWindowMgr*>(lpBase);}
44 
45  virtual bool HasContainedWindow();
46 
55  virtual CStdPtrArray<SimulationWindow> *Windows() {return &m_aryWindows;};
56 
57  virtual bool Update();
58 
65  virtual void Realize() = 0;
66  virtual void Close();
67  virtual void Initialize();
68 
69  virtual void UpdateBackgroundColor();
70 
71  virtual SimulationWindow *FindSimulationWindow(HWND win, int &iIndex, bool bThrowError = true);
72 
73  virtual void ResetSimulation();
74  virtual SimulationWindow *AddSimulationWindow(std::string strModule, std::string strType, bool bInit, HWND win, std::string strHudXml);
75  virtual void RemoveSimulationWindow(HWND win);
76  virtual void CloseAllWindows();
77  virtual void Load(CStdXml &oXml);
78 };
79 
80 }// end AnimatSim
81 
82 
CStdFPoint m_ptPosition
If this is a stand-alone group window then this is the position of the group window.
Root namespace for the base simulation library for AnimatLab.
virtual CStdPtrArray< SimulationWindow > * Windows()
Gets the windows array.
Base class for a simulation window.
CStdPtrArray< SimulationWindow > m_aryWindows
Array of SimulationWindow objects.
Hud * m_lpHudMgr
Manager for heads-up display items.
CStdFPoint m_ptSize
If this is a stand-alone group window then this is the size of the group window.
Manager for simulation windows.
Animat base class.
Definition: AnimatBase.h:36