]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/imageInfoUR.cxx
DFCH: Changes in CMakeList (CreaImageIO dependences removed)
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualPaint / imageInfoUR.cxx
1 /*
2  * ImageInfo.cxx
3  *
4  *  Created on: Sep 22, 2011
5  *      Author: caceres
6  */
7 #include "imageInfoUR.h"
8
9 ImageInfoUR::ImageInfoUR() {
10         this->m_Image = NULL;
11 }
12
13 ImageInfoUR::~ImageInfoUR() {
14         this->RemoveImageFromMemory();
15 }
16
17 void ImageInfoUR::SetImageName(const std::string &imgName) {
18         this->m_ImageName = imgName;
19 }
20 void ImageInfoUR::SetRegion(const RegionStructUR &region) {
21         this->m_Region = region;
22 }
23 void ImageInfoUR::SetStatus(const bool& onMemory) {
24         this->m_OnMemory = onMemory;
25 }
26 void ImageInfoUR::SetImage(vtkImageData* img) {
27         this->m_Image = img;
28         this->SetStatus(true);
29 }
30 std::string ImageInfoUR::GetImageName() {
31         return (this->m_ImageName);
32 }
33 RegionStructUR ImageInfoUR::GetRegion() {
34         return (this->m_Region);
35 }
36 bool ImageInfoUR::GetStatus() {
37         return (this->m_OnMemory);
38 }
39 void ImageInfoUR::RemoveImageFromMemory() {
40         this->m_Image->Delete();
41         this->SetStatus(false);
42 }