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

Method DotRenderable

src/core/renderables/renderable_implementation.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94// ### DotRenderable ###
95
96DotRenderable::DotRenderable(const PointSymbol* symbol, MapCoordF coord)
97 : Renderable(symbol->getInnerColor())
98{
99 double x = coord.x();
100 double y = coord.y();
101 double radius = (0.001 * symbol->getInnerRadius());
102 extent = QRectF(x - radius, y - radius, 2 * radius, 2 * radius);
103}
104
105PainterConfig DotRenderable::getPainterConfig(const QPainterPath* clip_path) const
106{

Callers

nothing calls this directly

Calls 5

getInnerColorMethod · 0.80
xMethod · 0.80
yMethod · 0.80
getInnerRadiusMethod · 0.80
QRectFClass · 0.50

Tested by

no test coverage detected