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::FeatureLayerPanel Class Reference

#include <featurelayerpanel.h>

Inheritance diagram for openswmmvis::ui::FeatureLayerPanel:
Collaboration diagram for openswmmvis::ui::FeatureLayerPanel:

Public Slots

void refreshLayerList ()
 Re-read the layer list from the canvas, preserving the selection where the layer still exists.
 
void selectLayer (FeatureLayer *layer)
 Select layer if it is in the list.
 

Signals

void activeLayerChanged (FeatureLayer *layer)
 The edit target changed; the tools re-target on this.
 
void newLayerRequested ()
 The user asked to create a layer. The host owns the dialog and the project-GeoPackage path, so the panel only asks.
 
void importRequested (FeatureLayer *into)
 
void exportRequested (FeatureLayer *layer)
 
void message (const QString &text)
 A non-fatal message for the status bar.
 

Public Member Functions

 FeatureLayerPanel (QWidget *parent=nullptr)
 
void setCanvas (MapCanvas *canvas)
 Bind to canvas. Passing nullptr detaches and clears.
 
MapCanvascanvas () const
 
FeatureLayeractiveLayer () const
 The layer the drawing / editing tools should write into.
 

Constructor & Destructor Documentation

◆ FeatureLayerPanel()

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

Member Function Documentation

◆ activeLayer()

FeatureLayer * openswmmvis::ui::FeatureLayerPanel::activeLayer ( ) const
inline

The layer the drawing / editing tools should write into.

◆ activeLayerChanged

void openswmmvis::ui::FeatureLayerPanel::activeLayerChanged ( FeatureLayer layer)
signal

The edit target changed; the tools re-target on this.

◆ canvas()

MapCanvas * openswmmvis::ui::FeatureLayerPanel::canvas ( ) const
inline
Here is the caller graph for this function:

◆ exportRequested

void openswmmvis::ui::FeatureLayerPanel::exportRequested ( FeatureLayer layer)
signal

◆ importRequested

void openswmmvis::ui::FeatureLayerPanel::importRequested ( FeatureLayer into)
signal

◆ message

void openswmmvis::ui::FeatureLayerPanel::message ( const QString &  text)
signal

A non-fatal message for the status bar.

◆ newLayerRequested

void openswmmvis::ui::FeatureLayerPanel::newLayerRequested ( )
signal

The user asked to create a layer. The host owns the dialog and the project-GeoPackage path, so the panel only asks.

◆ refreshLayerList

void openswmmvis::ui::FeatureLayerPanel::refreshLayerList ( )
slot

Re-read the layer list from the canvas, preserving the selection where the layer still exists.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectLayer

void openswmmvis::ui::FeatureLayerPanel::selectLayer ( FeatureLayer layer)
slot

Select layer if it is in the list.

Here is the call graph for this function:

◆ setCanvas()

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

Bind to canvas. Passing nullptr detaches and clears.

Here is the call graph for this function:

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