VTK
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 =========================================================================*/
34 #ifndef vtkPassInputTypeAlgorithm_h
35 #define vtkPassInputTypeAlgorithm_h
36 
37 #include "vtkCommonExecutionModelModule.h" // For export macro
38 #include "vtkAlgorithm.h"
39 
40 class vtkDataObject;
41 class vtkGraph;
42 class vtkImageData;
43 class vtkMolecule;
44 class vtkPolyData;
45 class vtkRectilinearGrid;
46 class vtkStructuredGrid;
48 class vtkTable;
50 
51 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPassInputTypeAlgorithm : public vtkAlgorithm
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  vtkDataObject* GetOutput();
63  vtkDataObject* GetOutput(int);
65 
67 
70  vtkPolyData *GetPolyDataOutput();
71  vtkStructuredPoints *GetStructuredPointsOutput();
72  vtkImageData *GetImageDataOutput();
73  vtkStructuredGrid *GetStructuredGridOutput();
74  vtkUnstructuredGrid *GetUnstructuredGridOutput();
75  vtkRectilinearGrid *GetRectilinearGridOutput();
76  vtkGraph *GetGraphOutput();
77  vtkMolecule* GetMoleculeOutput();
78  vtkTable *GetTableOutput();
80 
85  vtkDataObject* GetInput();
86 
88 
93  void SetInputData(vtkDataObject*);
94  void SetInputData(int, vtkDataObject*);
96 
98 
103  void AddInputData(vtkDataObject *);
104  void AddInputData(int, vtkDataObject*);
106 
107 
111  int ProcessRequest(vtkInformation* request,
112  vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector) override;
114 
115 protected:
118 
128  vtkInformationVector*) {return 1;};
129 
130 
133  vtkInformationVector*) { return 1;}
134 
137  vtkInformationVector*) { return 1;}
138 
139 
141 
150  {
151  return 1;
152  };
154 
155 
165  virtual int RequestDataObject(vtkInformation* request,
166  vtkInformationVector** inputVector,
167  vtkInformationVector* outputVector);
168 
177  vtkInformationVector*) {return 1;};
178 
179 
180  // see algorithm for more info
182  int FillInputPortInformation(int port, vtkInformation* info) override;
183 
184  vtkDataObject *GetInput(int port);
185 
186 private:
188  void operator=(const vtkPassInputTypeAlgorithm&) = delete;
189 };
190 
191 #endif
192 
193 
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:87
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
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 *)
Base class for graph data types.
Definition: vtkGraph.h:281
virtual int RequestUpdateTimeDependentInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
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:62
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:58
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.