00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00053 #ifndef __vtkHomogeneousTransform_h
00054 #define __vtkHomogeneousTransform_h
00055
00056 #include "vtkAbstractTransform.h"
00057 #include "vtkMatrix4x4.h"
00058
00059 class VTK_EXPORT vtkHomogeneousTransform : public vtkAbstractTransform
00060 {
00061 public:
00062
00063 vtkTypeMacro(vtkHomogeneousTransform,vtkAbstractTransform);
00064 void PrintSelf(ostream& os, vtkIndent indent);
00065
00068 void TransformPoints(vtkPoints *inPts, vtkPoints *outPts);
00069
00072 void TransformPointsNormalsVectors(vtkPoints *inPts,
00073 vtkPoints *outPts,
00074 vtkNormals *inNms,
00075 vtkNormals *outNms,
00076 vtkVectors *inVrs,
00077 vtkVectors *outVrs);
00078
00081 void GetMatrix(vtkMatrix4x4 *m);
00082
00087 vtkMatrix4x4 *GetMatrix() { this->Update(); return this->Matrix; };
00088
00091 vtkHomogeneousTransform *GetHomogeneousInverse() {
00092 return (vtkHomogeneousTransform *)this->GetInverse(); };
00093
00096 void InternalTransformPoint(const float in[3], float out[3]);
00097 void InternalTransformPoint(const double in[3], double out[3]);
00098
00101 void InternalTransformDerivative(const float in[3], float out[3],
00102 float derivative[3][3]);
00103 void InternalTransformDerivative(const double in[3], double out[3],
00104 double derivative[3][3]);
00105
00106 #ifndef VTK_REMOVE_LEGACY_CODE
00107
00109 vtkMatrix4x4 *GetMatrixPointer()
00110 {VTK_LEGACY_METHOD(GetMatrix,"3.2"); return this->GetMatrix(); }
00111 #endif
00112
00113 protected:
00114 vtkHomogeneousTransform();
00115 ~vtkHomogeneousTransform();
00116 vtkHomogeneousTransform(const vtkHomogeneousTransform&) {};
00117 void operator=(const vtkHomogeneousTransform&) {};
00118
00119 void InternalDeepCopy(vtkAbstractTransform *transform);
00120
00121 vtkMatrix4x4 *Matrix;
00122 };
00123
00124 #endif
00125
00126
00127
00128
00129