creaContours_lib
ImageSourceThing Class Reference

#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
 

Detailed Description

Definition at line 40 of file ImageSourceThing.h.

Constructor & Destructor Documentation

ImageSourceThing::ImageSourceThing ( vtkImageData *  theSource)

Definition at line 45 of file ImageSourceThing.cxx.

References setSourceImage().

46  {
47  setSourceImage(theSource);
48  }

Here is the call graph for this function:

ImageSourceThing::~ImageSourceThing ( )

Definition at line 53 of file ImageSourceThing.cxx.

54  {
55 
56  }

Member Function Documentation

int * ImageSourceThing::getAllRanges ( )

Gets the range values of the x-axis

Returns
x-extend pointer to a 6 sized []

Definition at line 197 of file ImageSourceThing.cxx.

References sourceImage.

198  {
199  return sourceImage-> GetExtent();
200  }
int ImageSourceThing::getMax_X ( )

Gets the max value of the x-axis

Returns
x-extend_MAX

Definition at line 83 of file ImageSourceThing.cxx.

References sourceImage.

84  {
85  int x1, x2, y1, y2, z1, z2;
86  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
87  return x2;
88  }
int ImageSourceThing::getMax_Y ( )

Gets the max value of the y-axis

Returns
y-extend_MAX

Definition at line 119 of file ImageSourceThing.cxx.

References sourceImage.

120  {
121  int x1, x2, y1, y2, z1, z2;
122  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
123  return y2;
124  }
int ImageSourceThing::getMax_Z ( )

Gets the max value of the z-axis

Returns
z-extend_MAX

Definition at line 157 of file ImageSourceThing.cxx.

References sourceImage.

158  {
159  int x1, x2, y1, y2, z1, z2;
160  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
161  return z2;
162  }
int ImageSourceThing::getMin_X ( )

Gets the min value of the x-axis

Returns
x-extend_MIN

Definition at line 94 of file ImageSourceThing.cxx.

References sourceImage.

95  {
96  int x1, x2, y1, y2, z1, z2;
97  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
98  return x1;
99  }
int ImageSourceThing::getMin_Y ( )

Gets the min value of the y-axis

Returns
y-extend_MIN

Definition at line 130 of file ImageSourceThing.cxx.

References sourceImage.

131  {
132  int x1, x2, y1, y2, z1, z2;
133  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
134  return y1;
135  }
int ImageSourceThing::getMin_Z ( )

Gets the min value of the z-axis

Returns
z-extend_MIN

Definition at line 168 of file ImageSourceThing.cxx.

References sourceImage.

169  {
170  int x1, x2, y1, y2, z1, z2;
171  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
172  return z1;
173  }
int * ImageSourceThing::getRangeX ( )

Gets the range values of the x-axis

Returns
x-extend pointer to a 2 sized []

Definition at line 105 of file ImageSourceThing.cxx.

References sourceImage.

106  {
107  int x1, x2, y1, y2, z1, z2;
108  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
109  int* retVal = new int[2];
110  retVal[0]= x1;
111  retVal[1]= x2;
112  return retVal;
113  }
int * ImageSourceThing::getRangeY ( )

Gets the range values of the y-axis

Returns
y-extend pointer to a 2 sized []

Definition at line 142 of file ImageSourceThing.cxx.

References sourceImage.

143  {
144  int x1, x2, y1, y2, z1, z2;
145  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
146  int* retVal = new int[2];
147  retVal[0]= y1;
148  retVal[1]= y2;
149  return retVal;
150 
151  }
int * ImageSourceThing::getRangeZ ( )

Gets the range values of the z-axis

Returns
z-extend pointer to a 2 sized []

Definition at line 180 of file ImageSourceThing.cxx.

References sourceImage.

181  {
182  int x1, x2, y1, y2, z1, z2;
183  sourceImage ->GetExtent( x1, x2, y1, y2, z1, z2);
184  int* retVal = new int[2];
185  retVal[0]= z1;
186  retVal[1]= z2;
187  return retVal;
188 
189 
190  }
vtkImageData * ImageSourceThing::getSourceImage ( )

Definition at line 65 of file ImageSourceThing.cxx.

References sourceImage.

Referenced by KernelManagerContour::getSourceImage().

66  {
67  return sourceImage;
68  }

Here is the caller graph for this function:

void ImageSourceThing::setSourceImage ( vtkImageData *  theSource)

Definition at line 74 of file ImageSourceThing.cxx.

References sourceImage.

Referenced by ImageSourceThing().

75  {
76  sourceImage = theSource;
77  }

Here is the caller graph for this function:

Member Data Documentation

vtkImageData* ImageSourceThing::sourceImage
private

The documentation for this class was generated from the following files: