VTK  9.4.20250203
vtkImageDataToUniformGrid.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
17#ifndef vtkImageDataToUniformGrid_h
18#define vtkImageDataToUniformGrid_h
19
21#include "vtkFiltersGeometryModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class vtkDataArray;
25class vtkFieldData;
26class vtkImageData;
27class vtkUniformGrid;
28
29class VTKFILTERSGEOMETRY_EXPORT vtkImageDataToUniformGrid : public vtkDataObjectAlgorithm
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
43 vtkSetClampMacro(Reverse, vtkTypeBool, 0, 1);
44 vtkGetMacro(Reverse, vtkTypeBool);
45 vtkBooleanMacro(Reverse, vtkTypeBool);
47
48protected:
51
53 vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
55 vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
56
57 int FillInputPortInformation(int port, vtkInformation* info) override;
58 int FillOutputPortInformation(int port, vtkInformation* info) override;
59
60 virtual int Process(
61 vtkImageData* input, int association, const char* arrayName, vtkUniformGrid* output);
62
63private:
65 void operator=(const vtkImageDataToUniformGrid&) = delete;
66
67 vtkTypeBool Reverse;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif
abstract superclass for arrays of numeric data
Superclass for algorithms that produce only data object as output.
represent and manipulate fields of data
convert vtkImageData to vtkUniformGrid
~vtkImageDataToUniformGrid() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkImageDataToUniformGrid * New()
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int RequestData(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
int RequestDataObject(vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int Process(vtkImageData *input, int association, const char *arrayName, vtkUniformGrid *output)
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
image data with blanking
int vtkTypeBool
Definition vtkABI.h:64