11 public: |
11 public: |
12 using BaseClass = ColoredObject; |
12 using BaseClass = ColoredObject; |
13 Edge() = default; |
13 Edge() = default; |
14 Edge(const glm::vec3& point_1, const glm::vec3& point_2, |
14 Edge(const glm::vec3& point_1, const glm::vec3& point_2, |
15 const Color colorIndex = ldraw::edgeColor); |
15 const Color colorIndex = ldraw::edgeColor); |
16 Edge(const QVector<glm::vec3>& vertices, const Color color); |
16 Edge(const std::array<glm::vec3, 2>& 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 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
22 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
23 private: |
|
24 glm::vec3 point_1 = {}; |
23 glm::vec3 point_1 = {}; |
25 glm::vec3 point_2 = {}; |
24 glm::vec3 point_2 = {}; |
26 }; |
25 }; |