VTK  9.0.3
vtkSMPTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSMPTransform.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 =========================================================================*/
27 #ifndef vtkSMPTransform_h
28 #define vtkSMPTransform_h
29 
30 #include "vtkFiltersSMPModule.h" // For export macro
31 #include "vtkTransform.h"
32 
33 #if !defined(VTK_LEGACY_REMOVE)
34 class VTKFILTERSSMP_EXPORT vtkSMPTransform : public vtkTransform
35 {
36 public:
37  static vtkSMPTransform* New();
38  vtkTypeMacro(vtkSMPTransform, vtkTransform);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  void TransformPoints(vtkPoints* inPts, vtkPoints* outPts) override;
46 
51  void TransformNormals(vtkDataArray* inNms, vtkDataArray* outNms) override;
52 
57  void TransformVectors(vtkDataArray* inVrs, vtkDataArray* outVrs) override;
58 
64  vtkDataArray* outNms, vtkDataArray* inVrs, vtkDataArray* outVrs, int nOptionalVectors = 0,
65  vtkDataArray** inVrsArr = nullptr, vtkDataArray** outVrsArr = nullptr) override;
66 
67 protected:
69  ~vtkSMPTransform() override {}
70 
71 private:
72  vtkSMPTransform(const vtkSMPTransform&) = delete;
73  void operator=(const vtkSMPTransform&) = delete;
74 };
75 
76 #endif // VTK_LEGACY_REMOVE
77 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
a simple class to control print indentation
Definition: vtkIndent.h:34
represent and manipulate 3D points
Definition: vtkPoints.h:34
Transform that uses the SMP framework.
void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs) override
Apply the transformation to a series of vectors, and append the results to outVrs.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSMPTransform * New()
void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms) override
Apply the transformation to a series of normals, and append the results to outNms.
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 TransformPoints(vtkPoints *inPts, vtkPoints *outPts) override
Apply the transformation to a series of points, and append the results to outPts.
~vtkSMPTransform() override
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:55