VTK  9.3.1
vtkTableAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
26 #ifndef vtkTableAlgorithm_h
27 #define vtkTableAlgorithm_h
28 
29 #include "vtkAlgorithm.h"
30 #include "vtkCommonExecutionModelModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkDataSet;
34 class vtkTable;
35 
36 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTableAlgorithm : public vtkAlgorithm
37 {
38 public:
39  static vtkTableAlgorithm* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
48 
52  vtkTable* GetOutput() { return this->GetOutput(0); }
53  vtkTable* GetOutput(int index);
54 
60  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
61  void SetInputData(int index, vtkDataObject* obj);
62 
63 protected:
65  ~vtkTableAlgorithm() override;
66 
67  // convenience method
68  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
69  vtkInformationVector* outputVector);
70 
75  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
76  vtkInformationVector* outputVector);
77 
82  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
83 
84  // see algorithm for more info
87 
88 private:
89  vtkTableAlgorithm(const vtkTableAlgorithm&) = delete;
90  void operator=(const vtkTableAlgorithm&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #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...
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.
a simple class to control print indentation
Definition: vtkIndent.h:28
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:58
Superclass for algorithms that produce only vtkTables as output.
vtkTable * GetOutput()
Get the output data object for a port on this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54