Sun, 19 Jan 2020 02:54:48 +0200
commit work on GL rendering
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 | |
21 | 5 | class Model; |
6 | ||
13 | 7 | namespace linetypes |
3 | 8 | { |
9 | class SubfileReference; | |
10 | } | |
11 | ||
13 | 12 | class linetypes::SubfileReference : public ColoredObject |
3 | 13 | { |
14 | public: | |
15 | SubfileReference() = default; | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
16 | SubfileReference( |
21 | 17 | const Matrix4x4& transformation, |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
18 | const QString &referenceName, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
19 | const Color color = colors::main); |
3 | 20 | QVariant getProperty(Property property) const override; |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
21 | SetPropertyResult setProperty(Property property, const QVariant& value) override; |
6 | 22 | QString textRepresentation() const override; |
21 | 23 | void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
24 | Point3D position() const; | |
3 | 25 | private: |
21 | 26 | Model* resolve(DocumentManager* documents) const; |
27 | Matrix4x4 transformation; | |
3 | 28 | QString referenceName; |
29 | }; |