]> Creatis software - clitk.git/blob - vv/vvReadState.h
VV: added links to Read/Save state
[clitk.git] / vv / vvReadState.h
1 #ifndef VVREADSTATE_H
2 #define VVREADSTATE_H
3
4 #include <string>
5 #include <memory>
6
7 class vvMainWindow;
8 class QXmlStreamReader;
9 class QFile;
10
11 class vvReadState
12 {
13 public:
14   vvReadState();
15   virtual ~vvReadState();
16   
17   virtual void Run(vvMainWindow* vvWindow, const std::string& file);
18   int GetNumberOfImages() { return m_NumImages; }
19     
20 protected:
21   
22   void ReadGUI();
23   void ReadTree();
24   void ReadTools();
25   void ReadTool(const std::string & toolname);
26   std::string ReadImage();
27   std::string ReadFusion(int index);
28   std::string ReadOverlay(int index);
29   std::string ReadVector(int index);
30   std::string ReadLink();
31
32   std::auto_ptr<QXmlStreamReader> m_XmlReader;
33   std::auto_ptr<QFile> m_File;
34   vvMainWindow* m_Window;
35   int m_TreeItemCount;
36   int m_NumImages;
37 };
38
39 #endif // VVREADSTATE_H