VTK  9.2.6
vtkPassInputTypeAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPassInputTypeAlgorithm.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 =========================================================================*/
37 #ifndef vtkPassInputTypeAlgorithm_h
38 #define vtkPassInputTypeAlgorithm_h
39 
40 #include "vtkAlgorithm.h"
41 #include "vtkCommonExecutionModelModule.h" // For export macro
42 
43 class vtkDataObject;
44 class vtkGraph;
45 class vtkHyperTreeGrid;
46 class vtkImageData;
47 class vtkMolecule;
48 class vtkPolyData;
49 class vtkRectilinearGrid;
50 class vtkStructuredGrid;
52 class vtkTable;
54 
55 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPassInputTypeAlgorithm : public vtkAlgorithm
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  vtkDataObject* GetOutput();
67  vtkDataObject* GetOutput(int);
69 
71 
74  vtkPolyData* GetPolyDataOutput();
75  vtkStructuredPoints* GetStructuredPointsOutput();
76  vtkImageData* GetImageDataOutput();
77  vtkStructuredGrid* GetStructuredGridOutput();
78  vtkUnstructuredGrid* GetUnstructuredGridOutput();
79  vtkRectilinearGrid* GetRectilinearGridOutput();
80  vtkGraph* GetGraphOutput();
81  vtkMolecule* GetMoleculeOutput();
82  vtkTable* GetTableOutput();
83  vtkHyperTreeGrid* GetHyperTreeGridOutput();
85 
90  vtkDataObject* GetInput();
91 
93 
98  void SetInputData(vtkDataObject*);
99  void SetInputData(int, vtkDataObject*);
101 
103 
108  void AddInputData(vtkDataObject*);
109  void AddInputData(int, vtkDataObject*);
111 
116  vtkInformationVector* outputVector) override;
117 
118 protected:
120  ~vtkPassInputTypeAlgorithm() override = default;
121 
131  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
132  vtkInformationVector* outputVector);
133 
142  {
143  return 1;
144  }
145 
153  {
154  return 1;
155  }
156 
165  {
166  return 1;
167  }
168 
177  {
178  return 1;
179  }
180 
188  {
189  return 1;
190  }
191 
192  // see algorithm for more info
194  int FillInputPortInformation(int port, vtkInformation* info) override;
195 
196  vtkDataObject* GetInput(int port);
197 
198 private:
200  void operator=(const vtkPassInputTypeAlgorithm&) = delete;
201 };
202 
203 #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:94
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:90
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:69
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:295
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:62
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
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:73
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:65
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.