]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/imageInfoUR.cxx
DFCH: Manual paint changes :)
[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 {
11         this->m_Image = NULL;
12 }
13
14 ImageInfoUR::~ImageInfoUR()
15 {
16         this->removeImageFromMemory();
17 }
18
19 void ImageInfoUR::setImageName(const std::string &imgName)
20 {
21         this->m_ImageName = imgName;
22 }
23 void ImageInfoUR::setRegion(const RegionStructUR &region)
24 {
25         this->m_Region = region;
26 }
27 void ImageInfoUR::setStatus(const bool& onMemory)
28 {
29         this->m_OnMemory = onMemory;
30 }
31 void ImageInfoUR::setImage(vtkImageData* img)
32 {
33         this->m_Image = img;
34         this->setStatus(true);
35 }
36 std::string ImageInfoUR::getImageName()
37 {
38         return( this->m_ImageName );
39 }
40 RegionStructUR ImageInfoUR::getRegion()
41 {
42         return( this->m_Region );
43 }
44 bool ImageInfoUR::getStatus()
45 {
46         return( this->m_OnMemory );
47 }
48 void ImageInfoUR::removeImageFromMemory()
49 {
50         this->m_Image->Delete();
51         this->setStatus(false);
52 }