VTK  9.3.1
vtkUnstructuredGridAlgorithm.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
19 #ifndef vtkUnstructuredGridAlgorithm_h
20 #define vtkUnstructuredGridAlgorithm_h
21 
22 #include "vtkAlgorithm.h"
23 #include "vtkCommonExecutionModelModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkDataSet;
28 
29 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUnstructuredGridAlgorithm : public vtkAlgorithm
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
40  vtkUnstructuredGrid* GetOutput();
41  vtkUnstructuredGrid* GetOutput(int);
42  virtual void SetOutput(vtkDataObject* d);
44 
50 
51  // this method is not recommended for use, but lots of old style filters
52  // use it
53  vtkDataObject* GetInput(int port);
54  vtkDataObject* GetInput() { return this->GetInput(0); }
55  vtkUnstructuredGrid* GetUnstructuredGridInput(int port);
56 
58 
63  void SetInputData(vtkDataObject*);
64  void SetInputData(int, vtkDataObject*);
66 
68 
73  void AddInputData(vtkDataObject*);
74  void AddInputData(int, vtkDataObject*);
76 
77 protected:
79  ~vtkUnstructuredGridAlgorithm() override;
80 
81  // convenience method
82  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
89  virtual int RequestData(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 vtkUnstructuredGridAlgorithm&) = delete;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
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
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that produce only unstructured grid as output.
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