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

VTK  9.5.20250921
vtkDataSetAlgorithm.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
22#ifndef vtkDataSetAlgorithm_h
23#define vtkDataSetAlgorithm_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;
31class vtkImageData;
32class vtkPolyData;
37
38class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkDataSetAlgorithm : public vtkAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
52
58
63
68
73
78
83
88
90
100
102
112
117 vtkInformationVector* outputVector) override;
118
119protected:
121 ~vtkDataSetAlgorithm() override = default;
122
132 virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
133 vtkInformationVector* outputVector);
134
143 {
144 return 1;
145 }
146
154 {
155 return 1;
156 }
157
159 {
160 return 1;
161 }
162
170 {
171 return 1;
172 }
173
174 // see algorithm for more info
175 int FillOutputPortInformation(int port, vtkInformation* info) override;
176 int FillInputPortInformation(int port, vtkInformation* info) override;
177
179
180private:
182 void operator=(const vtkDataSetAlgorithm&) = delete;
183};
184
185VTK_ABI_NAMESPACE_END
186#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
Superclass for algorithms that produce output of the same type as input.
vtkDataSet * GetOutput()
Get the output data object for a port on this algorithm.
void AddInputData(vtkDataSet *)
Assign a data object as input.
vtkDataObject * GetInput()
Get the input data object.
void SetInputData(int, vtkDataSet *)
Assign a data object as input.
void AddInputData(int, vtkDataSet *)
Assign a data object as input.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
void SetInputData(vtkDataSet *)
Assign a data object as input.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called within ProcessRequest when a request asks the algorithm to create empty output data ob...
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkStructuredGrid * GetStructuredGridOutput()
Get the output as vtkStructuredGrid.
static vtkDataSetAlgorithm * New()
vtkDataObject * GetInput(int port)
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~vtkDataSetAlgorithm() override=default
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkRectilinearGrid * GetRectilinearGridOutput()
Get the output as vtkRectilinearGrid.
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkPolyData * GetPolyDataOutput()
Get the output as vtkPolyData.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
vtkDataSet * 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.
vtkImageData * GetImageDataOutput()
Get the output as vtkStructuredPoints.
vtkUnstructuredGrid * GetUnstructuredGridOutput()
Get the output as vtkUnstructuredGrid.
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStructuredPoints * GetStructuredPointsOutput()
Get the output as vtkStructuredPoints.
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
a dataset that is topologically regular with variable spacing in the three coordinate directions
topologically regular array of data
A subclass of ImageData.
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO