/* * ImageInfo.h * * Created on: Sep 22, 2011 * Author: caceres */ #ifndef IMAGEINFO_H_ #define IMAGEINFO_H_ #include #include #include #include #include #include #include "regionStructUR.h" class ImageInfoUR { public: typedef vtkSmartPointer VTKImageDataPointerType; typedef vtkSmartPointer VTKMetaImageReaderPointerType; typedef vtkSmartPointer VTKMetaImageWriterPointerType; typedef std::string StringType; public: ImageInfoUR(); virtual ~ImageInfoUR(); void SetImageName(const StringType &imgName); void SetRegion(const RegionStructUR ®ion); void SetStatus(const bool& onMemory); 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_ */