/* * ImageInfo.h * * Created on: Sep 22, 2011 * Author: caceres */ #ifndef IMAGEINFO_H_ #define IMAGEINFO_H_ #include #include #include #include #include #include #include "regionStructUR.h" #include "imageModificationManager.h" /* * Tenga cuidado que siempre se va a referir a dos imagenes (UNDO/REDO) entonces de las dos imagenes es el mismo solo que * finalizan distinto. */ class ImageInfoUR { public: typedef vtkSmartPointer VTKImageDataPointerType; typedef vtkSmartPointer VTKMetaImageReaderPointerType; typedef vtkSmartPointer VTKMetaImageWriterPointerType; typedef ImageMManager ImageMManagerType; typedef std::string StringType; public: ImageInfoUR(); virtual ~ImageInfoUR(); void SetImageName(const StringType &imgName); void SetImageMManager(ImageMManagerType *imMManager); void SetStatus(const bool& onMemory); void SetImages(VTKImageDataPointerType imgUndo, VTKImageDataPointerType imgRedo); void LoadImagesToMemory(const StringType& gPath); void RemoveImagesFromMemory(const StringType& gPath); void SaveImagesOnDisk(const StringType& gPath); void RemoveImagesFromDisk(const StringType& gPath); VTKImageDataPointerType GetUndoImage(); VTKImageDataPointerType GetRedoImage(); StringType GetImageName(); ImageMManagerType* GetImageMManager(); void SaveImageAsMHD(const StringType& filename, VTKImageDataPointerType image); bool GetStatus(); private: VTKImageDataPointerType m_UndoImage; VTKImageDataPointerType m_RedoImage; StringType m_ImageName; ImageMManagerType* m_ImageMManager; bool m_OnMemory; bool m_OnDisk; }; #endif /* IMAGEINFO_H_ */