VTK  9.0.1
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 =========================================================================*/
38 #ifndef vtkTransformFilter_h
39 #define vtkTransformFilter_h
40 
41 #include "vtkFiltersGeneralModule.h" // For export macro
42 #include "vtkPointSetAlgorithm.h"
43 
45 
46 class VTKFILTERSGENERAL_EXPORT vtkTransformFilter : public vtkPointSetAlgorithm
47 {
48 public:
49  static vtkTransformFilter* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
56  vtkMTimeType GetMTime() override;
57 
59 
62  virtual void SetTransform(vtkAbstractTransform*);
63  vtkGetObjectMacro(Transform, vtkAbstractTransform);
65 
67 
69 
74  vtkSetMacro(OutputPointsPrecision, int);
75  vtkGetMacro(OutputPointsPrecision, int);
77 
79 
84  vtkSetMacro(TransformAllInputVectors, bool);
85  vtkGetMacro(TransformAllInputVectors, bool);
86  vtkBooleanMacro(TransformAllInputVectors, bool);
88 
89 protected:
91  ~vtkTransformFilter() override;
92 
93  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
94  vtkInformationVector* outputVector) override;
96 
97  vtkDataArray* CreateNewDataArray(vtkDataArray* input = nullptr);
98 
102 
103 private:
104  vtkTransformFilter(const vtkTransformFilter&) = delete;
105  void operator=(const vtkTransformFilter&) = delete;
106 };
107 
108 #endif
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:50
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTransformFilter::TransformAllInputVectors
bool TransformAllInputVectors
Definition: vtkTransformFilter.h:101
vtkPointSetAlgorithm.h
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
vtkX3D::Transform
@ Transform
Definition: vtkX3D.h:47
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:131
vtkPointSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTransformFilter::Transform
vtkAbstractTransform * Transform
Definition: vtkTransformFilter.h:99
vtkTransformFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkTransformFilter.h:100
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPointSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkTransformFilter
transform points and associated normals and vectors
Definition: vtkTransformFilter.h:46
vtkPointSetAlgorithm::New
static vtkPointSetAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
vtkPointSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.