VTK
vtkHomogeneousTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHomogeneousTransform.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkHomogeneousTransform_h
26 #define vtkHomogeneousTransform_h
27 
28 #include "vtkCommonTransformsModule.h" // For export macro
29 #include "vtkAbstractTransform.h"
30 
31 class vtkMatrix4x4;
32 
34 {
35 public:
36 
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
42  void TransformPoints(vtkPoints *inPts, vtkPoints *outPts);
43 
45 
47  virtual void TransformPointsNormalsVectors(vtkPoints *inPts,
48  vtkPoints *outPts,
49  vtkDataArray *inNms,
50  vtkDataArray *outNms,
51  vtkDataArray *inVrs,
52  vtkDataArray *outVrs);
54 
57  void GetMatrix(vtkMatrix4x4 *m);
58 
63  vtkMatrix4x4 *GetMatrix() { this->Update(); return this->Matrix; };
64 
66 
69  {
70  return static_cast<vtkHomogeneousTransform *>(this->GetInverse());
71  }
73 
75 
77  void InternalTransformPoint(const float in[3], float out[3]);
78  void InternalTransformPoint(const double in[3], double out[3]);
80 
82 
84  void InternalTransformDerivative(const float in[3], float out[3],
85  float derivative[3][3]);
86  void InternalTransformDerivative(const double in[3], double out[3],
87  double derivative[3][3]);
89 
90 protected:
93 
94  void InternalDeepCopy(vtkAbstractTransform *transform);
95 
97 
98 private:
99  vtkHomogeneousTransform(const vtkHomogeneousTransform&); // Not implemented.
100  void operator=(const vtkHomogeneousTransform&); // Not implemented.
101 };
102 
103 #endif
104 
105 
106 
107 
108 
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:38
superclass for homogeneous transformations
void PrintSelf(ostream &os, vtkIndent indent)
virtual void TransformPoints(vtkPoints *inPts, vtkPoints *outPts)
vtkAbstractTransform * GetInverse()
vtkHomogeneousTransform * GetHomogeneousInverse()
virtual void TransformPointsNormalsVectors(vtkPoints *inPts, vtkPoints *outPts, vtkDataArray *inNms, vtkDataArray *outNms, vtkDataArray *inVrs, vtkDataArray *outVrs)
virtual void InternalDeepCopy(vtkAbstractTransform *)
#define VTKCOMMONTRANSFORMS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
superclass for all geometric transformations
virtual void InternalTransformPoint(const float in[3], float out[3])=0
virtual void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3])=0
represent and manipulate 3D points
Definition: vtkPoints.h:38