MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / pixelToLength

Method pixelToLength

src/core/map_view.cpp:238–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238qreal MapView::pixelToLength(qreal pixel) const
239{
240 return Util::pixelToMMPhysical(pixel / zoom) * 1000.0;
241}
242
243QRectF MapView::calculateViewedRect(QRectF rect) const
244{

Callers 15

clickReleaseMethod · 0.80
snapToObjectMethod · 0.80
finishCuttingAreaMethod · 0.80
findEditPointMethod · 0.80
finishDrawingMethod · 0.80
clickReleaseMethod · 0.80
updateDirtyRectImplMethod · 0.80
updateHoverStateMethod · 0.80
clickPressMethod · 0.80
clickReleaseMethod · 0.80
updateDirtyRectImplMethod · 0.80
updateHoverStateMethod · 0.80

Calls 1

pixelToMMPhysicalFunction · 0.85

Tested by

no test coverage detected