VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkDataObject;
34 class vtkGraph;
35 class vtkHyperTreeGrid;
36 class vtkImageData;
37 class vtkMolecule;
38 class vtkPolyData;
39 class vtkRectilinearGrid;
40 class vtkStructuredGrid;
42 class vtkTable;
44 
45 class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkPassInputTypeAlgorithm : public vtkAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  vtkDataObject* GetOutput();
57  vtkDataObject* GetOutput(int);
59 
61 
64  vtkPolyData* GetPolyDataOutput();
65  vtkStructuredPoints* GetStructuredPointsOutput();
66  vtkImageData* GetImageDataOutput();
67  vtkStructuredGrid* GetStructuredGridOutput();
68  vtkUnstructuredGrid* GetUnstructuredGridOutput();
69  vtkRectilinearGrid* GetRectilinearGridOutput();
70  vtkGraph* GetGraphOutput();
71  vtkMolecule* GetMoleculeOutput();
72  vtkTable* GetTableOutput();
73  vtkHyperTreeGrid* GetHyperTreeGridOutput();
75 
80  vtkDataObject* GetInput();
81 
83 
88  void SetInputData(vtkDataObject*);
89  void SetInputData(int, vtkDataObject*);
91 
93 
98  void AddInputData(vtkDataObject*);
99  void AddInputData(int, vtkDataObject*);
101 
106  vtkInformationVector* outputVector) override;
107 
108 protected:
110  ~vtkPassInputTypeAlgorithm() override = default;
111 
121  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
122  vtkInformationVector* outputVector);
123 
132  {
133  return 1;
134  }
135 
143  {
144  return 1;
145  }
146 
155  {
156  return 1;
157  }
158 
167  {
168  return 1;
169  }
170 
178  {
179  return 1;
180  }
181 
182  // see algorithm for more info
184  int FillInputPortInformation(int port, vtkInformation* info) override;
185 
186  vtkDataObject* GetInput(int port);
187 
188 private:
190  void operator=(const vtkPassInputTypeAlgorithm&) = delete;
191 };
192 
193 VTK_ABI_NAMESPACE_END
194 #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:71
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define vtkPassInputTypeAlgorithm
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:282
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:53
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:45
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:59
A subclass of ImageData.
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.