| |
1 #include "object.h" |
| |
2 |
| |
3 namespace linetypes |
| |
4 { |
| |
5 class Triangle; |
| |
6 } |
| |
7 |
| |
8 class linetypes::Triangle : public ColoredObject |
| |
9 { |
| |
10 public: |
| |
11 Triangle() = default; |
| |
12 Triangle( |
| |
13 const Vertex &point_1, |
| |
14 const Vertex &point_2, |
| |
15 const Vertex &point_3, |
| |
16 Color colorIndex = colors::main); |
| |
17 Triangle(const QVector<Vertex>& vertices, const Color color); |
| |
18 QVariant getProperty(Property id) const override; |
| |
19 SetPropertyResult setProperty(Property id, const QVariant& value) override; |
| |
20 QString textRepresentation() const override; |
| |
21 private: |
| |
22 Vertex points[3] = {{}}; |
| |
23 }; |
| |
24 |