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

Method renderCommon

src/core/renderables/renderable_implementation.cpp:768–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768void TextRenderable::renderCommon(QPainter& painter, const RenderConfig& config) const
769{
770 bool disable_antialiasing = config.options.testFlag(RenderConfig::Screen) && !(Settings::getInstance().getSettingCached(Settings::MapDisplay_TextAntialiasing).toBool());
771 if (disable_antialiasing)
772 {
773 painter.setRenderHint(QPainter::Antialiasing, false);
774 painter.setRenderHint(QPainter::TextAntialiasing, false);
775 }
776
777 painter.translate(anchor_x, anchor_y);
778 if (rotation != 0.0)
779 painter.rotate(rotation);
780 painter.scale(scale_factor, scale_factor);
781 painter.drawPath(path);
782}
783
784
785

Callers

nothing calls this directly

Calls 6

testFlagMethod · 0.80
getSettingCachedMethod · 0.80
translateMethod · 0.45
rotateMethod · 0.45
scaleMethod · 0.45
drawPathMethod · 0.45

Tested by

no test coverage detected