VTK  9.5.20251216
vtkSumTables.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
18
19#ifndef vtkSumTables_h
20#define vtkSumTables_h
21
22#include "vtkDataArray.h" // For numeric key columns
23#include "vtkFiltersGeneralModule.h" // For export macro
24#include "vtkStringArray.h" // For string key columns
25#include "vtkTable.h" // For table inputs
26#include "vtkTableAlgorithm.h"
27
28#include <map> // For left and right key maps
29#include <string> // For LeftKey and RightKey
30
31VTK_ABI_NAMESPACE_BEGIN
32
33class VTKFILTERSGENERAL_EXPORT vtkSumTables : public vtkTableAlgorithm
34{
35public:
36 static vtkSumTables* New();
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
45
51
61 static bool SumTables(
62 vtkTable* aa, vtkTable* bb, bool checkOnly = false, bool allowAbstractColumns = false);
63
64protected:
66 ~vtkSumTables() override = default;
67
70
71private:
72 vtkSumTables(const vtkSumTables&) = delete;
73 void operator=(const vtkSumTables&) = delete;
74};
75
76VTK_ABI_NAMESPACE_END
77
78#endif // vtkSumTables_h
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
static vtkSumTables * New()
static bool SumTables(vtkTable *aa, vtkTable *bb, bool checkOnly=false, bool allowAbstractColumns=false)
Sum tables aa and bb, storing the result in aa.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetSourceConnection(vtkAlgorithmOutput *source)
Set a pipeline connection on port 1 for the right table.
void SetSourceData(vtkTable *source)
Specify input data on port 1 for the right table.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
~vtkSumTables() override=default
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)