forked from vhrdtech/vhrdcam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththickline.h
43 lines (31 loc) · 786 Bytes
/
thickline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef THICKLINE_H
#define THICKLINE_H
#include <QEntity>
class ThickLineMesh;
namespace Qt3DCore {
class QTransform;
}
namespace Qt3DRender {
class QMaterial;
class QLayer;
}
class ThickLineGeometry;
class ThickLine : public Qt3DCore::QEntity
{
Q_OBJECT
Q_PROPERTY(Qt3DRender::QLayer *layer READ layer WRITE setLayer NOTIFY layerChanged)
public:
ThickLine(Qt3DCore::QNode *parent = nullptr);
~ThickLine();
Q_INVOKABLE void call_smth_new();
void setLayer(Qt3DRender::QLayer *layer);
Qt3DRender::QLayer* layer() const;
ThickLineGeometry * geometry() const;
signals:
void layerChanged();
private:
ThickLineMesh *m_mesh;
Qt3DCore::QTransform *m_transform;
Qt3DRender::QMaterial *m_material;
};
#endif // THICKLINE_H