Sun, 26 Jan 2020 01:06:27 +0200
fix default angle
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; |
18 | 14 | Edge(const Point3D& point_1, const Point3D& point_2, |
13 | 15 | const Color colorIndex = colors::edge); |
18 | 16 | Edge(const QVector<Point3D>& 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; |
21 | 22 | void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
3 | 23 | private: |
18 | 24 | Point3D point_1 = {}; |
25 | Point3D point_2 = {}; | |
3 | 26 | }; |