VTK
vtkIdentityTransform.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkIdentityTransform.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=========================================================================*/
29#ifndef vtkIdentityTransform_h
30#define vtkIdentityTransform_h
31
32#include "vtkCommonTransformsModule.h" // For export macro
33#include "vtkLinearTransform.h"
34
35class VTKCOMMONTRANSFORMS_EXPORT vtkIdentityTransform : public vtkLinearTransform
36{
37public:
39
41 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42
47 void TransformPoints(vtkPoints *inPts, vtkPoints *outPts) VTK_OVERRIDE;
48
53 void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms) VTK_OVERRIDE;
54
59 void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs) VTK_OVERRIDE;
60
66 vtkPoints *outPts,
67 vtkDataArray *inNms,
68 vtkDataArray *outNms,
69 vtkDataArray *inVrs,
70 vtkDataArray *outVrs) VTK_OVERRIDE;
71
72 // Invert the transformation. This doesn't do anything to the
73 // identity transformation.
74 void Inverse() VTK_OVERRIDE {}
75
77
81 void InternalTransformPoint(const float in[3], float out[3]) VTK_OVERRIDE;
82 void InternalTransformPoint(const double in[3], double out[3]) VTK_OVERRIDE;
84
86
90 void InternalTransformNormal(const float in[3], float out[3]) VTK_OVERRIDE;
91 void InternalTransformNormal(const double in[3], double out[3]) VTK_OVERRIDE;
93
95
99 void InternalTransformVector(const float in[3], float out[3]) VTK_OVERRIDE;
100 void InternalTransformVector(const double in[3], double out[3]) VTK_OVERRIDE;
102
104
109 void InternalTransformDerivative(const float in[3], float out[3],
110 float derivative[3][3]) VTK_OVERRIDE;
111 void InternalTransformDerivative(const double in[3], double out[3],
112 double derivative[3][3]) VTK_OVERRIDE;
114
120
121protected:
123 ~vtkIdentityTransform() VTK_OVERRIDE;
124
125 void InternalDeepCopy(vtkAbstractTransform *t) VTK_OVERRIDE;
126
127private:
128 vtkIdentityTransform(const vtkIdentityTransform&) VTK_DELETE_FUNCTION;
129 void operator=(const vtkIdentityTransform&) VTK_DELETE_FUNCTION;
130};
131
132#endif
133
134
135
136
137
superclass for all geometric transformations
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a transform that doesn't do anything
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InternalTransformNormal(const double in[3], double out[3]) override
void TransformPoints(vtkPoints *inPts, vtkPoints *outPts) override
Apply the transformation to a series of points, and append the results to outPts.
vtkAbstractTransform * MakeTransform() override
Make a transform of the same type.
void InternalTransformVector(const double in[3], double out[3]) override
static vtkIdentityTransform * New()
void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms) override
Apply the transformation to a series of normals, and append the results to outNms.
void InternalTransformDerivative(const float in[3], float out[3], float derivative[3][3]) override
This will calculate the transformation as well as its derivative without calling Update.
void InternalTransformVector(const float in[3], float out[3]) override
This will calculate the transformation without calling Update.
void Inverse() override
Invert the transformation.
void TransformPointsNormalsVectors(vtkPoints *inPts, vtkPoints *outPts, vtkDataArray *inNms, vtkDataArray *outNms, vtkDataArray *inVrs, vtkDataArray *outVrs) override
Apply the transformation to a combination of points, normals and vectors.
void InternalTransformPoint(const float in[3], float out[3]) override
This will calculate the transformation without calling Update.
void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs) override
Apply the transformation to a series of vectors, and append the results to outVrs.
void InternalTransformNormal(const float in[3], float out[3]) override
This will calculate the transformation without calling Update.
void InternalTransformPoint(const double in[3], double out[3]) override
void InternalTransformDerivative(const double in[3], double out[3], double derivative[3][3]) override
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract superclass for linear transformations
represent and manipulate 3D points
Definition: vtkPoints.h:40