VTK  9.0.1
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 =========================================================================*/
26 #ifndef vtkIdentityTransform_h
27 #define vtkIdentityTransform_h
28 
29 #include "vtkCommonTransformsModule.h" // For export macro
30 #include "vtkLinearTransform.h"
31 
32 class VTKCOMMONTRANSFORMS_EXPORT vtkIdentityTransform : public vtkLinearTransform
33 {
34 public:
35  static vtkIdentityTransform* New();
36 
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44  void TransformPoints(vtkPoints* inPts, vtkPoints* outPts) override;
45 
50  void TransformNormals(vtkDataArray* inNms, vtkDataArray* outNms) override;
51 
56  void TransformVectors(vtkDataArray* inVrs, vtkDataArray* outVrs) override;
57 
63  vtkDataArray* outNms, vtkDataArray* inVrs, vtkDataArray* outVrs, int nOptionalVectors = 0,
64  vtkDataArray** inVrsArr = nullptr, vtkDataArray** outVrsArr = nullptr) override;
65 
66  // Invert the transformation. This doesn't do anything to the
67  // identity transformation.
68  void Inverse() override {}
69 
71 
75  void InternalTransformPoint(const float in[3], float out[3]) override;
76  void InternalTransformPoint(const double in[3], double out[3]) override;
78 
80 
84  void InternalTransformNormal(const float in[3], float out[3]) override;
85  void InternalTransformNormal(const double in[3], double out[3]) override;
87 
89 
93  void InternalTransformVector(const float in[3], float out[3]) override;
94  void InternalTransformVector(const double in[3], double out[3]) override;
96 
98 
104  const float in[3], float out[3], float derivative[3][3]) override;
106  const double in[3], double out[3], double derivative[3][3]) override;
108 
114 
115 protected:
117  ~vtkIdentityTransform() override;
118 
119  void InternalDeepCopy(vtkAbstractTransform* t) override;
120 
121 private:
123  void operator=(const vtkIdentityTransform&) = delete;
124 };
125 
126 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkIdentityTransform
a transform that doesn't do anything
Definition: vtkIdentityTransform.h:32
vtkLinearTransform.h
vtkHomogeneousTransform::InternalDeepCopy
void InternalDeepCopy(vtkAbstractTransform *transform) override
Perform any subclass-specific DeepCopy.
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:50
vtkLinearTransform::TransformPoints
void TransformPoints(vtkPoints *inPts, vtkPoints *outPts) override
Apply the transformation to a series of points, and append the results to outPts.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkIdentityTransform::Inverse
void Inverse() override
Invert the transformation.
Definition: vtkIdentityTransform.h:68
vtkLinearTransform::InternalTransformVector
virtual void InternalTransformVector(const float in[3], float out[3])
This will calculate the transformation without calling Update.
vtkLinearTransform::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
vtkLinearTransform::TransformNormals
virtual void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms)
Apply the transformation to a series of normals, and append the results to outNms.
vtkLinearTransform
abstract superclass for linear transformations
Definition: vtkLinearTransform.h:31
vtkLinearTransform::TransformVectors
virtual void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs)
Apply the transformation to a series of vectors, and append the results to outVrs.
vtkLinearTransform::InternalTransformDerivative
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.
vtkLinearTransform::InternalTransformPoint
void InternalTransformPoint(const float in[3], float out[3]) override
This will calculate the transformation without calling Update.
vtkLinearTransform::InternalTransformNormal
virtual void InternalTransformNormal(const float in[3], float out[3])
This will calculate the transformation without calling Update.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkAbstractTransform::MakeTransform
virtual vtkAbstractTransform * MakeTransform()=0
Make another transform of the same type.
vtkLinearTransform::TransformPointsNormalsVectors
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.