ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
modeltovtktableconverter.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "../qPCL.h"
11 #include "signalledrunable.h"
12 
13 class vtkTable;
14 namespace VtkUtils {
15 class TableModel;
17  Q_OBJECT
18 public:
19  explicit ModelToVtkTableConverter(TableModel* model);
20 
21  void setLabels(const QStringList& labels);
22  QStringList labels() const;
23 
24  void run();
25 
26  vtkTable* table() const;
27 
28 private:
29  TableModel* m_model = nullptr;
30  vtkTable* m_table = nullptr;
31  QStringList m_labels;
32 };
33 
34 } // namespace VtkUtils
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15