]> Creatis software - clitk.git/blob - vv/vvReadState.h
Merge branch 'master' of /home/dsarrut/clitk3.server
[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   std::string  ReadImage();
25   std::string  ReadFusion(int index);
26   std::string  ReadOverlay(int index);
27   std::string  ReadVector(int index);
28
29   std::auto_ptr<QXmlStreamReader> m_XmlReader;
30   std::auto_ptr<QFile> m_File;
31   vvMainWindow* m_Window;
32   int m_TreeItemCount;
33   int m_NumImages;
34 };
35
36 #endif // VVREADSTATE_H