46 |
46 |
47 QString linetypes::Edge::textRepresentation() const |
47 QString linetypes::Edge::textRepresentation() const |
48 { |
48 { |
49 return utility::format("%1 %2", vertexToStringParens(point_1), vertexToStringParens(point_2)); |
49 return utility::format("%1 %2", vertexToStringParens(point_1), vertexToStringParens(point_2)); |
50 } |
50 } |
|
51 |
|
52 void linetypes::Edge::getPolygons( |
|
53 std::vector<gl::Polygon>& polygons, |
|
54 GetPolygonsContext* context) const |
|
55 { |
|
56 Q_UNUSED(context) |
|
57 polygons.push_back(gl::edgeLine(this->point_1, this->point_2, this->colorIndex, this->id)); |
|
58 } |