VTK  9.3.1
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:
33  static vtkCellGridAlgorithm* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  vtkCellGrid* GetOutput();
42  vtkCellGrid* GetOutput(int);
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
54  vtkDataObject* GetInput();
55  vtkDataObject* GetInput(int port);
56  vtkCellGrid* GetPolyDataInput(int port);
57 
59 
64  void SetInputData(vtkDataObject*);
65  void SetInputData(int, vtkDataObject*);
67 
69 
74  void AddInputData(vtkDataObject*);
75  void AddInputData(int, vtkDataObject*);
77 
78 protected:
80  ~vtkCellGridAlgorithm() override;
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 
97  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
98 
99  // see algorithm for more info
101  int FillInputPortInformation(int port, vtkInformation* info) override;
102 
103 private:
105  void operator=(const vtkCellGridAlgorithm&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Visualization data composed of cells of arbitrary type.
Definition: vtkCellGrid.h:41
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54