VTK  9.3.1
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:
50  ~vtkImageDataToUniformGrid() override;
51 
52  int RequestData(
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
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
convert vtkImageData to vtkUniformGrid
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
image data with blanking
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
represent and manipulate fields of data
Definition: vtkFieldData.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.