vtkPVMergeTables.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVMergeTables.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef vtkPVMergeTables_h
33 #define vtkPVMergeTables_h
34 
35 #include "vtkPVVTKExtensionsMiscModule.h" // needed for export macro
36 #include "vtkSmartPointer.h" // needed for vtkSmartPointer.
37 #include "vtkTableAlgorithm.h"
38 
39 #include <vector> // needed for std::vector.
40 
42 {
43 public:
44  static vtkPVMergeTables* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48 protected:
50  ~vtkPVMergeTables() override;
51 
53 
54  int FillInputPortInformation(int port, vtkInformation* info) override;
56 
57  static std::vector<vtkTable*> GetTables(vtkInformationVector* inputVector);
58  static void MergeTables(vtkTable* output, const std::vector<vtkTable*>& tables);
59 
60 private:
61  vtkPVMergeTables(const vtkPVMergeTables&) = delete;
62  void operator=(const vtkPVMergeTables&) = delete;
63 };
64 
65 #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 &)