VTK  9.7.1
vtkMultiBlockDataSetAlgorithm.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
15 #ifndef vtkMultiBlockDataSetAlgorithm_h
16 #define vtkMultiBlockDataSetAlgorithm_h
17 
18 #include "vtkAlgorithm.h"
19 #include "vtkCommonExecutionModelModule.h" // For export macro
20 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21 
22 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkMultiBlockDataSetAlgorithm
26  : public vtkAlgorithm
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  vtkMultiBlockDataSet* GetOutput();
38  vtkMultiBlockDataSet* GetOutput(int);
40 
42 
47  void SetInputData(vtkDataObject*);
48  void SetInputData(int, vtkDataObject*);
50 
55  vtkInformationVector* outputVector) override;
56 
57 protected:
59  ~vtkMultiBlockDataSetAlgorithm() override = default;
60 
66  {
67  return 1;
68  }
69 
75  {
76  return 1;
77  }
78 
84  {
85  return 1;
86  }
87 
89 
94  {
95  return 1;
96  }
98 
100  {
101  return 1;
102  }
103 
104  // Create a default executive.
106 
107  // see algorithm for more info
109  int FillInputPortInformation(int port, vtkInformation* info) override;
110 
111  vtkDataObject* GetInput(int port);
112 
113 private:
115  void operator=(const vtkMultiBlockDataSetAlgorithm&) = delete;
116 };
117 
118 VTK_ABI_NAMESPACE_END
119 #endif
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
Store vtkAlgorithm input/output information.
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:39
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
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...
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
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.
Composite dataset that organizes datasets into blocks.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.