VTK  9.2.6
vtkTransformFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTransformFilter.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 =========================================================================*/
44 #ifndef vtkTransformFilter_h
45 #define vtkTransformFilter_h
46 
47 #include "vtkFiltersGeneralModule.h" // For export macro
48 #include "vtkPointSetAlgorithm.h"
49 
51 
52 class VTKFILTERSGENERAL_EXPORT vtkTransformFilter : public vtkPointSetAlgorithm
53 {
54 public:
56 
60  static vtkTransformFilter* New();
62  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
68  vtkMTimeType GetMTime() override;
69 
71 
74  virtual void SetTransform(vtkAbstractTransform*);
75  vtkGetObjectMacro(Transform, vtkAbstractTransform);
77 
79 
84  vtkSetMacro(OutputPointsPrecision, int);
85  vtkGetMacro(OutputPointsPrecision, int);
87 
89 
95  vtkSetMacro(TransformAllInputVectors, bool);
96  vtkGetMacro(TransformAllInputVectors, bool);
97  vtkBooleanMacro(TransformAllInputVectors, bool);
99 
100 protected:
102  ~vtkTransformFilter() override;
103 
104  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector) override;
107 
108  // Specifies that the filter only takes input dataset types of vtkPointSet, vtkImageData,
109  // and vtkRectilinearGrid.
110  int FillInputPortInformation(int port, vtkInformation* info) override;
111 
112  vtkDataArray* CreateNewDataArray(vtkDataArray* input = nullptr);
113 
117 
118 private:
119  vtkTransformFilter(const vtkTransformFilter&) = delete;
120  void operator=(const vtkTransformFilter&) = delete;
121 };
122 
123 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
superclass for all geometric transformations
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce output of the same type as input.
vtkAbstractTransform * Transform
static vtkPointSetAlgorithm * New()
transform points and associated normals and vectors
Store zero or more vtkInformation instances.