VTK  9.3.1
vtkImageToStructuredGrid.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
15 #ifndef vtkImageToStructuredGrid_h
16 #define vtkImageToStructuredGrid_h
17 
18 #include "vtkCommonExecutionModelModule.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkStructuredGrid;
23 class vtkImageData;
24 class vtkInformation;
26 
27 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageToStructuredGrid : public vtkStructuredGridAlgorithm
28 {
29 public:
30  static vtkImageToStructuredGrid* New();
32  void PrintSelf(ostream& oss, vtkIndent indent) override;
33 
34 protected:
36  ~vtkImageToStructuredGrid() override;
37 
38  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
39  vtkInformationVector* outputVector) override;
40 
42 
45  void CopyPointData(vtkImageData*, vtkStructuredGrid*);
46  void CopyCellData(vtkImageData*, vtkStructuredGrid*);
48 
49  int FillInputPortInformation(int, vtkInformation* info) override;
50  int FillOutputPortInformation(int, vtkInformation* info) override;
51 
52 private:
54  void operator=(const vtkImageToStructuredGrid&) = delete;
55 };
56 
57 VTK_ABI_NAMESPACE_END
58 #endif /* VTKIMAGEDATATOSTRUCTUREDGRIDFILTER_H_ */
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
static vtkStructuredGridAlgorithm * New()
a structured grid instance.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
Superclass for algorithms that produce only structured grid as output.
topologically regular array of data
Store zero or more vtkInformation instances.