222 |
222 |
223 // If we have not specified the center point of the circle yet, preview it on the screen. |
223 // If we have not specified the center point of the circle yet, preview it on the screen. |
224 if (m_drawedVerts.isEmpty()) |
224 if (m_drawedVerts.isEmpty()) |
225 { |
225 { |
226 QPoint pos2d = renderer()->convert3dTo2d (renderer()->position3D()); |
226 QPoint pos2d = renderer()->convert3dTo2d (renderer()->position3D()); |
227 renderer()->drawBlip (painter, pos2d); |
227 renderer()->drawPoint (painter, pos2d); |
228 renderer()->drawBlipCoordinates (painter, renderer()->position3D(), pos2d); |
228 renderer()->drawBlipCoordinates (painter, renderer()->position3D(), pos2d); |
229 return; |
229 return; |
230 } |
230 } |
231 |
231 |
232 QVector<Vertex> innerverts, outerverts; |
232 QVector<Vertex> innerverts, outerverts; |
293 lines << QLineF (innerverts2d[i], innerverts2d[i + 1]); |
293 lines << QLineF (innerverts2d[i], innerverts2d[i + 1]); |
294 } |
294 } |
295 |
295 |
296 // Draw green blips at where the points are |
296 // Draw green blips at where the points are |
297 for (QPointF const& point : innerverts2d + outerverts2d) |
297 for (QPointF const& point : innerverts2d + outerverts2d) |
298 renderer()->drawBlip (painter, point); |
298 renderer()->drawPoint (painter, point); |
299 |
299 |
300 // Draw edge lines |
300 // Draw edge lines |
301 painter.setPen (renderer()->linePen()); |
301 painter.setPen (renderer()->linePen()); |
302 painter.drawLines (lines); |
302 painter.drawLines (lines); |
303 |
303 |