Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/linemesh.h
Show All 31 Lines | |||||
32 | class QString; | 32 | class QString; | ||
33 | 33 | | |||
34 | class LineMesh : public Qt3DRender::QGeometryRenderer | 34 | class LineMesh : public Qt3DRender::QGeometryRenderer | ||
35 | { | 35 | { | ||
36 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | 37 | | |||
38 | public: | 38 | public: | ||
39 | explicit LineMesh(Qt3DCore::QNode *parent = Q_NULLPTR); | 39 | explicit LineMesh(Qt3DCore::QNode *parent = Q_NULLPTR); | ||
40 | ~LineMesh(); | 40 | ~LineMesh() = default; | ||
41 | void read(const QString &path); | 41 | void read(const QString &path); | ||
42 | Q_INVOKABLE void readAndRun(const QString &path); | 42 | Q_INVOKABLE void readAndRun(const QString &path); | ||
43 | void posUpdate(const QVector<QVector4D> &pos); | 43 | void posUpdate(const QVector<QVector4D> &pos); | ||
44 | 44 | | |||
45 | signals: | 45 | signals: | ||
46 | void finished(); | 46 | void finished(); | ||
47 | void run(const QString &path); | 47 | void run(const QString &path); | ||
48 | 48 | | |||
49 | private: | 49 | private: | ||
50 | GcodeTo4D _gcode; | 50 | GcodeTo4D _gcode; | ||
51 | LineMeshGeometry *_lineMeshGeo; | 51 | LineMeshGeometry *_lineMeshGeo; | ||
52 | }; | 52 | }; |