MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / renderReferenceOverlay

Method renderReferenceOverlay

app/src/UI/Widgets/GPS.cpp:737–746  ·  view source on GitHub ↗

* @brief Draws the reference layer tile on top of the base tile. */

Source from the content-addressed store, hash-verified

735 * @brief Draws the reference layer tile on top of the base tile.
736 */
737void Widgets::GPS::renderReferenceOverlay(
738 QPainter* painter, int wrappedTx, int ty, int baseZoom, const QRect& targetRect)
739{
740 if (!m_enableReferenceLayer)
741 return;
742
743 const QString refUrl = referenceUrl(wrappedTx, ty, baseZoom);
744 if (s_tileCache.contains(refUrl))
745 painter->drawImage(targetRect, *s_tileCache.object(refUrl));
746}
747
748//--------------------------------------------------------------------------------------------------
749// Paint operations

Callers

nothing calls this directly

Calls 2

drawImageMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected