2 //----------------------------------------------------------------------------------------------------------------
3 // Class definition include
4 //----------------------------------------------------------------------------------------------------------------
5 #include "ImageSourceThing.h"
7 //----------------------------------------------------------------------------------------------------------------
8 // Class implementation
9 //----------------------------------------------------------------------------------------------------------------
10 /** @file ImageSourceThing.cxx */
12 //------------------------------------------------------------------------------------------------------------
13 // Constructors & Destructors
14 //------------------------------------------------------------------------------------------------------------
17 * Creates the source image with the given parameter
18 * @param sourceImage The image source to set.
20 ImageSourceThing :: ImageSourceThing(vtkImageData * theSource)
22 setSourceImage(theSource);
26 * Destroys the image source
28 ImageSourceThing :: ~ImageSourceThing()
32 //------------------------------------------------------------------------------------------------------------
34 //------------------------------------------------------------------------------------------------------------
37 * Gets the source image
38 * @return sourceImage The image source.
40 vtkImageData * ImageSourceThing :: getSourceImage()
46 * Sets the source image
47 * @param sourceImage The image source.
49 void ImageSourceThing :: setSourceImage( vtkImageData * theSource)
51 sourceImage = theSource;
55 * Gets the max value of the x-axis
56 * @return x-extend_MAX
58 int ImageSourceThing :: getMax_X()
60 int x1, x2, y1, y2, z1, z2;
61 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
66 * Gets the min value of the x-axis
67 * @return x-extend_MIN
69 int ImageSourceThing :: getMin_X()
71 int x1, x2, y1, y2, z1, z2;
72 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
77 * Gets the range values of the x-axis
78 * @return x-extend pointer to a 2 sized []
80 int * ImageSourceThing :: getRangeX()
82 int x1, x2, y1, y2, z1, z2;
83 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
84 int* retVal = new int[2];
91 * Gets the max value of the y-axis
92 * @return y-extend_MAX
94 int ImageSourceThing :: getMax_Y()
96 int x1, x2, y1, y2, z1, z2;
97 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
102 * Gets the min value of the y-axis
103 * @return y-extend_MIN
105 int ImageSourceThing :: getMin_Y()
107 int x1, x2, y1, y2, z1, z2;
108 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
114 * Gets the range values of the y-axis
115 * @return y-extend pointer to a 2 sized []
117 int * ImageSourceThing :: getRangeY()
119 int x1, x2, y1, y2, z1, z2;
120 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
121 int* retVal = new int[2];
129 * Gets the max value of the z-axis
130 * @return z-extend_MAX
132 int ImageSourceThing :: getMax_Z()
134 int x1, x2, y1, y2, z1, z2;
135 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
140 * Gets the min value of the z-axis
141 * @return z-extend_MIN
143 int ImageSourceThing :: getMin_Z()
145 int x1, x2, y1, y2, z1, z2;
146 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
152 * Gets the range values of the z-axis
153 * @return z-extend pointer to a 2 sized []
155 int * ImageSourceThing :: getRangeZ()
157 int x1, x2, y1, y2, z1, z2;
158 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
159 int* retVal = new int[2];
169 * Gets the range values of the x-axis
170 * @return x-extend pointer to a 6 sized []
172 int * ImageSourceThing :: getAllRanges()
174 return sourceImage-> GetExtent();