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 "vtkAlgorithm.h"
37 
38 class vtkDataObject;
39 class vtkGraph;
40 class vtkImageData;
41 class vtkPolyData;
43 class vtkStructuredGrid;
45 class vtkRectilinearGrid;
46 class vtkTable;
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
57  vtkDataObject* GetOutput();
58  vtkDataObject* GetOutput(int);
60 
62  vtkPolyData *GetPolyDataOutput();
63 
65  vtkStructuredPoints *GetStructuredPointsOutput();
66 
68  vtkImageData *GetImageDataOutput();
69 
71  vtkStructuredGrid *GetStructuredGridOutput();
72 
74  vtkUnstructuredGrid *GetUnstructuredGridOutput();
75 
77  vtkRectilinearGrid *GetRectilinearGridOutput();
78 
80  vtkTable *GetTableOutput();
81 
83  vtkGraph *GetGraphOutput();
84 
87  vtkDataObject* GetInput();
88 
90 
97  void SetInput(vtkDataObject*);
98  void SetInput(int, vtkDataObject*);
100 
102 
106  void AddInput(vtkDataObject *);
107  void AddInput(int, vtkDataObject*);
109 
111 
112  virtual int ProcessRequest(vtkInformation* request,
113  vtkInformationVector** inputVector,
114  vtkInformationVector* outputVector);
116 
117 protected:
120 
122 
127  virtual int RequestInformation(vtkInformation*,
129  vtkInformationVector*) {return 1;};
131 
133 
137  virtual int RequestUpdateExtent(vtkInformation*,
140  {
141  return 1;
142  };
144 
145 
147 
154  virtual int RequestDataObject(vtkInformation* request,
155  vtkInformationVector** inputVector,
156  vtkInformationVector* outputVector);
158 
160 
164  virtual int RequestData(vtkInformation*,
166  vtkInformationVector*) {return 1;};
168 
169 
170  // see algorithm for more info
173 
174  vtkDataObject *GetInput(int port);
175 
176 private:
177  vtkPassInputTypeAlgorithm(const vtkPassInputTypeAlgorithm&); // Not implemented.
178  void operator=(const vtkPassInputTypeAlgorithm&); // Not implemented.
179 };
180 
181 #endif
182 
183