VTK
9.2.6
Filters
General
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
=========================================================================*/
37
38
#ifndef vtkTransformFilter_h
39
#define vtkTransformFilter_h
40
41
#include "vtkFiltersGeneralModule.h"
// For export macro
42
#include "
vtkPointSetAlgorithm.h
"
43
44
class
vtkAbstractTransform
;
45
46
class
VTKFILTERSGENERAL_EXPORT
vtkTransformFilter
:
public
vtkPointSetAlgorithm
47
{
48
public
:
50
54
static
vtkTransformFilter
*
New
();
55
vtkTypeMacro(
vtkTransformFilter
,
vtkPointSetAlgorithm
);
56
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
62
vtkMTimeType
GetMTime
()
override
;
63
65
68
virtual
void
SetTransform
(
vtkAbstractTransform
*);
69
vtkGetObjectMacro(
Transform
,
vtkAbstractTransform
);
71
73
78
vtkSetMacro(
OutputPointsPrecision
,
int
);
79
vtkGetMacro(
OutputPointsPrecision
,
int
);
81
83
89
vtkSetMacro(
TransformAllInputVectors
,
bool
);
90
vtkGetMacro(
TransformAllInputVectors
,
bool
);
91
vtkBooleanMacro(
TransformAllInputVectors
,
bool
);
93
94
protected
:
95
vtkTransformFilter
();
96
~vtkTransformFilter
()
override
;
97
98
int
RequestDataObject
(
vtkInformation
* request,
vtkInformationVector
** inputVector,
99
vtkInformationVector
* outputVector)
override
;
100
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
101
102
// Specifies that the filter only takes input dataset types of vtkPointSet, vtkImageData,
103
// and vtkRectilinearGrid.
104
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
105
106
vtkDataArray
*
CreateNewDataArray
(
vtkDataArray
* input =
nullptr
);
107
108
vtkAbstractTransform
*
Transform
;
109
int
OutputPointsPrecision
;
110
bool
TransformAllInputVectors
;
111
112
private
:
113
vtkTransformFilter
(
const
vtkTransformFilter
&) =
delete
;
114
void
operator=(
const
vtkTransformFilter
&) =
delete
;
115
};
116
117
#endif
vtkAbstractTransform
superclass for all geometric transformations
Definition
vtkAbstractTransform.h:52
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:34
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:36
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:68
vtkPointSetAlgorithm::vtkPointSetAlgorithm
vtkPointSetAlgorithm()
vtkTransformFilter::~vtkTransformFilter
~vtkTransformFilter() override
vtkTransformFilter::Transform
vtkAbstractTransform * Transform
Definition
vtkTransformFilter.h:108
vtkTransformFilter::New
static vtkTransformFilter * New()
Standard methods for instantiation, obtaining type information, and printing.
vtkTransformFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTransformFilter::vtkTransformFilter
vtkTransformFilter()
vtkTransformFilter::TransformAllInputVectors
bool TransformAllInputVectors
Definition
vtkTransformFilter.h:110
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:109
vtkTransformFilter::CreateNewDataArray
vtkDataArray * CreateNewDataArray(vtkDataArray *input=nullptr)
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.
vtkDataArray
#define vtkDataArray
Definition
vtkCharArray.h:46
vtkPointSetAlgorithm.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition
vtkType.h:287
Generated on Sun Mar 2 2025 00:00:00 for VTK by
1.13.2