| 1 #pragma once |
1 #pragma once |
| 2 #include "modelobject.h" |
2 #include "modelobject.h" |
| |
3 #include "matrix.h" |
| 3 |
4 |
| 4 namespace modelobjects |
5 namespace modelobjects |
| 5 { |
6 { |
| 6 class SubfileReference; |
7 class SubfileReference; |
| 7 } |
8 } |
| 8 |
9 |
| 9 class modelobjects::SubfileReference : ColoredBaseObject |
10 class modelobjects::SubfileReference : public ColoredBaseObject |
| 10 { |
11 { |
| 11 public: |
12 public: |
| 12 SubfileReference() = default; |
13 SubfileReference() = default; |
| |
14 SubfileReference( |
| |
15 const Vertex& position, |
| |
16 const Matrix3x3& transformation, |
| |
17 const QString &referenceName, |
| |
18 const Color color = colors::main); |
| 13 QVariant getProperty(Property property) const override; |
19 QVariant getProperty(Property property) const override; |
| |
20 SetPropertyResult setProperty(Property property, const QVariant& value) override; |
| 14 QString textRepresentation() const override; |
21 QString textRepresentation() const override; |
| 15 private: |
22 private: |
| 16 Vertex position; |
23 Vertex position; |
| 17 QMatrix3x3 transformation; |
24 Matrix3x3 transformation; |
| 18 QString referenceName; |
25 QString referenceName; |
| 19 }; |
26 }; |