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 
129  vtkInformationVector*) {return 1;};
131 
133 
140  {
141  return 1;
142  };
144 
145 
147 
154  virtual int RequestDataObject(vtkInformation* request,
155  vtkInformationVector** inputVector,
156  vtkInformationVector* outputVector);
158 
160 
166  vtkInformationVector*) {return 1;};
168 
169 
170  // see algorithm for more info
171  virtual int FillOutputPortInformation(int port, vtkInformation* info);
172  virtual int FillInputPortInformation(int port, vtkInformation* 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 
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.
#define VTK_FILTERING_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
dataset represents arbitrary combinations of all possible cell types
virtual int FillInputPortInformation(int port, vtkInformation *info)
A subclass of ImageData.
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
helper class to get VTK data object types as string and instantiate them
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)