Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/gridmesh.h
Show All 27 Lines | |||||
28 | #include <QSize> | 28 | #include <QSize> | ||
29 | 29 | | |||
30 | class GridMesh : public Qt3DRender::QGeometryRenderer | 30 | class GridMesh : public Qt3DRender::QGeometryRenderer | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | Q_PROPERTY(QSize meshResolution READ meshResolution WRITE setMeshResolution NOTIFY meshResolutionChanged) | 33 | Q_PROPERTY(QSize meshResolution READ meshResolution WRITE setMeshResolution NOTIFY meshResolutionChanged) | ||
34 | public: | 34 | public: | ||
35 | explicit GridMesh(Qt3DCore::QNode *parent = nullptr); | 35 | explicit GridMesh(Qt3DCore::QNode *parent = nullptr); | ||
36 | ~GridMesh(); | 36 | ~GridMesh() = default; | ||
37 | 37 | | |||
38 | QSize meshResolution() const; | 38 | QSize meshResolution() const; | ||
39 | 39 | | |||
40 | public slots: | 40 | public slots: | ||
41 | void setMeshResolution(const QSize &meshResolution); | 41 | void setMeshResolution(const QSize &meshResolution); | ||
42 | 42 | | |||
43 | signals: | 43 | signals: | ||
44 | void meshResolutionChanged(const QSize &meshResolution); | 44 | void meshResolutionChanged(const QSize &meshResolution); | ||
45 | 45 | | |||
46 | private: | 46 | private: | ||
47 | QSize m_meshResolution; | 47 | QSize m_meshResolution; | ||
48 | }; | 48 | }; |