30 #ifndef __vtkGridTransform_h
31 #define __vtkGridTransform_h
33 #include "vtkFiltersHybridModule.h"
37 class vtkGridTransformConnectionHolder;
40 #define VTK_GRID_NEAREST VTK_NEAREST_INTERPOLATION
41 #define VTK_GRID_LINEAR VTK_LINEAR_INTERPOLATION
42 #define VTK_GRID_CUBIC VTK_CUBIC_INTERPOLATION
65 vtkSetMacro(DisplacementScale,
double);
66 vtkGetMacro(DisplacementScale,
double);
72 vtkSetMacro(DisplacementShift,
double);
73 vtkGetMacro(DisplacementShift,
double);
79 void SetInterpolationMode(
int mode);
80 vtkGetMacro(InterpolationMode,
int);
81 void SetInterpolationModeToNearestNeighbor()
83 void SetInterpolationModeToLinear()
85 void SetInterpolationModeToCubic()
87 const char *GetInterpolationModeAsString();
113 float derivative[3][3]);
115 double derivative[3][3]);
121 float derivative[3][3]);
123 double derivative[3][3]);
126 void (*InterpolationFunction)(
double point[3],
double displacement[3],
127 double derivatives[3][3],
128 void *gridPtr,
int gridType,
137 double GridSpacing[3];
138 double GridOrigin[3];
146 vtkGridTransformConnectionHolder* ConnectionHolder;
157 return "NearestNeighbor";