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
int points
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15