4 * Created on: Sep 22, 2011
13 #include <vtkImageData.h>
14 #include <vtkMetaImageWriter.h>
15 #include <vtkMetaImageReader.h>
16 #include <vtkSmartPointer.h>
17 #include "regionStructUR.h"
22 typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
23 typedef vtkSmartPointer<vtkMetaImageReader> VTKMetaImageReaderPointerType;
24 typedef vtkSmartPointer<vtkMetaImageWriter> VTKMetaImageWriterPointerType;
25 typedef std::string StringType;
28 virtual ~ImageInfoUR();
29 void SetImageName(const StringType &imgName);
30 void SetRegion(const RegionStructUR ®ion);
31 void SetStatus(const bool& onMemory);
32 void SetImage(VTKImageDataPointerType img);
33 void RemoveImageFromMemory(const StringType& gPath);
34 void LoadImageMHDToMemory(const StringType& gPath);
35 void SaveImageAsMHD(const StringType& gPath);
36 void RemoveImageFromDisk(const StringType& gPath);
37 VTKImageDataPointerType GetImage();
38 StringType GetImageName();
39 RegionStructUR GetRegion();
43 VTKImageDataPointerType m_Image;
44 StringType m_ImageName;
45 RegionStructUR m_Region;
51 #endif /* IMAGEINFO_H_ */