dox/Common/vtkHomogeneousTransform.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00029
#ifndef __vtkHomogeneousTransform_h
00030
#define __vtkHomogeneousTransform_h
00031
00032
#include "vtkAbstractTransform.h"
00033
00034
class vtkMatrix4x4;
00035
00036 class VTK_COMMON_EXPORT vtkHomogeneousTransform :
public vtkAbstractTransform
00037 {
00038
public:
00039
00040 vtkTypeRevisionMacro(vtkHomogeneousTransform,
vtkAbstractTransform);
00041
void PrintSelf(ostream& os,
vtkIndent indent);
00042
00045
void TransformPoints(
vtkPoints *inPts,
vtkPoints *outPts);
00046
00048
00050
virtual void TransformPointsNormalsVectors(
vtkPoints *inPts,
00051
vtkPoints *outPts,
00052
vtkDataArray *inNms,
00053
vtkDataArray *outNms,
00054
vtkDataArray *inVrs,
00055
vtkDataArray *outVrs);
00057
00060
void GetMatrix(
vtkMatrix4x4 *m);
00061
00066 vtkMatrix4x4 *GetMatrix() { this->
Update();
return this->Matrix; };
00067
00069
00071 vtkHomogeneousTransform *GetHomogeneousInverse() {
00072
return (vtkHomogeneousTransform *)this->
GetInverse(); };
00074
00076
00078
void InternalTransformPoint(
const float in[3],
float out[3]);
00079
void InternalTransformPoint(
const double in[3],
double out[3]);
00081
00083
00085
void InternalTransformDerivative(
const float in[3],
float out[3],
00086
float derivative[3][3]);
00087
void InternalTransformDerivative(
const double in[3],
double out[3],
00088
double derivative[3][3]);
00090
00091
protected:
00092 vtkHomogeneousTransform();
00093 ~vtkHomogeneousTransform();
00094
00095
void InternalDeepCopy(
vtkAbstractTransform *transform);
00096
00097 vtkMatrix4x4 *Matrix;
00098
00099
private:
00100 vtkHomogeneousTransform(
const vtkHomogeneousTransform&);
00101
void operator=(
const vtkHomogeneousTransform&);
00102 };
00103
00104
#endif
00105
00106
00107
00108
00109