Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/linemesh.cpp
Show All 34 Lines | 33 | { | |||
---|---|---|---|---|---|
35 | setIndexOffset(0); | 35 | setIndexOffset(0); | ||
36 | setFirstInstance(0); | 36 | setFirstInstance(0); | ||
37 | setPrimitiveType(Qt3DRender::QGeometryRenderer::LineStrip); | 37 | setPrimitiveType(Qt3DRender::QGeometryRenderer::LineStrip); | ||
38 | 38 | | |||
39 | qRegisterMetaType<QVector<QVector4D>>("QVector<QVector4D>"); | 39 | qRegisterMetaType<QVector<QVector4D>>("QVector<QVector4D>"); | ||
40 | connect(&_gcode, &GcodeTo4D::posFinished, this, &LineMesh::posUpdate); | 40 | connect(&_gcode, &GcodeTo4D::posFinished, this, &LineMesh::posUpdate); | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | LineMesh::~LineMesh() | | |||
44 | { | | |||
45 | } | | |||
46 | | ||||
47 | void LineMesh::readAndRun(const QString &path) | 43 | void LineMesh::readAndRun(const QString &path) | ||
48 | { | 44 | { | ||
49 | _gcode.read(path); | 45 | _gcode.read(path); | ||
50 | } | 46 | } | ||
51 | 47 | | |||
52 | void LineMesh::read(const QString &path) | 48 | void LineMesh::read(const QString &path) | ||
53 | { | 49 | { | ||
54 | emit run(path); | 50 | emit run(path); | ||
Show All 15 Lines |