VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
18 
19 VTK_ABI_NAMESPACE_BEGIN
21 
22 class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkCompositeDataSetAlgorithm
23  : public vtkAlgorithm
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  vtkCompositeDataSet* GetOutput();
35  vtkCompositeDataSet* GetOutput(int);
37 
39 
44  void SetInputData(vtkDataObject*);
45  void SetInputData(int, vtkDataObject*);
47 
52  vtkInformationVector* outputVector) override;
53 
54 protected:
56  ~vtkCompositeDataSetAlgorithm() override = default;
57 
63  {
64  return 1;
65  }
66 
72  {
73  return 1;
74  }
75 
81  {
82  return 1;
83  }
84 
86 
91  {
92  return 1;
93  }
95 
97  {
98  return 1;
99  }
100 
101  // Create a default executive.
103 
104  // see algorithm for more info
106  int FillInputPortInformation(int port, vtkInformation* info) override;
107 
108  vtkDataObject* GetInput(int port);
109 
110 private:
112  void operator=(const vtkCompositeDataSetAlgorithm&) = delete;
113 };
114 
115 VTK_ABI_NAMESPACE_END
116 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkCompositeDataSet as output.
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
abstract superclass for composite (multi-block or AMR) datasets
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.