VTK  9.3.20240424
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
32VTK_ABI_NAMESPACE_BEGIN
33class vtkDataSet;
34class vtkTable;
35
36class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTableAlgorithm : public vtkAlgorithm
37{
38public:
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
63protected:
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
87 int FillOutputPortInformation(int port, vtkInformation* info) override;
88 int FillInputPortInformation(int port, vtkInformation* info) override;
89
90private:
91 vtkTableAlgorithm(const vtkTableAlgorithm&) = delete;
92 void operator=(const vtkTableAlgorithm&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
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.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTable * GetOutput(int index)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
static vtkTableAlgorithm * New()
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~vtkTableAlgorithm() override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTable * GetOutput()
Get the output data object for a port on this algorithm.
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.
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
int vtkTypeBool
Definition vtkABI.h:64