Wed, 22 Jan 2020 22:41:17 +0200
modelview matrix set up
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; |
26 | 22 | void invert() override; |
3 | 23 | private: |
18 | 24 | Point3D points[3] = {{}}; |
3 | 25 | }; |
26 |