VTK  9.3.20240425
vtkIdentityTransform.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
17#ifndef vtkIdentityTransform_h
18#define vtkIdentityTransform_h
19
20#include "vtkCommonTransformsModule.h" // For export macro
21#include "vtkLinearTransform.h"
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKCOMMONTRANSFORMS_EXPORT vtkIdentityTransform : public vtkLinearTransform
25{
26public:
28
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
36 void TransformPoints(vtkPoints* inPts, vtkPoints* outPts) override;
37
42 void TransformNormals(vtkDataArray* inNms, vtkDataArray* outNms) override;
43
48 void TransformVectors(vtkDataArray* inVrs, vtkDataArray* outVrs) override;
49
55 vtkDataArray* outNms, vtkDataArray* inVrs, vtkDataArray* outVrs, int nOptionalVectors = 0,
56 vtkDataArray** inVrsArr = nullptr, vtkDataArray** outVrsArr = nullptr) override;
57
58 // Invert the transformation. This doesn't do anything to the
59 // identity transformation.
60 void Inverse() override {}
61
63
67 void InternalTransformPoint(const float in[3], float out[3]) override;
68 void InternalTransformPoint(const double in[3], double out[3]) override;
70
72
76 void InternalTransformNormal(const float in[3], float out[3]) override;
77 void InternalTransformNormal(const double in[3], double out[3]) override;
79
81
85 void InternalTransformVector(const float in[3], float out[3]) override;
86 void InternalTransformVector(const double in[3], double out[3]) override;
88
90
96 const float in[3], float out[3], float derivative[3][3]) override;
98 const double in[3], double out[3], double derivative[3][3]) override;
100
106
107protected:
110
112
113private:
115 void operator=(const vtkIdentityTransform&) = delete;
116};
117
118VTK_ABI_NAMESPACE_END
119#endif
superclass for all geometric transformations
abstract superclass for arrays of numeric data
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
This will calculate the transformation without calling Update.
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
This will calculate the transformation without calling Update.
static vtkIdentityTransform * New()
void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms) override
Apply the transformation to a series of normals, and append the results to outNms.
~vtkIdentityTransform() override
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 TransformPointsNormalsVectors(vtkPoints *inPts, vtkPoints *outPts, vtkDataArray *inNms, vtkDataArray *outNms, vtkDataArray *inVrs, vtkDataArray *outVrs, int nOptionalVectors=0, vtkDataArray **inVrsArr=nullptr, vtkDataArray **outVrsArr=nullptr) override
Apply the transformation to a combination of points, normals and vectors.
void Inverse() override
Invert the transformation.
void InternalDeepCopy(vtkAbstractTransform *t) override
Perform any subclass-specific DeepCopy.
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
This will calculate the transformation without calling Update.
void InternalTransformDerivative(const double in[3], double out[3], double derivative[3][3]) override
This will calculate the transformation as well as its derivative without calling Update.
a simple class to control print indentation
Definition vtkIndent.h:108
abstract superclass for linear transformations
represent and manipulate 3D points
Definition vtkPoints.h:139