VTK  9.3.1
vtkPassInputTypeAlgorithm.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
25 #ifndef vtkPassInputTypeAlgorithm_h
26 #define vtkPassInputTypeAlgorithm_h
27 
28 #include "vtkAlgorithm.h"
29 #include "vtkCommonExecutionModelModule.h" // For export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkDataObject;
33 class vtkGraph;
34 class vtkHyperTreeGrid;
35 class vtkImageData;
36 class vtkMolecule;
37 class vtkPolyData;
38 class vtkRectilinearGrid;
39 class vtkStructuredGrid;
41 class vtkTable;
43 
44 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPassInputTypeAlgorithm : public vtkAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkDataObject* GetOutput();
56  vtkDataObject* GetOutput(int);
58 
60 
63  vtkPolyData* GetPolyDataOutput();
64  vtkStructuredPoints* GetStructuredPointsOutput();
65  vtkImageData* GetImageDataOutput();
66  vtkStructuredGrid* GetStructuredGridOutput();
67  vtkUnstructuredGrid* GetUnstructuredGridOutput();
68  vtkRectilinearGrid* GetRectilinearGridOutput();
69  vtkGraph* GetGraphOutput();
70  vtkMolecule* GetMoleculeOutput();
71  vtkTable* GetTableOutput();
72  vtkHyperTreeGrid* GetHyperTreeGridOutput();
74 
79  vtkDataObject* GetInput();
80 
82 
87  void SetInputData(vtkDataObject*);
88  void SetInputData(int, vtkDataObject*);
90 
92 
97  void AddInputData(vtkDataObject*);
98  void AddInputData(int, vtkDataObject*);
100 
105  vtkInformationVector* outputVector) override;
106 
107 protected:
109  ~vtkPassInputTypeAlgorithm() override = default;
110 
120  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
121  vtkInformationVector* outputVector);
122 
131  {
132  return 1;
133  }
134 
142  {
143  return 1;
144  }
145 
154  {
155  return 1;
156  }
157 
166  {
167  return 1;
168  }
169 
177  {
178  return 1;
179  }
180 
181  // see algorithm for more info
183  int FillInputPortInformation(int port, vtkInformation* info) override;
184 
185  vtkDataObject* GetInput(int port);
186 
187 private:
189  void operator=(const vtkPassInputTypeAlgorithm&) = delete;
190 };
191 
192 VTK_ABI_NAMESPACE_END
193 #endif
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:83
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request ask for temporal information to be updated...
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...
Base class for graph data types.
Definition: vtkGraph.h:280
virtual int RequestUpdateTimeDependentInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request ask for meta information to be updated...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
dataset represents arbitrary combinations of all possible cell types
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:58
A subclass of ImageData.
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.