]> Creatis software - creaContours.git/blob - lib/kernel_ManagerContour_NDimensions/ImageSectionThing.cxx
aacb3a432a7520a6033739a3a72e35e9b3d4f22b
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / ImageSectionThing.cxx
1
2 //----------------------------------------------------------------------------------------------------------------
3 // Class definition include
4 //----------------------------------------------------------------------------------------------------------------
5 #include "ImageSectionThing.h"
6
7 //----------------------------------------------------------------------------------------------------------------
8 // Class implementation
9 //----------------------------------------------------------------------------------------------------------------
10 /** @file ImageSectionThing.cxx */
11
12 //------------------------------------------------------------------------------------------------------------
13 // Constructors & Destructors
14 //------------------------------------------------------------------------------------------------------------
15
16         /*
17         * Creates the section image with the given image
18         * @param sourceImage The image data to set.
19         */
20         ImageSectionThing :: ImageSectionThing(vtkImageData * theImage)
21         {
22                 setImageData(theImage);
23         }
24
25         /*
26         * Destroys the image section
27         */
28         ImageSectionThing :: ~ImageSectionThing()
29         {
30
31         }
32 //------------------------------------------------------------------------------------------------------------
33 // Methods
34 //------------------------------------------------------------------------------------------------------------
35
36         /*
37         * Gets the image data 
38         * @return image The image.
39         */
40         vtkImageData * ImageSectionThing :: getImageData()
41         {
42                 return image;
43         }
44
45         /*
46         * Sets the source image 
47         * @param theImage The image to set.
48         */
49         void ImageSectionThing :: setImageData( vtkImageData *  theImage)
50         {
51                 image = theImage;
52         }
53    
54