VTK  9.3.20240327
vtkCellGridAlgorithm.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
19 #ifndef vtkCellGridAlgorithm_h
20 #define vtkCellGridAlgorithm_h
21 
22 #include "vtkAlgorithm.h"
23 #include "vtkCellGrid.h" // makes things a bit easier
24 #include "vtkCommonExecutionModelModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkDataSet;
28 class vtkCellGrid;
29 
30 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkCellGridAlgorithm : public vtkAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
43  virtual void SetOutput(vtkDataObject* d);
45 
51 
52  // this method is not recommended for use, but lots of old style filters
53  // use it
57 
59 
67 
69 
77 
78 protected:
81 
82  // convenience method
83  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector);
85 
90  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector);
92 
98 
100 
101  // see algorithm for more info
104 
105 private:
107  void operator=(const vtkCellGridAlgorithm&) = delete;
108 };
109 
110 VTK_ABI_NAMESPACE_END
111 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:161
Superclass for algorithms that produce only polydata as output.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkCellGrid * GetOutput()
Get the output data object for a port on this algorithm.
~vtkCellGridAlgorithm() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataObject * GetInput(int port)
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkCellGrid * GetPolyDataInput(int port)
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
void SetInputData(vtkDataObject *)
Assign a data object as input.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkCellGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
static vtkCellGridAlgorithm * New()
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
vtkDataObject * GetInput()
Visualization data composed of cells of arbitrary type.
Definition: vtkCellGrid.h:44
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:165
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64