VTK: Common/ExecutionModel/vtkCompositeDataSetAlgorithm.h Source File

| VTK 9.3.1

vtkCompositeDataSetAlgorithm.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
12 #ifndef vtkCompositeDataSetAlgorithm_h
13 #define vtkCompositeDataSetAlgorithm_h
14
15 #include "vtkAlgorithm.h"
16 #include "vtkCommonExecutionModelModule.h" // For export macro
17
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkCompositeDataSet;
20
21 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkCompositeDataSetAlgorithm : public vtkAlgorithm
22 {
23 public:
24 static vtkCompositeDataSetAlgorithm* New();
25 vtkTypeMacro(vtkCompositeDataSetAlgorithm, vtkAlgorithm);
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
29
32 vtkCompositeDataSet* GetOutput();
33 vtkCompositeDataSet* GetOutput(int);
35
37
42 void SetInputData(vtkDataObject*);
43 void SetInputData(int, vtkDataObject*);
45
49 vtkTypeBool ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector,
50 vtkInformationVector* outputVector) override;
51
52 protected:
53 vtkCompositeDataSetAlgorithm();
54 ~vtkCompositeDataSetAlgorithm() override = default;
55
60 virtual int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
61 {
62 return 1;
63 }
64
69 virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
70 {
71 return 1;
72 }
73
78 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
79 {
80 return 1;
81 }
82
84
88 virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
89 {
90 return 1;
91 }
93
94 // Create a default executive.
95 vtkExecutive* CreateDefaultExecutive() override;
96
97 // see algorithm for more info
98 int FillOutputPortInformation(int port, vtkInformation* info) override;
99 int FillInputPortInformation(int port, vtkInformation* info) override;
100
101 vtkDataObject* GetInput(int port);
102
103 private:
104 vtkCompositeDataSetAlgorithm(const vtkCompositeDataSetAlgorithm&) = delete;
105 void operator=(const vtkCompositeDataSetAlgorithm&) = delete;
106 };
107
108 VTK_ABI_NAMESPACE_END
109 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkCompositeDataSetAlgorithm
Superclass for algorithms that produce only vtkCompositeDataSet as output.
Definition: vtkCompositeDataSetAlgorithm.h:22
vtkCompositeDataSetAlgorithm::GetOutput
vtkCompositeDataSet * GetOutput()
Get the output data object for a port on this algorithm.
vtkCompositeDataSetAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkCompositeDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCompositeDataSetAlgorithm::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkCompositeDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkCompositeDataSetAlgorithm.h:88
vtkCompositeDataSetAlgorithm::vtkCompositeDataSetAlgorithm
vtkCompositeDataSetAlgorithm()
vtkCompositeDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkCompositeDataSetAlgorithm.h:78
vtkCompositeDataSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkCompositeDataSetAlgorithm.h:60
vtkCompositeDataSetAlgorithm::New
static vtkCompositeDataSetAlgorithm * New()
vtkCompositeDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkCompositeDataSetAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkCompositeDataSetAlgorithm::CreateDefaultExecutive
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
vtkCompositeDataSetAlgorithm::~vtkCompositeDataSetAlgorithm
~vtkCompositeDataSetAlgorithm() override=default
vtkCompositeDataSetAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkCompositeDataSetAlgorithm.h:69
vtkCompositeDataSetAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkCompositeDataSetAlgorithm::GetOutput
vtkCompositeDataSet * GetOutput(int)
Get the output data object for a port on this algorithm.
vtkCompositeDataSetAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
vtkCompositeDataSet
abstract superclass for composite (multi-block or AMR) datasets
Definition: vtkCompositeDataSet.h:51
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkExecutive
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkAlgorithm.h