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 =========================================================================*/
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  vtkPoints *outPts,
65  vtkDataArray *inNms,
66  vtkDataArray *outNms,
67  vtkDataArray *inVrs,
68  vtkDataArray *outVrs,
69  int nOptionalVectors = 0,
70  vtkDataArray** inVrsArr = nullptr,
71  vtkDataArray** outVrsArr = nullptr) override;
72 
73 protected:
74  vtkSMPTransform ();
75  ~vtkSMPTransform () override {}
76 
77 private:
78  vtkSMPTransform (const vtkSMPTransform&) = delete;
79  void operator=(const vtkSMPTransform&) = delete;
80 };
81 
82 #endif //VTK_LEGACY_REMOVE
83 #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:54
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:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
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:33