57 #ifndef __vtkImageReslice_h
58 #define __vtkImageReslice_h
64 #define VTK_RESLICE_NEAREST VTK_NEAREST_INTERPOLATION
65 #define VTK_RESLICE_LINEAR VTK_LINEAR_INTERPOLATION
66 #define VTK_RESLICE_CUBIC VTK_CUBIC_INTERPOLATION
105 void SetResliceAxesDirectionCosines(
double x0,
double x1,
double x2,
106 double y0,
double y1,
double y2,
107 double z0,
double z1,
double z2);
108 void SetResliceAxesDirectionCosines(
const double x[3],
111 this->SetResliceAxesDirectionCosines(x[0], x[1], x[2],
113 z[0], z[1], z[2]); };
115 this->SetResliceAxesDirectionCosines(xyz[0], xyz[1], xyz[2],
116 xyz[3], xyz[4], xyz[5],
117 xyz[6], xyz[7], xyz[8]); };
118 void GetResliceAxesDirectionCosines(
double x[3],
double y[3],
double z[3]);
120 this->GetResliceAxesDirectionCosines(&xyz[0], &xyz[3], &xyz[6]); };
122 this->GetResliceAxesDirectionCosines(this->ResliceAxesDirectionCosines);
123 return this->ResliceAxesDirectionCosines; };
130 void SetResliceAxesOrigin(
double x,
double y,
double z);
132 this->SetResliceAxesOrigin(xyz[0], xyz[1], xyz[2]); };
133 void GetResliceAxesOrigin(
double xyz[3]);
135 this->GetResliceAxesOrigin(this->ResliceAxesOrigin);
136 return this->ResliceAxesOrigin; };
167 vtkSetMacro(TransformInputSampling,
int);
168 vtkBooleanMacro(TransformInputSampling,
int);
169 vtkGetMacro(TransformInputSampling,
int);
176 vtkSetMacro(AutoCropOutput,
int);
177 vtkBooleanMacro(AutoCropOutput,
int);
178 vtkGetMacro(AutoCropOutput,
int);
183 vtkSetMacro(Wrap,
int);
184 vtkGetMacro(Wrap,
int);
185 vtkBooleanMacro(Wrap,
int);
191 vtkSetMacro(Mirror,
int);
192 vtkGetMacro(Mirror,
int);
193 vtkBooleanMacro(Mirror,
int);
204 vtkSetMacro(Border,
int);
205 vtkGetMacro(Border,
int);
206 vtkBooleanMacro(Border,
int);
211 vtkSetClampMacro(InterpolationMode,
int,
213 vtkGetMacro(InterpolationMode,
int);
220 virtual const char *GetInterpolationModeAsString();
233 vtkGetMacro(SlabMode,
int);
242 virtual const char *GetSlabModeAsString();
247 vtkSetMacro(SlabNumberOfSlices,
int);
248 vtkGetMacro(SlabNumberOfSlices,
int);
255 vtkSetMacro(SlabTrapezoidIntegration,
int);
256 vtkBooleanMacro(SlabTrapezoidIntegration,
int);
257 vtkGetMacro(SlabTrapezoidIntegration,
int);
263 vtkSetMacro(Optimization,
int);
264 vtkGetMacro(Optimization,
int);
265 vtkBooleanMacro(Optimization,
int);
270 vtkSetVector4Macro(BackgroundColor,
double);
271 vtkGetVector4Macro(BackgroundColor,
double);
283 virtual void SetOutputSpacing(
double x,
double y,
double z);
285 this->SetOutputSpacing(a[0], a[1], a[2]); };
286 vtkGetVector3Macro(OutputSpacing,
double);
287 void SetOutputSpacingToDefault();
293 virtual void SetOutputOrigin(
double x,
double y,
double z);
295 this->SetOutputOrigin(a[0], a[1], a[2]); };
296 vtkGetVector3Macro(OutputOrigin,
double);
297 void SetOutputOriginToDefault();
303 virtual void SetOutputExtent(
int a,
int b,
int c,
int d,
int e,
int f);
305 this->SetOutputExtent(a[0], a[1], a[2], a[3], a[4], a[5]); };
306 vtkGetVector6Macro(OutputExtent,
int);
307 void SetOutputExtentToDefault();
317 vtkSetMacro(OutputDimensionality,
int);
318 vtkGetMacro(OutputDimensionality,
int);
335 if (t && !this->GetInterpolate()) {
336 this->SetInterpolationModeToLinear(); }
337 else if (!t && this->GetInterpolate()) {
338 this->SetInterpolationModeToNearestNeighbor(); } };
340 this->SetInterpolate(1); };
342 this->SetInterpolate(0); };
358 vtkSetMacro(GenerateStencilOutput,
int);
359 vtkGetMacro(GenerateStencilOutput,
int);
360 vtkBooleanMacro(GenerateStencilOutput,
int);
376 double ResliceAxesDirectionCosines[9];
377 double ResliceAxesOrigin[3];
389 double BackgroundColor[4];
390 double OutputOrigin[3];
391 double OutputSpacing[3];
413 virtual int ConvertScalarInfo(
int &scalarType,
int &numComponents);
422 virtual void ConvertScalars(
void *inPtr,
void *outPtr,
423 int inputType,
int inputNumComponents,
424 int count,
int idX,
int idY,
int idZ,
428 void ConvertScalarsBase(
void *inPtr,
void *outPtr,
429 int inputType,
int inputNumComponents,
430 int count,
int idX,
int idY,
int idZ,
int threadId) {
431 this->ConvertScalars(inPtr, outPtr, inputType, inputNumComponents,
432 count, idX, idY, idZ, threadId); }
434 void GetAutoCroppedOutputBounds(
vtkInformation *inInfo,
double bounds[6]);
454 return this->OptimizedTransform; };