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 =========================================================================*/
33 #ifndef vtkPassInputTypeAlgorithm_h
34 #define vtkPassInputTypeAlgorithm_h
35 
36 #include "vtkCommonExecutionModelModule.h" // For export macro
37 #include "vtkAlgorithm.h"
38 
39 class vtkDataObject;
40 class vtkGraph;
41 class vtkImageData;
42 class vtkPolyData;
44 class vtkStructuredGrid;
46 class vtkRectilinearGrid;
47 class vtkTable;
48 
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
58  vtkDataObject* GetOutput();
59  vtkDataObject* GetOutput(int);
61 
63  vtkPolyData *GetPolyDataOutput();
64 
66  vtkStructuredPoints *GetStructuredPointsOutput();
67 
69  vtkImageData *GetImageDataOutput();
70 
72  vtkStructuredGrid *GetStructuredGridOutput();
73 
75  vtkUnstructuredGrid *GetUnstructuredGridOutput();
76 
78  vtkRectilinearGrid *GetRectilinearGridOutput();
79 
81  vtkTable *GetTableOutput();
82 
84  vtkGraph *GetGraphOutput();
85 
88  vtkDataObject* GetInput();
89 
91 
94  void SetInputData(vtkDataObject*);
95  void SetInputData(int, vtkDataObject*);
97 
99 
102  void AddInputData(vtkDataObject *);
103  void AddInputData(int, vtkDataObject*);
105 
106 
108 
109  virtual int ProcessRequest(vtkInformation* request,
110  vtkInformationVector** inputVector,
111  vtkInformationVector* outputVector);
113 
114 protected:
117 
119 
126  vtkInformationVector*) {return 1;};
128 
129 
132  vtkInformationVector*) { return 1;}
133 
136  vtkInformationVector*) { return 1;}
137 
138 
140 
147  {
148  return 1;
149  };
151 
152 
154 
161  virtual int RequestDataObject(vtkInformation* request,
162  vtkInformationVector** inputVector,
163  vtkInformationVector* outputVector);
165 
167 
173  vtkInformationVector*) {return 1;};
175 
176 
177  // see algorithm for more info
180 
181  vtkDataObject *GetInput(int port);
182 
183 private:
184  vtkPassInputTypeAlgorithm(const vtkPassInputTypeAlgorithm&); // Not implemented.
185  void operator=(const vtkPassInputTypeAlgorithm&); // Not implemented.
186 };
187 
188 #endif
189 
190 
#define VTKCOMMONEXECUTIONMODEL_EXPORT
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Base class for graph data types.
Definition: vtkGraph.h:288
virtual int RequestUpdateTimeDependentInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
dataset represents arbitrary combinations of all possible cell types
virtual int FillInputPortInformation(int port, vtkInformation *info)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
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:64
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)