diff -r 1de2b8d64e9f -r 98906a94732f src/linetypes/edge.cpp --- a/src/linetypes/edge.cpp Tue Jan 28 23:34:49 2020 +0200 +++ b/src/linetypes/edge.cpp Thu Jan 30 19:20:11 2020 +0200 @@ -1,6 +1,6 @@ #include "edge.h" -linetypes::Edge::Edge( +ldraw::Edge::Edge( const glm::vec3& point_1, const glm::vec3& point_2, const Color color_index) : @@ -8,14 +8,14 @@ point_1{point_1}, point_2{point_2} {} -linetypes::Edge::Edge(const QVector& vertices, const Color color) : +ldraw::Edge::Edge(const QVector& vertices, const Color color) : ColoredObject{color}, point_1{vertices[0]}, point_2{vertices[1]} { } -QVariant linetypes::Edge::getProperty(Property property) const +QVariant ldraw::Edge::getProperty(Property property) const { switch (property) { @@ -28,7 +28,7 @@ } } -auto linetypes::Edge::setProperty(Property property, const QVariant& value) +auto ldraw::Edge::setProperty(Property property, const QVariant& value) -> SetPropertyResult { switch (property) @@ -44,12 +44,12 @@ } } -QString linetypes::Edge::textRepresentation() const +QString ldraw::Edge::textRepresentation() const { return utility::format("%1 %2", utility::vertexToStringParens(point_1), utility::vertexToStringParens(point_2)); } -void linetypes::Edge::getPolygons( +void ldraw::Edge::getPolygons( std::vector& polygons, GetPolygonsContext* context) const {