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