ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
modeltopointsconverter.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 <QList>
11 #include <QVector>
12 
13 #include "point3f.h"
14 #include "signalledrunable.h"
15 #include "tablemodel.h"
16 #include "utils.h"
17 
18 namespace VtkUtils {
19 
21  Q_OBJECT
22 public:
23  explicit ModelToPointsConverter(TableModel* model);
24 
25  QList<Point3F> points() const;
26  QVector<Tuple3ui> vertices() const;
27 
28  void run();
29 
30 private:
31  TableModel* m_model = nullptr;
32  QList<Point3F> m_points;
33 };
34 
35 } // 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
tablemodel.h
VtkUtils::Point3F
Definition: point3f.h:14
modeltopointsconverter.h
VtkUtils::SignalledRunnable::finished
void finished()
VtkUtils::TableModel::verticesData
QVector< Tuple3ui > verticesData() const
Definition: tablemodel.cpp:225
VtkUtils::ModelToPointsConverter::points
QList< Point3F > points() const
Definition: modeltopointsconverter.cpp:17
VtkUtils::ModelToPointsConverter::ModelToPointsConverter
ModelToPointsConverter(TableModel *model)
Definition: modeltopointsconverter.cpp:14
VtkUtils::TableModel
Definition: tablemodel.h:21
points
int points
Definition: FileIOFactory.cpp:144
VtkUtils::ModelToPointsConverter
Definition: modeltopointsconverter.h:20
VtkUtils::ModelToPointsConverter::run
void run()
Definition: modeltopointsconverter.cpp:23
QPCL_ENGINE_LIB_API
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
VtkUtils
Definition: VtkMultiTextureRenderer.cpp:46
VtkUtils::ModelToPointsConverter::vertices
QVector< Tuple3ui > vertices() const
Definition: modeltopointsconverter.cpp:19
VtkUtils::SignalledRunnable
Definition: signalledrunable.h:17
point3f.h
signalledrunable.h