VTK  9.3.20240418
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 
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
54  vtkDataObject* GetInput() { return this->GetInput(0); }
56 
58 
66 
68 
76 
77 protected:
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 
97 
99 
100  // see algorithm for more info
103 
104 private:
106  void operator=(const vtkUnstructuredGridAlgorithm&) = delete;
107 };
108 
109 VTK_ABI_NAMESPACE_END
110 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
vtkUnstructuredGrid * GetOutput()
Get the output data object for a port on this algorithm.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkUnstructuredGridAlgorithm * New()
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkUnstructuredGrid * GetUnstructuredGridInput(int port)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void AddInputData(vtkDataObject *)
Assign a data object as input.
~vtkUnstructuredGridAlgorithm() override
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
vtkUnstructuredGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
vtkDataObject * GetInput(int port)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
dataset represents arbitrary combinations of all possible cell types
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64