VTK  9.4.20250201
vtkCellGridTransform.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
18#ifndef vtkCellGridTransform_h
19#define vtkCellGridTransform_h
20
22#include "vtkFiltersCellGrid.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
26
27class VTKFILTERSCELLGRID_EXPORT vtkCellGridTransform : public vtkCellGridAlgorithm
28{
29public:
31
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44
48 class Query : public vtkCellGridQuery
49 {
50 public:
52
56 static Query* New();
58 void PrintSelf(ostream& os, vtkIndent indent) override;
60
63 ~Query() override;
64
69
71
75 vtkGetObjectMacro(Transform, vtkAbstractTransform);
77
79
83 vtkGetObjectMacro(CellAttribute, vtkCellAttribute);
85
87
92 vtkSetMacro(OutputPointsPrecision, int);
93 vtkGetMacro(OutputPointsPrecision, int);
95
96 // bool Initialize() override;
97 // bool Finalize() override;
98
102
103 protected:
104 vtkCellAttribute* CellAttribute{ nullptr };
105 vtkAbstractTransform* Transform{ nullptr };
107 };
108
111
112protected:
115
117
119
120private:
122 void operator=(const vtkCellGridTransform&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#endif
superclass for all geometric transformations
A function defined over the physical domain of a vtkCellGrid.
Superclass for algorithms that produce only polydata as output.
Perform an operation on cells in a vtkCellMetadata instance.
A cell-grid query for applying a transform to a cell-grid.
virtual void SetCellAttribute(vtkCellAttribute *)
Specify the cell-attribute to be transformed.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
Query()
Construct a query.
virtual void SetTransform(vtkAbstractTransform *)
Specify the transform object used to transform points.
vtkMTimeType GetMTime() override
Return the MTime also considering the transform.
vtkDataArray * CreateNewDataArray(vtkDataArray *input) const
A convenience method for responders to create arrays at the requested output precision given an input...
static Query * New()
Standard methods for instantiation, obtaining type information, and printing.
transform points and associated normals and vectors
void SetTransform(vtkAbstractTransform *tfm)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
static vtkCellGridTransform * New()
Standard methods for instantiation, obtaining type information, and printing.
void SetCellAttribute(vtkCellAttribute *att)
vtkMTimeType GetMTime() override
Return the MTime also considering the query.
~vtkCellGridTransform() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:167
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270