VTK  9.7.20261124
vtkDataObjectAlgorithm.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
23
24#ifndef vtkDataObjectAlgorithm_h
25#define vtkDataObjectAlgorithm_h
26
27#include "vtkAlgorithm.h"
28#include "vtkCommonExecutionModelModule.h" // For export macro
29#include "vtkDataObject.h" // makes things a bit easier
30#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkDataSet;
34class vtkDataObject;
35
36class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkDataObjectAlgorithm : public vtkAlgorithm
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
49 virtual void SetOutput(vtkDataObject* d);
51
57
58 // this method is not recommended for use, but lots of old style filters
59 // use it
62
64
72
74
82
83protected:
86
87 // convenience method
88 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
89 vtkInformationVector* outputVector);
90
99
108
110 {
111 return 1;
112 }
113
115 {
116 return 1;
117 }
118
119 // see algorithm for more info
120 int FillOutputPortInformation(int port, vtkInformation* info) override;
121 int FillInputPortInformation(int port, vtkInformation* info) override;
122
132 int dataType, vtkInformation* outputInformation, bool exact = false);
133
134private:
136 void operator=(const vtkDataObjectAlgorithm&) = delete;
137};
138
139VTK_ABI_NAMESPACE_END
140#endif
vtkDataObject * GetInput()
static bool SetOutputDataObject(int dataType, vtkInformation *outputInformation, bool exact=false)
A helper method that can be used by subclasses in RequestDataObject to create an output data object o...
static vtkDataObjectAlgorithm * New()
vtkDataObject * GetOutput()
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.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
void AddInputData(vtkDataObject *)
Assign a data object as input.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetInputData(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.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
~vtkDataObjectAlgorithm() override
vtkDataObject * GetInput(int port)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDataObject * GetOutput(int)
Get the output data object for a port on this algorithm.
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.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO