9 class linetypes::Edge : public ColoredObject |
9 class linetypes::Edge : public ColoredObject |
10 { |
10 { |
11 public: |
11 public: |
12 using BaseClass = ColoredObject; |
12 using BaseClass = ColoredObject; |
13 Edge() = default; |
13 Edge() = default; |
14 Edge(const Vertex& point_1, const Vertex& point_2, |
14 Edge(const Point3D& point_1, const Point3D& point_2, |
15 const Color colorIndex = colors::edge); |
15 const Color colorIndex = colors::edge); |
16 Edge(const QVector<Vertex>& vertices, const Color color); |
16 Edge(const QVector<Point3D>& vertices, const Color color); |
17 QVariant getProperty(Property property) const override; |
17 QVariant getProperty(Property property) const override; |
18 SetPropertyResult setProperty( |
18 SetPropertyResult setProperty( |
19 Property property, |
19 Property property, |
20 const QVariant& value) override; |
20 const QVariant& value) override; |
21 QString textRepresentation() const override; |
21 QString textRepresentation() const override; |
22 private: |
22 private: |
23 Vertex point_1 = {}; |
23 Point3D point_1 = {}; |
24 Vertex point_2 = {}; |
24 Point3D point_2 = {}; |
25 }; |
25 }; |