4 * Created on: Sep 22, 2011
7 #include "imageInfoUR.h"
9 ImageInfoUR::ImageInfoUR() {
13 ImageInfoUR::~ImageInfoUR() {
14 this->RemoveImageFromMemory();
17 void ImageInfoUR::SetImageName(const std::string &imgName) {
18 this->m_ImageName = imgName;
20 void ImageInfoUR::SetRegion(const RegionStructUR ®ion) {
21 this->m_Region = region;
23 void ImageInfoUR::SetStatus(const bool& onMemory) {
24 this->m_OnMemory = onMemory;
26 void ImageInfoUR::SetImage(vtkImageData* img) {
28 this->SetStatus(true);
30 std::string ImageInfoUR::GetImageName() {
31 return (this->m_ImageName);
33 RegionStructUR ImageInfoUR::GetRegion() {
34 return (this->m_Region);
36 bool ImageInfoUR::GetStatus() {
37 return (this->m_OnMemory);
39 void ImageInfoUR::RemoveImageFromMemory() {
40 this->m_Image->Delete();
41 this->SetStatus(false);