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
=========================================================================*/
43
44
#ifndef vtkTransformFilter_h
45
#define vtkTransformFilter_h
46
47
#include "vtkFiltersGeneralModule.h"
// For export macro
48
#include "
vtkPointSetAlgorithm.h
"
49
50
class
vtkAbstractTransform
;
51
52
class
VTKFILTERSGENERAL_EXPORT
vtkTransformFilter
:
public
vtkPointSetAlgorithm
53
{
54
public
:
56
60
static
vtkTransformFilter
*
New
();
61
vtkTypeMacro(
vtkTransformFilter
,
vtkPointSetAlgorithm
);
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
:
101
vtkTransformFilter
();
102
~vtkTransformFilter
()
override
;
103
104
int
RequestDataObject
(
vtkInformation
* request,
vtkInformationVector
** inputVector,
105
vtkInformationVector
* outputVector)
override
;
106
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
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
114
vtkAbstractTransform
*
Transform
;
115
int
OutputPointsPrecision
;
116
bool
TransformAllInputVectors
;
117
118
private
:
119
vtkTransformFilter
(
const
vtkTransformFilter
&) =
delete
;
120
void
operator=(
const
vtkTransformFilter
&) =
delete
;
121
};
122
123
#endif
vtkAbstractTransform
superclass for all geometric transformations
Definition
vtkAbstractTransform.h:52
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkPointSetAlgorithm::vtkPointSetAlgorithm
vtkPointSetAlgorithm()
vtkTransformFilter::~vtkTransformFilter
~vtkTransformFilter() override
vtkTransformFilter::Transform
vtkAbstractTransform * Transform
Definition
vtkTransformFilter.h:114
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:116
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:115
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:49
vtkPointSetAlgorithm.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition
vtkType.h:287
Generated on Thu Feb 13 2025 00:00:00 for VTK by
1.13.2