VTK
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 "vtkFiltersGeometryModule.h" // For export macro
30 #include "vtkDataObjectAlgorithm.h"
31 
32 class vtkDataArray;
33 class vtkFieldData;
34 class vtkImageData;
35 class vtkUniformGrid;
36 
37 class VTKFILTERSGEOMETRY_EXPORT vtkImageDataToUniformGrid
39 {
40  public:
43  void PrintSelf(ostream &os, vtkIndent indent) override;
44 
46 
52  vtkSetClampMacro(Reverse, vtkTypeBool, 0, 1);
53  vtkGetMacro(Reverse, vtkTypeBool);
54  vtkBooleanMacro(Reverse, vtkTypeBool);
56 
57 protected:
59  ~vtkImageDataToUniformGrid() override;
60 
61  int RequestData(vtkInformation *req,
63  vtkInformationVector *outV) override;
66  vtkInformationVector *outV) override;
67 
70 
71  virtual int Process(vtkImageData* input, int association, const char* arrayName,
72  vtkUniformGrid* output);
73 
74 private:
76  void operator=(const vtkImageDataToUniformGrid&) = delete;
77 
78  vtkTypeBool Reverse;
79 };
80 
81 #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:69
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:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
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:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.