Mon, 23 Sep 2019 14:06:36 +0300
added regular expressions for the parser
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); | |
16 | QVariant getProperty(Property property) const override; | |
17 | SetPropertyResult setProperty( | |
18 | Property property, | |
19 | const QVariant& value) override; | |
20 | private: | |
21 | Vertex point_1 = {}; | |
22 | Vertex point_2 = {}; | |
23 | }; |