Sun, 19 Jan 2020 02:54:48 +0200
commit work on GL rendering
14 | 1 | #include "object.h" |
3 | 2 | |
13 | 3 | namespace linetypes |
3 | 4 | { |
5 | class Triangle; | |
6 | } | |
7 | ||
13 | 8 | class linetypes::Triangle : public ColoredObject |
3 | 9 | { |
10 | public: | |
11 | Triangle() = default; | |
12 | Triangle( | |
18 | 13 | const Point3D &point_1, |
14 | const Point3D &point_2, | |
15 | const Point3D &point_3, | |
13 | 16 | Color colorIndex = colors::main); |
18 | 17 | Triangle(const QVector<Point3D>& vertices, const Color color); |
3 | 18 | QVariant getProperty(Property id) const override; |
19 | SetPropertyResult setProperty(Property id, const QVariant& value) override; | |
6 | 20 | QString textRepresentation() const override; |
21 | 21 | void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
3 | 22 | private: |
18 | 23 | Point3D points[3] = {{}}; |
3 | 24 | }; |
25 |