Thanks to visit codestin.com
Credit goes to vtk.org

VTK  9.5.20250921
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkDataSet;
29
30class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkUnstructuredGridAlgorithm
31 : public vtkAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
44 virtual void SetOutput(vtkDataObject* d);
46
52
53 // this method is not recommended for use, but lots of old style filters
54 // use it
56 vtkDataObject* GetInput() { return this->GetInput(0); }
58
60
68
70
78
79protected:
82
83 // convenience method
84 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
85 vtkInformationVector* outputVector);
86
91 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
92 vtkInformationVector* outputVector);
93
99
101
102 // see algorithm for more info
103 int FillOutputPortInformation(int port, vtkInformation* info) override;
104 int FillInputPortInformation(int port, vtkInformation* info) override;
105
106private:
108 void operator=(const vtkUnstructuredGridAlgorithm&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
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.
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