VTK  9.1.20211024
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 =========================================================================*/
34 #ifndef vtkDataSetAlgorithm_h
35 #define vtkDataSetAlgorithm_h
36 
37 #include "vtkAlgorithm.h"
38 #include "vtkCommonExecutionModelModule.h" // For export macro
39 
40 class vtkDataSet;
41 class vtkImageData;
42 class vtkPolyData;
44 class vtkStructuredGrid;
46 class vtkRectilinearGrid;
47 
48 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDataSetAlgorithm : public vtkAlgorithm
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
62 
68 
73 
78 
83 
88 
93 
98 
100 
110 
112 
122 
127  vtkInformationVector* outputVector) override;
128 
129 protected:
131  ~vtkDataSetAlgorithm() override = default;
132 
142  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
143  vtkInformationVector* outputVector);
144 
153  {
154  return 1;
155  }
156 
164  {
165  return 1;
166  }
167 
175  {
176  return 1;
177  }
178 
179  // see algorithm for more info
182 
184 
185 private:
186  vtkDataSetAlgorithm(const vtkDataSetAlgorithm&) = delete;
187  void operator=(const vtkDataSetAlgorithm&) = delete;
188 };
189 
190 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:122
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
~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:166
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:194
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:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69