/* * ImageInfo.cxx * * Created on: Sep 22, 2011 * Author: caceres */ #include "imageInfoUR.h" ImageInfoUR::ImageInfoUR() { this->m_Image = NULL; } ImageInfoUR::~ImageInfoUR() { this->RemoveImageFromMemory(); } void ImageInfoUR::SetImageName(const std::string &imgName) { this->m_ImageName = imgName; } void ImageInfoUR::SetRegion(const RegionStructUR ®ion) { this->m_Region = region; } void ImageInfoUR::SetStatus(const bool& onMemory) { this->m_OnMemory = onMemory; } void ImageInfoUR::SetImage(vtkImageData* img) { this->m_Image = img; this->SetStatus(true); } std::string ImageInfoUR::GetImageName() { return (this->m_ImageName); } RegionStructUR ImageInfoUR::GetRegion() { return (this->m_Region); } bool ImageInfoUR::GetStatus() { return (this->m_OnMemory); } void ImageInfoUR::RemoveImageFromMemory() { this->m_Image->Delete(); this->SetStatus(false); }