| 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 std::array<glm::vec3, 2>& 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( |
|
| 19 Property property, |
|
| 20 const QVariant& value) override; |
|
| 21 QString textRepresentation() const override; |
18 QString textRepresentation() const override; |
| 22 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
19 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
| 23 int numPoints() const override; |
20 int numPoints() const override; |
| 24 const glm::vec3& getPoint(int index) const override; |
21 const glm::vec3& getPoint(int index) const override; |
| 25 glm::vec3 point_1 = {}; |
22 glm::vec3 point_1 = {}; |
| 26 glm::vec3 point_2 = {}; |
23 glm::vec3 point_2 = {}; |
| |
24 protected: |
| |
25 void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair) override; |
| 27 }; |
26 }; |