SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmmvis::ui::LegendDock Class Reference

#include <legenddock.h>

Inheritance diagram for openswmmvis::ui::LegendDock:
Collaboration diagram for openswmmvis::ui::LegendDock:

Public Member Functions

 LegendDock (QWidget *parent=nullptr)
 
 ~LegendDock () override=default
 
void setCanvas (MapCanvas *canvas)
 Re-bind to a (possibly null) canvas. Replaces the internal LegendLayerTreeModel so it reads from the new canvas's layer list.
 
MapCanvascanvas () const noexcept
 Currently bound canvas, or nullptr if unbound.
 

Constructor & Destructor Documentation

◆ LegendDock()

openswmmvis::ui::LegendDock::LegendDock ( QWidget *  parent = nullptr)
explicit

◆ ~LegendDock()

openswmmvis::ui::LegendDock::~LegendDock ( )
overridedefault

Member Function Documentation

◆ canvas()

MapCanvas * openswmmvis::ui::LegendDock::canvas ( ) const
noexcept

Currently bound canvas, or nullptr if unbound.

Defined out-of-line so QPointer<MapCanvas>::data() doesn't need to be instantiated in the header (MapCanvas is forward-declared).

Here is the caller graph for this function:

◆ setCanvas()

void openswmmvis::ui::LegendDock::setCanvas ( MapCanvas canvas)

Re-bind to a (possibly null) canvas. Replaces the internal LegendLayerTreeModel so it reads from the new canvas's layer list.

Here is the call graph for this function:

The documentation for this class was generated from the following files: