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:
56  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
57 
59 
65 
71 
76 
81 
86 
91 
96 
101 
103 
113 
115 
125 
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
191 
193 
194 private:
195  vtkDataSetAlgorithm(const vtkDataSetAlgorithm&) VTK_DELETE_FUNCTION;
196  void operator=(const vtkDataSetAlgorithm&) VTK_DELETE_FUNCTION;
197 };
198 
199 #endif
200 
201 
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
general representation of visualization data
Definition: vtkDataObject.h:65
Superclass for algorithms that produce output of the same type as input.
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkDataObject * GetInput()
Get the input data object.
vtkDataSet * GetOutput()
Get the output data object for a port on this algorithm.
void AddInputData(vtkDataSet *)
void SetInputData(int, vtkDataSet *)
static vtkDataSetAlgorithm * New()
void AddInputData(int, vtkDataSet *)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
void SetInputData(vtkDataSet *)
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called within ProcessRequest to when a request asks the algorithm to create empty output data...
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkPolyData * GetPolyDataOutput()
Get the output as vtkPolyData.
vtkDataObject * GetInput(int port)
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkImageData * GetImageDataOutput()
Get the output as vtkStructuredPoints.
void AddInputData(int, vtkDataObject *)
vtkStructuredGrid * GetStructuredGridOutput()
Get the output as vtkStructuredGrid.
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void SetInputData(int, vtkDataObject *)
vtkRectilinearGrid * GetRectilinearGridOutput()
Get the output as vtkRectilinearGrid.
vtkDataSet * GetOutput(int)
vtkUnstructuredGrid * GetUnstructuredGridOutput()
Get the output as vtkUnstructuredGrid.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStructuredPoints * GetStructuredPointsOutput()
Get the output as vtkStructuredPoints.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
a dataset that is topologically regular with variable spacing in the three coordinate directions
topologically regular array of data
A subclass of ImageData.
dataset represents arbitrary combinations of all possible cell types
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447