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
VtkUtils::TableModel::rowCount
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: tablemodel.cpp:182
utils.h
VtkUtils::TableModel::data
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: tablemodel.cpp:213
VtkUtils::TableModel::columnCount
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: tablemodel.cpp:187
VtkUtils::ModelToVtkTableConverter
Definition: modeltovtktableconverter.h:16
VtkUtils::ModelToVtkTableConverter::labels
QStringList labels() const
Definition: modeltovtktableconverter.cpp:26
tablemodel.h
VtkUtils::ModelToVtkTableConverter::setLabels
void setLabels(const QStringList &labels)
Definition: modeltovtktableconverter.cpp:22
vtkSmartPointer< vtkDoubleArray >
VtkUtils::SignalledRunnable::finished
void finished()
VtkUtils::vtkInitOnce
void vtkInitOnce(T **obj)
Definition: vtkutils.h:44
VtkUtils::TableModel
Definition: tablemodel.h:21
vtkutils.h
modeltovtktableconverter.h
QPCL_ENGINE_LIB_API
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
VtkUtils::ModelToVtkTableConverter::run
void run()
Definition: modeltovtktableconverter.cpp:28
VtkUtils
Definition: VtkMultiTextureRenderer.cpp:46
VtkUtils::SignalledRunnable
Definition: signalledrunable.h:17
VtkUtils::ModelToVtkTableConverter::table
vtkTable * table() const
Definition: modeltovtktableconverter.cpp:60
VtkUtils::ModelToVtkTableConverter::ModelToVtkTableConverter
ModelToVtkTableConverter(TableModel *model)
Definition: modeltovtktableconverter.cpp:19
signalledrunable.h