]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h
DFCH: Changes in CMakeList (CreaImageIO dependences removed)
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / imageInfoUR.h
1 /*
2  * ImageInfo.h
3  *
4  *  Created on: Sep 22, 2011
5  *      Author: caceres
6  */
7
8 #ifndef IMAGEINFO_H_
9 #define IMAGEINFO_H_
10
11 #include <iostream>
12 #include <string>
13 #include <vtkImageData.h>
14 #include <vtkMetaImageWriter.h>
15 #include <vtkMetaImageReader.h>
16 #include <vtkSmartPointer.h>
17 #include "regionStructUR.h"
18
19 class ImageInfoUR {
20 private:
21         vtkImageData* m_Image;
22         std::string m_ImageName;
23         RegionStructUR m_Region;
24         bool m_OnMemory;
25         bool m_OnDisk;
26 public:
27         ImageInfoUR();
28         virtual ~ImageInfoUR();
29         void SetImageName(const std::string &imgName);
30         void SetRegion(const RegionStructUR &region);
31         void SetStatus(const bool& onMemory);
32         void SetImage(vtkImageData* img);
33         void RemoveImageFromMemory(const std::string& gPath);
34         void LoadImageMHDToMemory(const std::string& gPath);
35         void SaveImageAsMHD(const std::string& gPath);
36         void RemoveImageFromDisk(const std::string& gPath);
37         std::string GetImageName();
38         RegionStructUR GetRegion();
39         bool GetStatus();
40 };
41
42 #endif /* IMAGEINFO_H_ */