Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/axisgnomonentity.h
Show All 30 Lines | |||||
31 | 31 | | |||
32 | class AxisGnomonEntity : public Qt3DCore::QEntity | 32 | class AxisGnomonEntity : public Qt3DCore::QEntity | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | Q_PROPERTY(QVector2D position READ position WRITE setPosition NOTIFY positionChanged) | 35 | Q_PROPERTY(QVector2D position READ position WRITE setPosition NOTIFY positionChanged) | ||
36 | Q_PROPERTY(float scale READ scale WRITE setScale NOTIFY scaleChanged) | 36 | Q_PROPERTY(float scale READ scale WRITE setScale NOTIFY scaleChanged) | ||
37 | public: | 37 | public: | ||
38 | explicit AxisGnomonEntity(Qt3DCore::QNode *parent = nullptr); | 38 | explicit AxisGnomonEntity(Qt3DCore::QNode *parent = nullptr); | ||
39 | ~AxisGnomonEntity(); | 39 | ~AxisGnomonEntity() = default; | ||
40 | 40 | | |||
41 | QVector2D position() const; | 41 | QVector2D position() const; | ||
42 | float scale() const; | 42 | float scale() const; | ||
43 | 43 | | |||
44 | public Q_SLOTS: | 44 | public Q_SLOTS: | ||
45 | void setPosition(const QVector2D &position); | 45 | void setPosition(const QVector2D &position); | ||
46 | void setScale(float scale); | 46 | void setScale(float scale); | ||
47 | 47 | | |||
Show All 11 Lines |