VTK  9.3.20240328
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 
20 #include "vtkDataObjectAlgorithm.h"
21 #include "vtkFiltersGeometryModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkDataArray;
25 class vtkFieldData;
26 class vtkImageData;
27 class vtkUniformGrid;
28 
29 class VTKFILTERSGEOMETRY_EXPORT vtkImageDataToUniformGrid : public vtkDataObjectAlgorithm
30 {
31 public:
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 
48 protected:
51 
53  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
55  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
56 
59 
60  virtual int Process(
61  vtkImageData* input, int association, const char* arrayName, vtkUniformGrid* output);
62 
63 private:
65  void operator=(const vtkImageDataToUniformGrid&) = delete;
66 
67  vtkTypeBool Reverse;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:154
Superclass for algorithms that produce only data object as output.
represent and manipulate fields of data
Definition: vtkFieldData.h:161
convert vtkImageData to vtkUniformGrid
~vtkImageDataToUniformGrid() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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.
static vtkImageDataToUniformGrid * New()
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
Definition: vtkImageData.h:155
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
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64