Wed, 18 Mar 2020 15:52:16 +0200
refactor, added splitter
3 | 1 | #pragma once |
2 | #include "edge.h" | |
3 | ||
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
33
diff
changeset
|
4 | namespace ldraw |
3 | 5 | { |
6 | class ConditionalEdge; | |
7 | } | |
8 | ||
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
33
diff
changeset
|
9 | class ldraw::ConditionalEdge : public Edge |
3 | 10 | { |
11 | public: | |
12 | ConditionalEdge() = default; | |
13 | ConditionalEdge( | |
33
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
18
diff
changeset
|
14 | const glm::vec3& point_1, |
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
18
diff
changeset
|
15 | const glm::vec3& point_2, |
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
18
diff
changeset
|
16 | const glm::vec3& controlPoint_1, |
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
18
diff
changeset
|
17 | const glm::vec3& controlPoint_2, |
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 colorIndex = ldraw::edgeColor); |
77
028798a72591
added some meta stuff, simplified quadrilateral splitting and tested it
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
19 | ConditionalEdge(const std::array<glm::vec3, 4>& vertices, const Color color); |
3 | 20 | QVariant getProperty(Property property) const override; |
21 | SetPropertyResult setProperty( | |
22 | Property property, | |
23 | const QVariant& value) override; | |
6 | 24 | QString textRepresentation() const override; |
81
62373840e33a
object editor widgets start to form up
Teemu Piippo <teemu@hecknology.net>
parents:
77
diff
changeset
|
25 | int numPoints() const override; |
62373840e33a
object editor widgets start to form up
Teemu Piippo <teemu@hecknology.net>
parents:
77
diff
changeset
|
26 | const glm::vec3& getPoint(int index) const override; |
33
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
18
diff
changeset
|
27 | glm::vec3 controlPoint_1 = {}; |
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
18
diff
changeset
|
28 | glm::vec3 controlPoint_2 = {}; |
3 | 29 | }; |