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 
35 class VTKCOMMONTRANSFORMS_EXPORT vtkIdentityTransform : public vtkLinearTransform
36 {
37 public:
38  static vtkIdentityTransform *New();
39 
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  void TransformPoints(vtkPoints *inPts, vtkPoints *outPts) override;
48 
53  void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms) override;
54 
59  void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs) override;
60 
66  vtkPoints *outPts,
67  vtkDataArray *inNms,
68  vtkDataArray *outNms,
69  vtkDataArray *inVrs,
70  vtkDataArray *outVrs,
71  int nOptionalVectors = 0,
72  vtkDataArray** inVrsArr = nullptr,
73  vtkDataArray** outVrsArr = nullptr) override;
74 
75  // Invert the transformation. This doesn't do anything to the
76  // identity transformation.
77  void Inverse() override {}
78 
80 
84  void InternalTransformPoint(const float in[3], float out[3]) override;
85  void InternalTransformPoint(const double in[3], double out[3]) override;
87 
89 
93  void InternalTransformNormal(const float in[3], float out[3]) override;
94  void InternalTransformNormal(const double in[3], double out[3]) override;
96 
98 
102  void InternalTransformVector(const float in[3], float out[3]) override;
103  void InternalTransformVector(const double in[3], double out[3]) override;
105 
107 
112  void InternalTransformDerivative(const float in[3], float out[3],
113  float derivative[3][3]) override;
114  void InternalTransformDerivative(const double in[3], double out[3],
115  double derivative[3][3]) override;
117 
123 
124 protected:
126  ~vtkIdentityTransform() override;
127 
128  void InternalDeepCopy(vtkAbstractTransform *t) override;
129 
130 private:
132  void operator=(const vtkIdentityTransform&) = delete;
133 };
134 
135 #endif
136 
137 
138 
139 
140 
void InternalTransformPoint(const float in[3], float out[3]) override
This will calculate the transformation without calling Update.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
virtual void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms)
Apply the transformation to a series of normals, and append the results to outNms.
virtual vtkAbstractTransform * MakeTransform()=0
Make another transform of the same type.
virtual void InternalTransformVector(const float in[3], float out[3])
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. ...
virtual void InternalTransformNormal(const float in[3], float out[3])
This will calculate the transformation without calling Update.
virtual void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs)
Apply the transformation to a series of vectors, and append the results to outVrs.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
superclass for all geometric transformations
a transform that doesn't do anything
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 InternalDeepCopy(vtkAbstractTransform *transform) override
Perform any subclass-specific DeepCopy.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void Inverse() override
Invert the transformation.
represent and manipulate 3D points
Definition: vtkPoints.h:39
abstract superclass for linear transformations