]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h
DFCH: ManualPaint, ImageUndoRedo (module) 70%.
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / imageInfoUR.h
diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h
new file mode 100755 (executable)
index 0000000..9045e8f
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * ImageInfo.h
+ *
+ *  Created on: Sep 22, 2011
+ *      Author: caceres
+ */
+
+#ifndef IMAGEINFO_H_
+#define IMAGEINFO_H_
+
+#include <iostream>
+#include <string>
+#include <vtkImageData.h>
+#include <vtkMetaImageWriter.h>
+#include <vtkMetaImageReader.h>
+#include <vtkSmartPointer.h>
+#include "regionStructUR.h"
+
+class ImageInfoUR {
+private:
+       vtkImageData* m_Image;
+       std::string m_ImageName;
+       RegionStructUR m_Region;
+       bool m_OnMemory;
+       bool m_OnDisk;
+public:
+       ImageInfoUR();
+       virtual ~ImageInfoUR();
+       void SetImageName(const std::string &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();
+       RegionStructUR GetRegion();
+       bool GetStatus();
+};
+
+#endif /* IMAGEINFO_H_ */