sec_interp.gui.preview_legend_renderer module

Legend rendering logic for SecInterp preview.

Handles the drawing of the legend on a QPainter, including topography, structures, and geological units.

class sec_interp.gui.preview_legend_renderer.PreviewLegendRenderer

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

Draw legend on the given painter within the rect.