VTK
|
a cubic b-spline deformation transformation More...
#include <vtkBSplineTransform.h>
a cubic b-spline deformation transformation
vtkBSplineTransform computes a cubic b-spline transformation from a grid of b-spline coefficients.
Definition at line 51 of file vtkBSplineTransform.h.
Reimplemented from vtkWarpTransform.
Definition at line 55 of file vtkBSplineTransform.h.
vtkBSplineTransform::vtkBSplineTransform | ( | ) | [protected] |
vtkBSplineTransform::~vtkBSplineTransform | ( | ) | [protected] |
static vtkBSplineTransform* vtkBSplineTransform::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static int vtkBSplineTransform::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkWarpTransform.
virtual int vtkBSplineTransform::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkWarpTransform.
static vtkBSplineTransform* vtkBSplineTransform::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkWarpTransform.
virtual vtkObjectBase* vtkBSplineTransform::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkWarpTransform.
Reimplemented from vtkWarpTransform.
virtual void vtkBSplineTransform::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkWarpTransform.
virtual void vtkBSplineTransform::SetCoefficientConnection | ( | vtkAlgorithmOutput * | ) | [virtual] |
Set/Get the coefficient grid for the b-spline transform. The vtkBSplineTransform class will never modify the data. Note that SetCoefficientData() does not setup a pipeline connection whereas SetCoefficientConnection does.
virtual void vtkBSplineTransform::SetCoefficientData | ( | vtkImageData * | ) | [virtual] |
Set/Get the coefficient grid for the b-spline transform. The vtkBSplineTransform class will never modify the data. Note that SetCoefficientData() does not setup a pipeline connection whereas SetCoefficientConnection does.
virtual vtkImageData* vtkBSplineTransform::GetCoefficientData | ( | ) | [virtual] |
Set/Get the coefficient grid for the b-spline transform. The vtkBSplineTransform class will never modify the data. Note that SetCoefficientData() does not setup a pipeline connection whereas SetCoefficientConnection does.
virtual void vtkBSplineTransform::SetDisplacementScale | ( | double | ) | [virtual] |
Set/Get a scale to apply to the transformation.
virtual double vtkBSplineTransform::GetDisplacementScale | ( | ) | [virtual] |
Set/Get a scale to apply to the transformation.
virtual void vtkBSplineTransform::SetBorderMode | ( | int | ) | [virtual] |
Set/Get the border mode, to alter behavior at the edge of the grid. The Edge mode allows the displacement to converge to the edge coefficient past the boundary, which is similar to the behavior of the vtkGridTransform. The Zero mode allows the displacement to smoothly converge to zero two node-spacings past the boundary, which is useful when you want to create a localized transform. The ZeroAtBorder mode sacrifices smoothness to further localize the transform to just one node-spacing past the boundary.
void vtkBSplineTransform::SetBorderModeToEdge | ( | ) | [inline] |
Set/Get the border mode, to alter behavior at the edge of the grid. The Edge mode allows the displacement to converge to the edge coefficient past the boundary, which is similar to the behavior of the vtkGridTransform. The Zero mode allows the displacement to smoothly converge to zero two node-spacings past the boundary, which is useful when you want to create a localized transform. The ZeroAtBorder mode sacrifices smoothness to further localize the transform to just one node-spacing past the boundary.
Definition at line 85 of file vtkBSplineTransform.h.
void vtkBSplineTransform::SetBorderModeToZero | ( | ) | [inline] |
Set/Get the border mode, to alter behavior at the edge of the grid. The Edge mode allows the displacement to converge to the edge coefficient past the boundary, which is similar to the behavior of the vtkGridTransform. The Zero mode allows the displacement to smoothly converge to zero two node-spacings past the boundary, which is useful when you want to create a localized transform. The ZeroAtBorder mode sacrifices smoothness to further localize the transform to just one node-spacing past the boundary.
Definition at line 87 of file vtkBSplineTransform.h.
void vtkBSplineTransform::SetBorderModeToZeroAtBorder | ( | ) | [inline] |
Set/Get the border mode, to alter behavior at the edge of the grid. The Edge mode allows the displacement to converge to the edge coefficient past the boundary, which is similar to the behavior of the vtkGridTransform. The Zero mode allows the displacement to smoothly converge to zero two node-spacings past the boundary, which is useful when you want to create a localized transform. The ZeroAtBorder mode sacrifices smoothness to further localize the transform to just one node-spacing past the boundary.
Definition at line 89 of file vtkBSplineTransform.h.
virtual int vtkBSplineTransform::GetBorderMode | ( | ) | [virtual] |
Set/Get the border mode, to alter behavior at the edge of the grid. The Edge mode allows the displacement to converge to the edge coefficient past the boundary, which is similar to the behavior of the vtkGridTransform. The Zero mode allows the displacement to smoothly converge to zero two node-spacings past the boundary, which is useful when you want to create a localized transform. The ZeroAtBorder mode sacrifices smoothness to further localize the transform to just one node-spacing past the boundary.
const char* vtkBSplineTransform::GetBorderModeAsString | ( | ) |
Set/Get the border mode, to alter behavior at the edge of the grid. The Edge mode allows the displacement to converge to the edge coefficient past the boundary, which is similar to the behavior of the vtkGridTransform. The Zero mode allows the displacement to smoothly converge to zero two node-spacings past the boundary, which is useful when you want to create a localized transform. The ZeroAtBorder mode sacrifices smoothness to further localize the transform to just one node-spacing past the boundary.
vtkAbstractTransform* vtkBSplineTransform::MakeTransform | ( | ) | [virtual] |
Make another transform of the same type.
Implements vtkAbstractTransform.
unsigned long vtkBSplineTransform::GetMTime | ( | ) | [virtual] |
Get the MTime.
Reimplemented from vtkAbstractTransform.
void vtkBSplineTransform::InternalUpdate | ( | ) | [protected, virtual] |
Update the displacement grid.
Reimplemented from vtkAbstractTransform.
void vtkBSplineTransform::InternalDeepCopy | ( | vtkAbstractTransform * | transform | ) | [protected, virtual] |
Copy this transform from another of the same type.
Reimplemented from vtkAbstractTransform.
void vtkBSplineTransform::ForwardTransformPoint | ( | const float | in[3], |
float | out[3] | ||
) | [protected, virtual] |
Internal functions for calculating the transformation.
Implements vtkWarpTransform.
void vtkBSplineTransform::ForwardTransformPoint | ( | const double | in[3], |
double | out[3] | ||
) | [protected, virtual] |
Internal functions for calculating the transformation.
Implements vtkWarpTransform.
void vtkBSplineTransform::ForwardTransformDerivative | ( | const float | in[3], |
float | out[3], | ||
float | derivative[3][3] | ||
) | [protected, virtual] |
Calculate the forward transform as well as the derivative.
Implements vtkWarpTransform.
void vtkBSplineTransform::ForwardTransformDerivative | ( | const double | in[3], |
double | out[3], | ||
double | derivative[3][3] | ||
) | [protected, virtual] |
Calculate the forward transform as well as the derivative.
Implements vtkWarpTransform.
void vtkBSplineTransform::InverseTransformPoint | ( | const float | in[3], |
float | out[3] | ||
) | [protected, virtual] |
If the InverseFlag is set to 1, then a call to InternalTransformPoint results in a call to InverseTransformPoint. The inverse transformation is calculated from using Newton's method.
Reimplemented from vtkWarpTransform.
void vtkBSplineTransform::InverseTransformPoint | ( | const double | in[3], |
double | out[3] | ||
) | [protected, virtual] |
If the InverseFlag is set to 1, then a call to InternalTransformPoint results in a call to InverseTransformPoint. The inverse transformation is calculated from using Newton's method.
Reimplemented from vtkWarpTransform.
void vtkBSplineTransform::InverseTransformDerivative | ( | const float | in[3], |
float | out[3], | ||
float | derivative[3][3] | ||
) | [protected, virtual] |
Calculate the inverse transform as well as the derivative of the forward transform (that's correct: the derivative of the forward transform, not of the inverse transform)
Reimplemented from vtkWarpTransform.
void vtkBSplineTransform::InverseTransformDerivative | ( | const double | in[3], |
double | out[3], | ||
double | derivative[3][3] | ||
) | [protected, virtual] |
Calculate the inverse transform as well as the derivative of the forward transform (that's correct: the derivative of the forward transform, not of the inverse transform)
Reimplemented from vtkWarpTransform.
void(* vtkBSplineTransform::CalculateSpline)(const double point[3], double displacement[3], double derivatives[3][3], void *gridPtr, int inExt[6], vtkIdType inInc[3], int borderMode) [protected] |
Definition at line 131 of file vtkBSplineTransform.h.
double vtkBSplineTransform::DisplacementScale [protected] |
Definition at line 137 of file vtkBSplineTransform.h.
int vtkBSplineTransform::BorderMode [protected] |
Definition at line 138 of file vtkBSplineTransform.h.
void* vtkBSplineTransform::GridPointer [protected] |
Definition at line 140 of file vtkBSplineTransform.h.
double vtkBSplineTransform::GridSpacing[3] [protected] |
Definition at line 141 of file vtkBSplineTransform.h.
double vtkBSplineTransform::GridOrigin[3] [protected] |
Definition at line 142 of file vtkBSplineTransform.h.
int vtkBSplineTransform::GridExtent[6] [protected] |
Definition at line 143 of file vtkBSplineTransform.h.
vtkIdType vtkBSplineTransform::GridIncrements[3] [protected] |
Definition at line 144 of file vtkBSplineTransform.h.