25 #ifndef vtkWarpTransform_h
26 #define vtkWarpTransform_h
28 #include "vtkCommonTransformsModule.h"
52 vtkGetMacro(InverseFlag,
int);
61 vtkGetMacro(InverseTolerance,
double);
73 vtkGetMacro(InverseIterations,
int);
81 void InternalTransformPoint(const
float in[3],
float out[3]) VTK_OVERRIDE;
82 void InternalTransformPoint(const
double in[3],
double out[3]) VTK_OVERRIDE;
91 void InternalTransformDerivative(const
float in[3],
float out[3],
92 float derivative[3][3]) VTK_OVERRIDE;
93 void InternalTransformDerivative(const
double in[3],
double out[3],
94 double derivative[3][3]) VTK_OVERRIDE;
104 void TemplateTransformPoint(const
float in[3],
float out[3]) {
105 this->ForwardTransformPoint(in,out); };
107 this->ForwardTransformPoint(in,out); };
109 float derivative[3][3]) {
110 this->ForwardTransformDerivative(in,out,derivative); };
112 double derivative[3][3]) {
113 this->ForwardTransformDerivative(in,out,derivative); };
115 this->InverseTransformPoint(in,out); };
117 this->InverseTransformPoint(in,out); };
119 float derivative[3][3]) {
120 this->InverseTransformDerivative(in,out,derivative); };
122 double derivative[3][3]) {
123 this->InverseTransformDerivative(in,out,derivative); };
135 virtual
void ForwardTransformPoint(const
float in[3],
float out[3]) = 0;
136 virtual
void ForwardTransformPoint(const
double in[3],
double out[3]) = 0;
143 virtual
void ForwardTransformDerivative(const
float in[3],
float out[3],
144 float derivative[3][3]) = 0;
145 virtual
void ForwardTransformDerivative(const
double in[3],
double out[3],
146 double derivative[3][3]) = 0;
155 virtual
void InverseTransformPoint(const
float in[3],
float out[3]);
156 virtual
void InverseTransformPoint(const
double in[3],
double out[3]);
165 virtual
void InverseTransformDerivative(const
float in[3],
float out[3],
166 float derivative[3][3]);
167 virtual
void InverseTransformDerivative(const
double in[3],
double out[3],
168 double derivative[3][3]);
172 int InverseIterations;
173 double InverseTolerance;
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.