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 
48  vtkPoints *outPts,
49  vtkDataArray *inNms,
50  vtkDataArray *outNms,
51  vtkDataArray *inVrs,
52  vtkDataArray *outVrs);
54 
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 
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 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkHomogeneousTransform::InternalDeepCopy
void InternalDeepCopy(vtkAbstractTransform *transform)
vtkHomogeneousTransform::InternalTransformPoint
void InternalTransformPoint(const double in[3], double out[3])
vtkHomogeneousTransform
superclass for homogeneous transformations
Definition: vtkHomogeneousTransform.h:34
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:50
vtkgl::m
const GLfloat * m
Definition: vtkgl.h:18169
vtkHomogeneousTransform::GetHomogeneousInverse
vtkHomogeneousTransform * GetHomogeneousInverse()
Definition: vtkHomogeneousTransform.h:68
vtkHomogeneousTransform::GetMatrix
vtkMatrix4x4 * GetMatrix()
Definition: vtkHomogeneousTransform.h:63
vtkAbstractTransform.h
vtkHomogeneousTransform::TransformPointsNormalsVectors
virtual void TransformPointsNormalsVectors(vtkPoints *inPts, vtkPoints *outPts, vtkDataArray *inNms, vtkDataArray *outNms, vtkDataArray *inVrs, vtkDataArray *outVrs)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkAbstractTransform::Update
void Update()
vtkAbstractTransform::GetInverse
vtkAbstractTransform * GetInverse()
vtkHomogeneousTransform::vtkHomogeneousTransform
vtkHomogeneousTransform()
vtkCommonTransformsModule.h
VTKCOMMONTRANSFORMS_EXPORT
#define VTKCOMMONTRANSFORMS_EXPORT
Definition: vtkCommonTransformsModule.h:15
vtkHomogeneousTransform::Matrix
vtkMatrix4x4 * Matrix
Definition: vtkHomogeneousTransform.h:96
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:39
vtkHomogeneousTransform::TransformPoints
void TransformPoints(vtkPoints *inPts, vtkPoints *outPts)
vtkHomogeneousTransform::~vtkHomogeneousTransform
~vtkHomogeneousTransform()
vtkHomogeneousTransform::InternalTransformDerivative
void InternalTransformDerivative(const double in[3], double out[3], double derivative[3][3])
vtkHomogeneousTransform::InternalTransformPoint
void InternalTransformPoint(const float in[3], float out[3])
vtkHomogeneousTransform::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::transform
GLuint GLenum GLenum transform
Definition: vtkgl.h:16451
vtkHomogeneousTransform::GetMatrix
void GetMatrix(vtkMatrix4x4 *m)
vtkHomogeneousTransform::InternalTransformDerivative
void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3])