VTK  9.3.20240328
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:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
48 
52  vtkTable* GetOutput() { return this->GetOutput(0); }
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 
83 
85 
86  // see algorithm for more info
89 
90 private:
91  vtkTableAlgorithm(const vtkTableAlgorithm&) = delete;
92  void operator=(const vtkTableAlgorithm&) = delete;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:161
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.
Superclass for algorithms that produce only vtkTables as output.
vtkTable * GetOutput(int index)
static vtkTableAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~vtkTableAlgorithm() override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTable * GetOutput()
Get the output data object for a port on this algorithm.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void SetInputData(int index, vtkDataObject *obj)
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:168
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkTypeBool
Definition: vtkABI.h:64