X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FimageUndoRedo%2FimageInfoUR.h;h=d55baf49708e53a9af820506bc74c760d9743d81;hb=b37bd791f88bd4c1a6146fadcb88864d7cd1a5c3;hp=9045e8f113d9afe420d4eb948280694767d4d86f;hpb=d0338585b83d4b0422ad465dedd0f885b3441600;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h index 9045e8f..d55baf4 100755 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h @@ -17,26 +17,35 @@ #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 VTKImageDataPointerType; + typedef vtkSmartPointer VTKMetaImageReaderPointerType; + typedef vtkSmartPointer VTKMetaImageWriterPointerType; + typedef std::string StringType; public: ImageInfoUR(); virtual ~ImageInfoUR(); - void SetImageName(const std::string &imgName); + void SetImageName(const StringType &imgName); void SetRegion(const RegionStructUR ®ion); 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_ */