Sun, 03 Nov 2019 12:56:42 +0200
added saving of splitter state and recent files
| 3 | 1 | #include <array> | 
| 2 | #include "modelobject.h" | |
| 3 | ||
| 4 | namespace modelobjects | |
| 5 | { | |
| 6 | class Triangle; | |
| 7 | class Quadrilateral; | |
| 8 | } | |
| 9 | ||
| 10 | class modelobjects::Triangle : public ColoredBaseObject | |
| 11 | { | |
| 12 | public: | |
| 13 | Triangle() = default; | |
| 14 | Triangle( | |
| 15 | const Vertex &point_1, | |
| 16 | const Vertex &point_2, | |
| 17 | const Vertex &point_3, | |
| 18 | Color color_index = colors::main); | |
| 
8
 
44679e468ba9
major update with many things
 
Teemu Piippo <teemu@hecknology.net> 
parents: 
6 
diff
changeset
 | 
19 | Triangle(const QVector<Vertex>& vertices, const Color color); | 
| 3 | 20 | QVariant getProperty(Property id) const override; | 
| 21 | SetPropertyResult setProperty(Property id, const QVariant& value) override; | |
| 6 | 22 | QString textRepresentation() const override; | 
| 3 | 23 | private: | 
| 24 | Vertex points[3] = {{}}; | |
| 25 | }; | |
| 26 | ||
| 27 | class modelobjects::Quadrilateral : public ColoredBaseObject | |
| 28 | { | |
| 29 | public: | |
| 30 | Quadrilateral() = default; | |
| 31 | Quadrilateral( | |
| 32 | const Vertex &point_1, | |
| 33 | const Vertex &point_2, | |
| 34 | const Vertex &point_3, | |
| 35 | const Vertex &point_4, | |
| 36 | Color color_index = colors::main); | |
| 
8
 
44679e468ba9
major update with many things
 
Teemu Piippo <teemu@hecknology.net> 
parents: 
6 
diff
changeset
 | 
37 | Quadrilateral(const QVector<Vertex>& vertices, const Color color); | 
| 3 | 38 | QVariant getProperty(Property id) const override; | 
| 39 | SetPropertyResult setProperty(Property id, const QVariant& value) override; | |
| 6 | 40 | QString textRepresentation() const override; | 
| 3 | 41 | private: | 
| 42 | Vertex points[4] = {{}}; | |
| 43 | }; |