VTK  9.2.5
vtkImageDataToUniformGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageDataToUniformGrid.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 =========================================================================*/
29 #ifndef vtkImageDataToUniformGrid_h
30 #define vtkImageDataToUniformGrid_h
31 
32 #include "vtkDataObjectAlgorithm.h"
33 #include "vtkFiltersGeometryModule.h" // For export macro
34 
35 class vtkDataArray;
36 class vtkFieldData;
37 class vtkImageData;
38 class vtkUniformGrid;
39 
40 class VTKFILTERSGEOMETRY_EXPORT vtkImageDataToUniformGrid : public vtkDataObjectAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
54  vtkSetClampMacro(Reverse, vtkTypeBool, 0, 1);
55  vtkGetMacro(Reverse, vtkTypeBool);
56  vtkBooleanMacro(Reverse, vtkTypeBool);
58 
59 protected:
62 
64  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
66  vtkInformation* req, vtkInformationVector** inV, vtkInformationVector* outV) override;
67 
70 
71  virtual int Process(
72  vtkImageData* input, int association, const char* arrayName, vtkUniformGrid* output);
73 
74 private:
76  void operator=(const vtkImageDataToUniformGrid&) = delete;
77 
78  vtkTypeBool Reverse;
79 };
80 
81 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
Superclass for algorithms that produce only data object as output.
represent and manipulate fields of data
Definition: vtkFieldData.h:172
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:163
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
image data with blanking
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69