Fri, 08 Nov 2019 19:05:07 +0200
things
14 | 1 | #include "object.h" |
3 | 2 | |
13 | 3 | namespace linetypes |
3 | 4 | { |
5 | class Triangle; | |
6 | } | |
7 | ||
13 | 8 | class linetypes::Triangle : public ColoredObject |
3 | 9 | { |
10 | public: | |
11 | Triangle() = default; | |
12 | Triangle( | |
13 | const Vertex &point_1, | |
14 | const Vertex &point_2, | |
15 | const Vertex &point_3, | |
13 | 16 | Color colorIndex = colors::main); |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
17 | Triangle(const QVector<Vertex>& vertices, const Color color); |
3 | 18 | QVariant getProperty(Property id) const override; |
19 | SetPropertyResult setProperty(Property id, const QVariant& value) override; | |
6 | 20 | QString textRepresentation() const override; |
3 | 21 | private: |
22 | Vertex points[3] = {{}}; | |
23 | }; | |
24 |