VTK
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 =========================================================================*/
30 #ifndef vtkSMPTransform_h
31 #define vtkSMPTransform_h
32 
33 #include "vtkFiltersSMPModule.h" // For export macro
34 #include "vtkTransform.h"
35 
36 #if !defined(VTK_LEGACY_REMOVE)
37 class VTKFILTERSSMP_EXPORT vtkSMPTransform : public vtkTransform
38 {
39  public:
40  static vtkSMPTransform *New();
41  vtkTypeMacro(vtkSMPTransform, vtkTransform);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
48  void TransformPoints(vtkPoints *inPts, vtkPoints *outPts) override;
49 
54  void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms) override;
55 
60  void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs) override;
61 
67  vtkPoints *outPts,
68  vtkDataArray *inNms,
69  vtkDataArray *outNms,
70  vtkDataArray *inVrs,
71  vtkDataArray *outVrs,
72  int nOptionalVectors = 0,
73  vtkDataArray** inVrsArr = nullptr,
74  vtkDataArray** outVrsArr = nullptr) override;
75 
76 protected:
77  vtkSMPTransform ();
78  ~vtkSMPTransform () override {}
79 
80 private:
81  vtkSMPTransform (const vtkSMPTransform&) = delete;
82  void operator=(const vtkSMPTransform&) = delete;
83 };
84 
85 #endif //VTK_LEGACY_REMOVE
86 #endif
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.
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
void TransformPoints(vtkPoints *inPts, vtkPoints *outPts) override
Apply the transformation to a series of points, and append the results to outPts. ...
~vtkSMPTransform() override
virtual void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs)
Apply the transformation to a series of vectors, and append the results to outVrs.
Transform that uses the SMP framework.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
static vtkTransform * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 3D points
Definition: vtkPoints.h:39