VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkDataSet;
28 
29 class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkUnstructuredGridBaseAlgorithm
30  : public vtkAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  vtkUnstructuredGridBase* GetOutput();
42  vtkUnstructuredGridBase* GetOutput(int);
43  virtual void SetOutput(vtkDataObject* d);
45 
51 
53 
58  void SetInputData(vtkDataObject*);
59  void SetInputData(int, vtkDataObject*);
61 
63 
68  void AddInputData(vtkDataObject*);
69  void AddInputData(int, vtkDataObject*);
71 
72 protected:
75 
76  // convenience method
77  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector);
79 
84  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
85  vtkInformationVector* outputVector);
86 
91  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
92  vtkInformationVector* outputVector);
93 
98  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
99 
100  virtual int RequestUpdateTime(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
101 
102  // see algorithm for more info
104  int FillInputPortInformation(int port, vtkInformation* info) override;
105 
106 private:
108  void operator=(const vtkUnstructuredGridBaseAlgorithm&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #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:56
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:53
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()
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55
dataset represents arbitrary combinations of all possible cell types.