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 =========================================================================*/
37 #ifndef vtkDataSetAlgorithm_h
38 #define vtkDataSetAlgorithm_h
39 
40 #include "vtkCommonExecutionModelModule.h" // For export macro
41 #include "vtkAlgorithm.h"
42 
43 class vtkDataSet;
44 class vtkImageData;
45 class vtkPolyData;
47 class vtkStructuredGrid;
49 class vtkRectilinearGrid;
50 
51 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDataSetAlgorithm : public vtkAlgorithm
52 {
53 public:
54  static vtkDataSetAlgorithm *New();
56  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
57 
59 
62  vtkDataSet* GetOutput();
63  vtkDataSet* GetOutput(int);
65 
70  vtkDataObject* GetInput();
71 
75  vtkPolyData *GetPolyDataOutput();
76 
80  vtkStructuredPoints *GetStructuredPointsOutput();
81 
85  vtkImageData *GetImageDataOutput();
86 
90  vtkStructuredGrid *GetStructuredGridOutput();
91 
95  vtkUnstructuredGrid *GetUnstructuredGridOutput();
96 
100  vtkRectilinearGrid *GetRectilinearGridOutput();
101 
103 
108  void SetInputData(vtkDataObject*);
109  void SetInputData(int, vtkDataObject*);
110  void SetInputData(vtkDataSet*);
111  void SetInputData(int, vtkDataSet*);
113 
115 
120  void AddInputData(vtkDataObject *);
121  void AddInputData(vtkDataSet*);
122  void AddInputData(int, vtkDataSet*);
123  void AddInputData(int, vtkDataObject*);
125 
129  int ProcessRequest(vtkInformation* request,
130  vtkInformationVector** inputVector,
131  vtkInformationVector* outputVector) VTK_OVERRIDE;
132 
133 protected:
135  ~vtkDataSetAlgorithm() VTK_OVERRIDE {}
136 
146  vtkInformationVector*) {return 1;};
147 
149 
158  {
159  return 1;
160  };
162 
163 
173  virtual int RequestDataObject(vtkInformation* request,
174  vtkInformationVector** inputVector,
175  vtkInformationVector* outputVector);
176 
185  vtkInformationVector*) {return 1;};
186 
187 
188  // see algorithm for more info
189  int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
190  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
191 
192  vtkDataObject *GetInput(int port);
193 
194 private:
195  vtkDataSetAlgorithm(const vtkDataSetAlgorithm&) VTK_DELETE_FUNCTION;
196  void operator=(const vtkDataSetAlgorithm&) VTK_DELETE_FUNCTION;
197 };
198 
199 #endif
200 
201 
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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:85
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
dataset represents arbitrary combinations of all possible cell types
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input 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 subclass of ImageData.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
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.
general representation of visualization data
Definition: vtkDataObject.h:64