VTK  9.6.20260228
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
21
22#ifndef vtkUnstructuredGridAlgorithm_h
23#define vtkUnstructuredGridAlgorithm_h
24
25#include "vtkAlgorithm.h"
26#include "vtkCommonExecutionModelModule.h" // For export macro
27#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkDataSet;
32
33class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkUnstructuredGridAlgorithm
34 : public vtkAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
47 virtual void SetOutput(vtkDataObject* d);
49
55
56 // this method is not recommended for use, but lots of old style filters
57 // use it
59 vtkDataObject* GetInput() { return this->GetInput(0); }
61
63
71
73
81
82protected:
85
86 // convenience method
87 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
88 vtkInformationVector* outputVector);
89
94 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
95 vtkInformationVector* outputVector);
96
102
104
105 // see algorithm for more info
106 int FillOutputPortInformation(int port, vtkInformation* info) override;
107 int FillInputPortInformation(int port, vtkInformation* info) override;
108
109private:
111 void operator=(const vtkUnstructuredGridAlgorithm&) = delete;
112};
113
114VTK_ABI_NAMESPACE_END
115#endif
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.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkUnstructuredGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkUnstructuredGrid * GetUnstructuredGridInput(int port)
~vtkUnstructuredGridAlgorithm() override
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
vtkDataObject * GetInput(int port)
vtkUnstructuredGrid * GetOutput()
Get the output data object for a port on this algorithm.
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
static vtkUnstructuredGridAlgorithm * New()
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
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO
#define vtkUnstructuredGridAlgorithm