vtkPVMergeTables.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkPVMergeTables_h
21 #define vtkPVMergeTables_h
22 
23 #include "vtkPVVTKExtensionsMiscModule.h" // needed for export macro
24 #include "vtkSmartPointer.h" // needed for vtkSmartPointer.
25 #include "vtkTableAlgorithm.h"
26 
27 #include <vector> // needed for std::vector.
28 
30 {
31 public:
32  static vtkPVMergeTables* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
36  static vtkSmartPointer<vtkTable> MergeTables(const std::vector<vtkTable*>& tables);
37 
38 protected:
40  ~vtkPVMergeTables() override;
41 
43 
44  int FillInputPortInformation(int port, vtkInformation* info) override;
46 
47  static std::vector<vtkTable*> GetTables(vtkInformationVector* inputVector);
48  static void MergeTables(vtkTable* output, const std::vector<vtkTable*>& tables);
49 
50 private:
51  vtkPVMergeTables(const vtkPVMergeTables&) = delete;
52  void operator=(const vtkPVMergeTables&) = delete;
53 };
54 
55 #endif
virtual vtkExecutive * CreateDefaultExecutive()
static vtkTableAlgorithm * New()
used to merge rows in tables.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTKPVVTKEXTENSIONSMISC_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void operator=(const vtkObjectBase &)