]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h
DFCH: UndoRedo + ManualPaint - Code update. Undo beta1 working :) :) :)
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / imageInfoUR.h
index 9045e8f113d9afe420d4eb948280694767d4d86f..d55baf49708e53a9af820506bc74c760d9743d81 100755 (executable)
 #include "regionStructUR.h"
 
 class ImageInfoUR {
-private:
-       vtkImageData* m_Image;
-       std::string m_ImageName;
-       RegionStructUR m_Region;
-       bool m_OnMemory;
-       bool m_OnDisk;
+
+public:
+       typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
+       typedef vtkSmartPointer<vtkMetaImageReader> VTKMetaImageReaderPointerType;
+       typedef vtkSmartPointer<vtkMetaImageWriter> VTKMetaImageWriterPointerType;
+       typedef std::string StringType;
 public:
        ImageInfoUR();
        virtual ~ImageInfoUR();
-       void SetImageName(const std::string &imgName);
+       void SetImageName(const StringType &imgName);
        void SetRegion(const RegionStructUR &region);
        void SetStatus(const bool& onMemory);
-       void SetImage(vtkImageData* img);
-       void RemoveImageFromMemory(const std::string& gPath);
-       void LoadImageMHDToMemory(const std::string& gPath);
-       void SaveImageAsMHD(const std::string& gPath);
-       void RemoveImageFromDisk(const std::string& gPath);
-       std::string GetImageName();
+       void SetImage(VTKImageDataPointerType img);
+       void RemoveImageFromMemory(const StringType& gPath);
+       void LoadImageMHDToMemory(const StringType& gPath);
+       void SaveImageAsMHD(const StringType& gPath);
+       void RemoveImageFromDisk(const StringType& gPath);
+       VTKImageDataPointerType GetImage();
+       StringType GetImageName();
        RegionStructUR GetRegion();
        bool GetStatus();
+
+private:
+       VTKImageDataPointerType m_Image;
+       StringType m_ImageName;
+       RegionStructUR m_Region;
+       bool m_OnMemory;
+       bool m_OnDisk;
+
 };
 
 #endif /* IMAGEINFO_H_ */