VTK  9.3.20240424
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
24VTK_ABI_NAMESPACE_BEGIN
25class vtkDataSet;
27
28class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUnstructuredGridBaseAlgorithm : public vtkAlgorithm
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
41 virtual void SetOutput(vtkDataObject* d);
43
49
51
59
61
69
70protected:
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
97
99
100 // see algorithm for more info
101 int FillOutputPortInformation(int port, vtkInformation* info) override;
102 int FillInputPortInformation(int port, vtkInformation* info) override;
103
104private:
106 void operator=(const vtkUnstructuredGridBaseAlgorithm&) = delete;
107};
108
109VTK_ABI_NAMESPACE_END
110#endif
Superclass for all sources, filters, and sinks in VTK.
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 vtkUnstructureGridBase subclasses as output.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void AddInputData(vtkDataObject *)
Assign a data object as input.
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkUnstructuredGridBase * GetOutput(int)
Get the output data object for a port on this algorithm.
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
static vtkUnstructuredGridBaseAlgorithm * New()
vtkUnstructuredGridBase * GetOutput()
Get the output data object for a port on this algorithm.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
dataset represents arbitrary combinations of all possible cell types.
int vtkTypeBool
Definition vtkABI.h:64