VTK
vtkDataSetAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetAlgorithm.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 =========================================================================*/
36 #ifndef __vtkDataSetAlgorithm_h
37 #define __vtkDataSetAlgorithm_h
38 
39 #include "vtkAlgorithm.h"
40 
41 class vtkDataSet;
42 class vtkImageData;
43 class vtkPolyData;
45 class vtkStructuredGrid;
46 class vtkUnstructuredGrid;
47 class vtkRectilinearGrid;
48 
50 {
51 public:
52  static vtkDataSetAlgorithm *New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
58  vtkDataSet* GetOutput();
59  vtkDataSet* GetOutput(int);
61 
64  vtkDataObject* GetInput();
65 
67  vtkPolyData *GetPolyDataOutput();
68 
70  vtkStructuredPoints *GetStructuredPointsOutput();
71 
73  vtkImageData *GetImageDataOutput();
74 
76  vtkStructuredGrid *GetStructuredGridOutput();
77 
79  vtkUnstructuredGrid *GetUnstructuredGridOutput();
80 
82  vtkRectilinearGrid *GetRectilinearGridOutput();
83 
85 
92  void SetInput(vtkDataObject*);
93  void SetInput(int, vtkDataObject*);
94  void SetInput(vtkDataSet*);
95  void SetInput(int, vtkDataSet*);
97 
99 
103  void AddInput(vtkDataObject *);
104  void AddInput(vtkDataSet*);
105  void AddInput(int, vtkDataSet*);
106  void AddInput(int, vtkDataObject*);
108 
110 
111  virtual int ProcessRequest(vtkInformation* request,
112  vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector);
115 
116 protected:
119 
121 
128  vtkInformationVector*) {return 1;};
130 
132 
139  {
140  return 1;
141  };
143 
144 
146 
153  virtual int RequestDataObject(vtkInformation* request,
154  vtkInformationVector** inputVector,
155  vtkInformationVector* outputVector);
157 
159 
165  vtkInformationVector*) {return 1;};
167 
168 
169  // see algorithm for more info
170  virtual int FillOutputPortInformation(int port, vtkInformation* info);
171  virtual int FillInputPortInformation(int port, vtkInformation* info);
172 
173  vtkDataObject *GetInput(int port);
174 
175 private:
176  vtkDataSetAlgorithm(const vtkDataSetAlgorithm&); // Not implemented.
177  void operator=(const vtkDataSetAlgorithm&); // Not implemented.
178 };
179 
180 #endif
181 
182 
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
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)
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
A subclass of ImageData.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
Superclass for algorithms that produce output of the same type as input.
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)