VTK  9.2.6
vtkMultiBlockDataSetAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMultiBlockDataSetAlgorithm.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkMultiBlockDataSetAlgorithm_h
28 #define vtkMultiBlockDataSetAlgorithm_h
29 
30 #include "vtkAlgorithm.h"
31 #include "vtkCommonExecutionModelModule.h" // For export macro
32 
34 
35 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkMultiBlockDataSetAlgorithm : public vtkAlgorithm
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkMultiBlockDataSet* GetOutput();
47  vtkMultiBlockDataSet* GetOutput(int);
49 
51 
56  void SetInputData(vtkDataObject*);
57  void SetInputData(int, vtkDataObject*);
59 
64  vtkInformationVector* outputVector) override;
65 
66 protected:
68  ~vtkMultiBlockDataSetAlgorithm() override = default;
69 
75  {
76  return 1;
77  }
78 
84  {
85  return 1;
86  }
87 
93  {
94  return 1;
95  }
96 
98 
103  {
104  return 1;
105  }
107 
108  // Create a default executive.
110 
111  // see algorithm for more info
113  int FillInputPortInformation(int port, vtkInformation* info) override;
114 
115  vtkDataObject* GetInput(int port);
116 
117 private:
119  void operator=(const vtkMultiBlockDataSetAlgorithm&) = delete;
120 };
121 
122 #endif
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
Store vtkAlgorithm input/output information.
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:49
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:69
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:62
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:39
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()
general representation of visualization data
Definition: vtkDataObject.h:65
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.