Wed, 22 Jan 2020 22:41:17 +0200
modelview matrix set up
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; | |
26 | 25 | void invert() override; |
3 | 26 | private: |
21 | 27 | Model* resolve(DocumentManager* documents) const; |
28 | Matrix4x4 transformation; | |
3 | 29 | QString referenceName; |
26 | 30 | bool isInverted = false; |
3 | 31 | }; |