sec_interp.gui.preview_legend_renderer module

class sec_interp.gui.preview_legend_renderer.PreviewLegendRenderer[source]

Bases: object

Handles drawing the map legend for the profile preview.

static draw_legend(painter: qgis.PyQt.QtGui.QPainter, rect: qgis.PyQt.QtCore.QRectF, active_units: dict[str, qgis.PyQt.QtGui.QColor], has_topography: bool = False, has_structures: bool = False) None[source]

Draw legend on the given painter within the rect.