NIREP

C:/Programs/source/NIREP/DisplayManager/NIREPDisplayManager.h

00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #pragma once
00015 
00016 /* +-----------+
00017    | Libraries |
00018    +-----------+ */
00019 class NIREPwxVTKRenderWindowInteractor;
00020 class WidgetInfo;
00021 class wxWindow;
00022 //class NIREPResourceDisplay;
00023 class NIREPResourceDatabase;
00024 
00025 #include <vector>
00026 #include <string>
00027 #include <map>
00028 //#include "DispManager.h"
00029 //using namespace std;
00030 
00031 
00032 
00033 /* +---------+
00034    | Classes |
00035    +---------+ */
00056 class NIREPDisplayManager : public wxFrame
00057 {
00058 public:
00059   /* +---------+
00060          | Methods |
00061          +---------+ */
00062 
00065   NIREPDisplayManager(void);
00066 
00069   ~NIREPDisplayManager(void);
00070 
00071 
00072 
00076   //   Once the files are parsed then the wxPanel will be populated with the
00089   //  created.
00090   wxWindow *  AddDisplay(const char * WidgetPath,
00091                          const char * EvaluatorPath,
00092                          wxWindow * aui, 
00093                          wxWindow * win,
00094                          int pagecount,
00095                          std::string & title);
00096 
00099   void UpdateDiplay();
00100 
00103   void RefreshDisplay();
00104 
00109   void RefreshADisplay(int id);
00110 
00116   bool RemoveDisplay(int id);
00117 
00120   void RemoveAllDisplay();
00121 
00124   void GetActiveDisplays(std::vector<std::string> &list);
00125 
00131 //  void SetDataManager(NIREPDataManager *DataManager);
00132 
00133 public:
00134 
00135   /* +----------+
00136          | Parameters |
00137          +----------+ */
00138   struct DisplayInfo
00139   {
00140     DisplayInfo(void);
00141     ~DisplayInfo(void);
00142     
00143     int id;
00144     std::string path;
00145     std::vector<NIREPwxVTKRenderWindowInteractor *> m_pVTKWindow;
00146     std::vector<WidgetInfo *> m_pWidgetsInfo;
00147     std::vector< std::map< std::string,std::string > > win_info;
00148     
00149   };
00150 
00151   struct Location
00152   {
00153     int loc;
00154     int locTwo;
00155   };
00156 
00157   
00158   int num;
00159   std::vector< DisplayInfo *> info;
00160   std::map<int,Location*> LocationOfInfo;
00161 
00162 private:
00163 //  NIREPDataManager *DataManager;
00164   //DispManager *DisplacmentManager;
00165 
00166   
00167   
00168 
00169 };
00170 
 All Classes Functions Variables Typedefs Enumerations Enumerator