Mon, 09 Mar 2020 23:42:26 +0200
added some meta stuff, simplified quadrilateral splitting and tested it
3 | 1 | #pragma once |
14 | 2 | #include "object.h" |
3 | 3 | |
21 | 4 | class Model; |
5 | ||
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
33
diff
changeset
|
6 | namespace ldraw |
3 | 7 | { |
8 | class SubfileReference; | |
9 | } | |
10 | ||
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
33
diff
changeset
|
11 | class ldraw::SubfileReference : public ColoredObject |
3 | 12 | { |
13 | public: | |
14 | SubfileReference() = default; | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
15 | SubfileReference( |
33
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
26
diff
changeset
|
16 | const glm::mat4& transformation, |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
17 | const QString &referenceName, |
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
33
diff
changeset
|
18 | const Color color = ldraw::mainColor); |
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; |
21 | 22 | void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
33
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
26
diff
changeset
|
23 | glm::vec3 position() const; |
26 | 24 | void invert() override; |
21 | 25 | Model* resolve(DocumentManager* documents) const; |
33
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
26
diff
changeset
|
26 | glm::mat4 transformation; |
3 | 27 | QString referenceName; |
26 | 28 | bool isInverted = false; |
3 | 29 | }; |