203 QFontMetrics metrics = QFontMetrics (QFont()); |
203 QFontMetrics metrics = QFontMetrics (QFont()); |
204 |
204 |
205 // If we have not specified the center point of the circle yet, preview it on the screen. |
205 // If we have not specified the center point of the circle yet, preview it on the screen. |
206 if (m_drawedVerts.isEmpty()) |
206 if (m_drawedVerts.isEmpty()) |
207 { |
207 { |
208 renderer()->drawBlip (painter, renderer()->convert3dTo2d (renderer()->position3D())); |
208 QPoint pos2d = renderer()->convert3dTo2d (renderer()->position3D()); |
|
209 renderer()->drawBlip (painter, pos2d); |
|
210 renderer()->drawBlipCoordinates (painter, renderer()->position3D(), pos2d); |
209 return; |
211 return; |
210 } |
212 } |
211 |
213 |
212 QVector<Vertex> innerverts, outerverts; |
214 QVector<Vertex> innerverts, outerverts; |
213 QVector<QPointF> innerverts2d, outerverts2d; |
215 QVector<QPointF> innerverts2d, outerverts2d; |
271 { |
273 { |
272 for (int i = 0; i < segments; ++i) |
274 for (int i = 0; i < segments; ++i) |
273 lines << QLineF (innerverts2d[i], innerverts2d[i + 1]); |
275 lines << QLineF (innerverts2d[i], innerverts2d[i + 1]); |
274 } |
276 } |
275 |
277 |
276 // Draw a green blips at where the points are |
278 // Draw green blips at where the points are |
277 for (QPointF const& point : innerverts2d + outerverts2d) |
279 for (QPointF const& point : innerverts2d + outerverts2d) |
278 renderer()->drawBlip (painter, point); |
280 renderer()->drawBlip (painter, point); |
279 |
281 |
280 // Draw edge lines |
282 // Draw edge lines |
281 painter.setPen (renderer()->linePen()); |
283 painter.setPen (renderer()->linePen()); |