VTK  9.3.1
vtkUnstructuredGridBaseAlgorithm.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
18 #ifndef vtkUnstructuredGridBaseAlgorithm_h
19 #define vtkUnstructuredGridBaseAlgorithm_h
20 
21 #include "vtkAlgorithm.h"
22 #include "vtkCommonExecutionModelModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkDataSet;
27 
28 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUnstructuredGridBaseAlgorithm : public vtkAlgorithm
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  vtkUnstructuredGridBase* GetOutput();
40  vtkUnstructuredGridBase* GetOutput(int);
41  virtual void SetOutput(vtkDataObject* d);
43 
49 
51 
56  void SetInputData(vtkDataObject*);
57  void SetInputData(int, vtkDataObject*);
59 
61 
66  void AddInputData(vtkDataObject*);
67  void AddInputData(int, vtkDataObject*);
69 
70 protected:
73 
74  // convenience method
75  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
76  vtkInformationVector* outputVector);
77 
82  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
89  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
96  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
97 
98  // see algorithm for more info
100  int FillInputPortInformation(int port, vtkInformation* info) override;
101 
102 private:
104  void operator=(const vtkUnstructuredGridBaseAlgorithm&) = delete;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54
dataset represents arbitrary combinations of all possible cell types.