4 * Created on: Sep 22, 2011
7 #include "imageInfoUR.h"
9 ImageInfoUR::ImageInfoUR()
14 ImageInfoUR::~ImageInfoUR()
16 this->removeImageFromMemory();
19 void ImageInfoUR::setImageName(const std::string &imgName)
21 this->m_ImageName = imgName;
23 void ImageInfoUR::setRegion(const RegionStructUR ®ion)
25 this->m_Region = region;
27 void ImageInfoUR::setStatus(const bool& onMemory)
29 this->m_OnMemory = onMemory;
31 void ImageInfoUR::setImage(vtkImageData* img)
34 this->setStatus(true);
36 std::string ImageInfoUR::getImageName()
38 return( this->m_ImageName );
40 RegionStructUR ImageInfoUR::getRegion()
42 return( this->m_Region );
44 bool ImageInfoUR::getStatus()
46 return( this->m_OnMemory );
48 void ImageInfoUR::removeImageFromMemory()
50 this->m_Image->Delete();
51 this->setStatus(false);