]> Creatis software - creaContours.git/blob - lib/kernel_ManagerContour_NDimensions/ImageSourceThing.h
b05a4248ef780e0707fd1e01df57d265b322d97e
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / ImageSourceThing.h
1 #ifndef __IMAGE_SOURCE_THING__
2 #define __IMAGE_SOURCE_THING__
3
4
5
6 //------------------------------------------------------------------------------------------------------------
7 // Includes
8 //------------------------------------------------------------------------------------------------------------
9
10 #include <iostream>
11 #include "vtkImageData.h" 
12 /*
13 * Represents the image source, is named the source because is the base for all calculus with the complete loaded image needeed
14 */
15 class ImageSourceThing{
16
17 //------------------------------------------------------------------------------------------------------------
18 // Constructors & Destructors
19 //------------------------------------------------------------------------------------------------------------
20 public:
21
22         
23         /*
24         * Creates the source image with the given parameter
25         * @param sourceImage The image source to set.
26         */
27         ImageSourceThing(vtkImageData * theSource);
28
29         /*
30         * Destroys the image source
31         */
32         ~ImageSourceThing();
33 //------------------------------------------------------------------------------------------------------------
34 // Methods
35 //------------------------------------------------------------------------------------------------------------
36
37         /*
38         * Gets the source image 
39         * @return sourceImage The image source.
40         */
41         vtkImageData * getSourceImage();
42
43         /*
44         * Sets the source image 
45         * @param sourceImage The image source to set.
46         */
47         void setSourceImage( vtkImageData *  theSource);
48
49         /**
50         * Gets the max value of the x-axis
51         * @return x-extend_MAX
52         */
53         int getMax_X();
54
55         /**
56         * Gets the min value of the x-axis
57         * @return x-extend_MIN
58         */
59         int getMin_X();
60
61         /**
62         * Gets the range values of the x-axis
63         * @return x-extend pointer to a 2 sized []
64         */
65         int * getRangeX();
66
67         /**
68         * Gets the max value of the y-axis
69         * @return y-extend_MAX
70         */
71         int getMax_Y();
72
73         /**
74         * Gets the min value of the y-axis
75         * @return y-extend_MIN
76         */
77         int getMin_Y();
78
79         
80         /**
81         * Gets the range values of the y-axis
82         * @return y-extend pointer to a 2 sized []
83         */
84         int * getRangeY();
85
86         /**
87         * Gets the max value of the z-axis
88         * @return z-extend_MAX
89         */
90         int getMax_Z();
91
92         /**
93         * Gets the min value of the z-axis
94         * @return z-extend_MIN
95         */
96         int getMin_Z();
97
98         
99         /**
100         * Gets the range values of the z-axis
101         * @return z-extend pointer to a 2 sized []
102         */
103         int * getRangeZ();
104
105         
106         /**
107         * Gets the range values of the x-axis
108         * @return x-extend pointer to a 6 sized []
109         */
110         int * getAllRanges();
111         
112
113 //------------------------------------------------------------------------------------------------------------
114 // Constants
115 //------------------------------------------------------------------------------------------------------------
116
117 private:        
118 //------------------------------------------------------------------------------------------------------------
119 // Attributes
120 //------------------------------------------------------------------------------------------------------------
121
122         /*
123         * Represents the source image
124         */
125         vtkImageData * sourceImage;
126 };
127 #endif