#include <ImageSourceThing.h>
Public Member Functions | |
ImageSourceThing (vtkImageData *theSource) | |
~ImageSourceThing () | |
vtkImageData * | getSourceImage () |
void | setSourceImage (vtkImageData *theSource) |
int | getMax_X () |
int | getMin_X () |
int * | getRangeX () |
int | getMax_Y () |
int | getMin_Y () |
int * | getRangeY () |
int | getMax_Z () |
int | getMin_Z () |
int * | getRangeZ () |
int * | getAllRanges () |
Private Attributes | |
vtkImageData * | sourceImage |
Definition at line 15 of file ImageSourceThing.h.
ImageSourceThing::ImageSourceThing | ( | vtkImageData * | theSource | ) |
Definition at line 20 of file ImageSourceThing.cxx.
References setSourceImage().
00021 { 00022 setSourceImage(theSource); 00023 }
ImageSourceThing::~ImageSourceThing | ( | ) |
int * ImageSourceThing::getAllRanges | ( | ) |
Gets the range values of the x-axis
Definition at line 172 of file ImageSourceThing.cxx.
References sourceImage.
00173 { 00174 return sourceImage-> GetExtent(); 00175 }
int ImageSourceThing::getMax_X | ( | ) |
Gets the max value of the x-axis
Definition at line 58 of file ImageSourceThing.cxx.
References sourceImage.
00059 { 00060 int x1, x2, y1, y2, z1, z2; 00061 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00062 return x2; 00063 }
int ImageSourceThing::getMax_Y | ( | ) |
Gets the max value of the y-axis
Definition at line 94 of file ImageSourceThing.cxx.
References sourceImage.
00095 { 00096 int x1, x2, y1, y2, z1, z2; 00097 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00098 return y2; 00099 }
int ImageSourceThing::getMax_Z | ( | ) |
Gets the max value of the z-axis
Definition at line 132 of file ImageSourceThing.cxx.
References sourceImage.
00133 { 00134 int x1, x2, y1, y2, z1, z2; 00135 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00136 return z2; 00137 }
int ImageSourceThing::getMin_X | ( | ) |
Gets the min value of the x-axis
Definition at line 69 of file ImageSourceThing.cxx.
References sourceImage.
00070 { 00071 int x1, x2, y1, y2, z1, z2; 00072 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00073 return x1; 00074 }
int ImageSourceThing::getMin_Y | ( | ) |
Gets the min value of the y-axis
Definition at line 105 of file ImageSourceThing.cxx.
References sourceImage.
00106 { 00107 int x1, x2, y1, y2, z1, z2; 00108 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00109 return y1; 00110 }
int ImageSourceThing::getMin_Z | ( | ) |
Gets the min value of the z-axis
Definition at line 143 of file ImageSourceThing.cxx.
References sourceImage.
00144 { 00145 int x1, x2, y1, y2, z1, z2; 00146 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00147 return z1; 00148 }
int * ImageSourceThing::getRangeX | ( | ) |
Gets the range values of the x-axis
Definition at line 80 of file ImageSourceThing.cxx.
References sourceImage.
00081 { 00082 int x1, x2, y1, y2, z1, z2; 00083 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00084 int* retVal = new int[2]; 00085 retVal[0]= x1; 00086 retVal[1]= x2; 00087 return retVal; 00088 }
int * ImageSourceThing::getRangeY | ( | ) |
Gets the range values of the y-axis
Definition at line 117 of file ImageSourceThing.cxx.
References sourceImage.
00118 { 00119 int x1, x2, y1, y2, z1, z2; 00120 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00121 int* retVal = new int[2]; 00122 retVal[0]= y1; 00123 retVal[1]= y2; 00124 return retVal; 00125 00126 }
int * ImageSourceThing::getRangeZ | ( | ) |
Gets the range values of the z-axis
Definition at line 155 of file ImageSourceThing.cxx.
References sourceImage.
00156 { 00157 int x1, x2, y1, y2, z1, z2; 00158 sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2); 00159 int* retVal = new int[2]; 00160 retVal[0]= z1; 00161 retVal[1]= z2; 00162 return retVal; 00163 00164 00165 }
vtkImageData * ImageSourceThing::getSourceImage | ( | ) |
Definition at line 40 of file ImageSourceThing.cxx.
References sourceImage.
Referenced by KernelManagerContour::getSourceImage().
00041 { 00042 return sourceImage; 00043 }
void ImageSourceThing::setSourceImage | ( | vtkImageData * | theSource | ) |
Definition at line 49 of file ImageSourceThing.cxx.
References sourceImage.
Referenced by ImageSourceThing().
00050 { 00051 sourceImage = theSource; 00052 }
vtkImageData* ImageSourceThing::sourceImage [private] |
Definition at line 125 of file ImageSourceThing.h.
Referenced by getAllRanges(), getMax_X(), getMax_Y(), getMax_Z(), getMin_X(), getMin_Y(), getMin_Z(), getRangeX(), getRangeY(), getRangeZ(), getSourceImage(), and setSourceImage().