Fri, 08 Nov 2019 19:05:07 +0200
things
3 | 1 | #pragma once |
14 | 2 | #include "object.h" |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
3 | #include "matrix.h" |
3 | 4 | |
13 | 5 | namespace linetypes |
3 | 6 | { |
7 | class SubfileReference; | |
8 | } | |
9 | ||
13 | 10 | class linetypes::SubfileReference : public ColoredObject |
3 | 11 | { |
12 | public: | |
13 | SubfileReference() = default; | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
14 | SubfileReference( |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
15 | const Vertex& position, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
16 | const Matrix3x3& transformation, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
17 | const QString &referenceName, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
18 | const Color color = colors::main); |
3 | 19 | QVariant getProperty(Property property) const override; |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
20 | SetPropertyResult setProperty(Property property, const QVariant& value) override; |
6 | 21 | QString textRepresentation() const override; |
3 | 22 | private: |
23 | Vertex position; | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
24 | Matrix3x3 transformation; |
3 | 25 | QString referenceName; |
26 | }; |