VTK  9.3.20240327
vtkDataSetAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkDataSetAlgorithm_h
23 #define vtkDataSetAlgorithm_h
24 
25 #include "vtkAlgorithm.h"
26 #include "vtkCommonExecutionModelModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkDataSet;
30 class vtkImageData;
31 class vtkPolyData;
33 class vtkStructuredGrid;
35 class vtkRectilinearGrid;
36 
37 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDataSetAlgorithm : public vtkAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
51 
57 
62 
67 
72 
77 
82 
87 
89 
97  void SetInputData(int, vtkDataSet*);
99 
101 
111 
116  vtkInformationVector* outputVector) override;
117 
118 protected:
120  ~vtkDataSetAlgorithm() override = default;
121 
131  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
132  vtkInformationVector* outputVector);
133 
142  {
143  return 1;
144  }
145 
153  {
154  return 1;
155  }
156 
158  {
159  return 1;
160  }
161 
169  {
170  return 1;
171  }
172 
173  // see algorithm for more info
176 
178 
179 private:
180  vtkDataSetAlgorithm(const vtkDataSetAlgorithm&) = delete;
181  void operator=(const vtkDataSetAlgorithm&) = delete;
182 };
183 
184 VTK_ABI_NAMESPACE_END
185 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:161
general representation of visualization data
Superclass for algorithms that produce output of the same type as input.
vtkDataObject * GetInput()
Get the input data object.
vtkDataSet * GetOutput()
Get the output data object for a port on this algorithm.
void AddInputData(vtkDataSet *)
Assign a data object as input.
void SetInputData(int, vtkDataSet *)
Assign a data object as input.
static vtkDataSetAlgorithm * New()
void AddInputData(int, vtkDataSet *)
Assign a data object as input.
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 *)
Assign a data object as input.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called within ProcessRequest when a request asks the algorithm to create empty output data ob...
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.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~vtkDataSetAlgorithm() override=default
vtkDataObject * GetInput(int port)
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkImageData * GetImageDataOutput()
Get the output as vtkStructuredPoints.
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
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 *)
Assign a data object as input.
vtkRectilinearGrid * GetRectilinearGridOutput()
Get the output as vtkRectilinearGrid.
vtkDataSet * GetOutput(int)
Get the output data object for a port on this algorithm.
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:165
topologically and geometrically regular array of data
Definition: vtkImageData.h:155
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:180
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
int vtkTypeBool
Definition: vtkABI.h:64