src/linetypes/triangle.h

changeset 33
4c41bfe2ec6e
parent 26
3a9e761e4faa
child 35
98906a94732f
equal deleted inserted replaced
32:767592024ec5 33:4c41bfe2ec6e
8 class linetypes::Triangle : public ColoredObject 8 class linetypes::Triangle : public ColoredObject
9 { 9 {
10 public: 10 public:
11 Triangle() = default; 11 Triangle() = default;
12 Triangle( 12 Triangle(
13 const Point3D &point_1, 13 const glm::vec3 &point_1,
14 const Point3D &point_2, 14 const glm::vec3 &point_2,
15 const Point3D &point_3, 15 const glm::vec3 &point_3,
16 Color colorIndex = colors::main); 16 Color colorIndex = colors::main);
17 Triangle(const QVector<Point3D>& vertices, const Color color); 17 Triangle(const QVector<glm::vec3>& vertices, const Color color);
18 QVariant getProperty(Property id) const override; 18 QVariant getProperty(Property id) const override;
19 SetPropertyResult setProperty(Property id, const QVariant& value) override; 19 SetPropertyResult setProperty(Property id, const QVariant& value) override;
20 QString textRepresentation() const override; 20 QString textRepresentation() const override;
21 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; 21 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override;
22 void invert() override; 22 void invert() override;
23 private: 23 private:
24 Point3D points[3] = {{}}; 24 glm::vec3 points[3] = {{}};
25 }; 25 };
26 26

mercurial