Sun, 03 Nov 2019 12:56:42 +0200
added saving of splitter state and recent files
3 | 1 | #pragma once |
2 | #include "objecttypes/modelobject.h" | |
3 | ||
4 | namespace modelobjects | |
5 | { | |
6 | class Edge; | |
7 | } | |
8 | ||
9 | class modelobjects::Edge : public ColoredBaseObject | |
10 | { | |
11 | public: | |
12 | using BaseClass = ColoredBaseObject; | |
13 | Edge() = default; | |
14 | Edge(const Vertex& point_1, const Vertex& point_2, | |
15 | const Color color_index = 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 | }; |