Sun, 03 Nov 2019 18:17:08 +0200
split quadrilateral and triangle into their own source files
3 | 1 | #pragma once |
14 | 2 | #include "object.h" |
3 | 3 | |
13 | 4 | namespace linetypes |
3 | 5 | { |
6 | class Edge; | |
7 | } | |
8 | ||
13 | 9 | class linetypes::Edge : public ColoredObject |
3 | 10 | { |
11 | public: | |
13 | 12 | using BaseClass = ColoredObject; |
3 | 13 | Edge() = default; |
14 | Edge(const Vertex& point_1, const Vertex& point_2, | |
13 | 15 | const Color colorIndex = colors::edge); |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
16 | Edge(const QVector<Vertex>& vertices, const Color color); |
3 | 17 | QVariant getProperty(Property property) const override; |
18 | SetPropertyResult setProperty( | |
19 | Property property, | |
20 | const QVariant& value) override; | |
6 | 21 | QString textRepresentation() const override; |
3 | 22 | private: |
23 | Vertex point_1 = {}; | |
24 | Vertex point_2 = {}; | |
25 | }; |