VTK: Filters/General/vtkTransformFilter.h Source File

| VTK 9.3.1

vtkTransformFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
41 #ifndef vtkTransformFilter_h
42 #define vtkTransformFilter_h
43
44 #include "vtkFiltersGeneralModule.h" // For export macro
45 #include "vtkPointSetAlgorithm.h"
46
47 VTK_ABI_NAMESPACE_BEGIN
48 class vtkAbstractTransform;
49
50 class VTKFILTERSGENERAL_EXPORT vtkTransformFilter : public vtkPointSetAlgorithm
51 {
52 public:
54
58 static vtkTransformFilter* New();
59 vtkTypeMacro(vtkTransformFilter, vtkPointSetAlgorithm);
60 void PrintSelf(ostream& os, vtkIndent indent) override;
62
66 vtkMTimeType GetMTime() override;
67
69
72 virtual void SetTransform(vtkAbstractTransform*);
73 vtkGetObjectMacro(Transform, vtkAbstractTransform);
75
77
82 vtkSetMacro(OutputPointsPrecision, int);
83 vtkGetMacro(OutputPointsPrecision, int);
85
87
93 vtkSetMacro(TransformAllInputVectors, bool);
94 vtkGetMacro(TransformAllInputVectors, bool);
95 vtkBooleanMacro(TransformAllInputVectors, bool);
97
98 protected:
99 vtkTransformFilter();
100 ~vtkTransformFilter() override;
101
102 int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
103 vtkInformationVector* outputVector) override;
104 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
105
106 // Specifies that the filter only takes input dataset types of vtkPointSet, vtkImageData,
107 // and vtkRectilinearGrid.
108 int FillInputPortInformation(int port, vtkInformation* info) override;
109
110 vtkDataArray* CreateNewDataArray(vtkDataArray* input = nullptr);
111
112 vtkAbstractTransform* Transform;
113 int OutputPointsPrecision;
114 bool TransformAllInputVectors;
115
116 private:
117 vtkTransformFilter(const vtkTransformFilter&) = delete;
118 void operator=(const vtkTransformFilter&) = delete;
119 };
120
121 VTK_ABI_NAMESPACE_END
122 #endif
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:39
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:33
vtkTransformFilter
transform points and associated normals and vectors
Definition: vtkTransformFilter.h:51
vtkTransformFilter::~vtkTransformFilter
~vtkTransformFilter() override
vtkTransformFilter::Transform
vtkAbstractTransform * Transform
Definition: vtkTransformFilter.h:112
vtkTransformFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTransformFilter::vtkTransformFilter
vtkTransformFilter()
vtkTransformFilter::New
static vtkTransformFilter * New()
Standard methods for instantiation, obtaining type information, and printing.
vtkTransformFilter::TransformAllInputVectors
bool TransformAllInputVectors
Definition: vtkTransformFilter.h:114
vtkTransformFilter::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkTransformFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTransformFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
vtkTransformFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkTransformFilter.h:113
vtkTransformFilter::SetTransform
virtual void SetTransform(vtkAbstractTransform *)
Specify the transform object used to transform points.
vtkTransformFilter::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the transform.
vtkTransformFilter::CreateNewDataArray
vtkDataArray * CreateNewDataArray(vtkDataArray *input=nullptr)
vtkX3D::Transform
@ Transform
Definition: vtkX3D.h:41
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkPointSetAlgorithm.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270