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
NodePickSession Class Reference

#include <nodepicksession.h>

Inheritance diagram for NodePickSession:
Collaboration diagram for NodePickSession:

Signals

void nodePicked (SWMMModelLayer *layer, const QString &name, int nodeIdx)
 
void cancelled ()
 

Public Member Functions

 NodePickSession (MapCanvas *canvas, QObject *parent=nullptr)
 
 ~NodePickSession () override
 
bool isActive () const
 
void finish ()
 

Constructor & Destructor Documentation

◆ NodePickSession()

NodePickSession::NodePickSession ( MapCanvas canvas,
QObject *  parent = nullptr 
)
explicit

Starts picking immediately on canvas (no-op, inactive, when null).

Here is the call graph for this function:

◆ ~NodePickSession()

NodePickSession::~NodePickSession ( )
override
Here is the call graph for this function:

Member Function Documentation

◆ cancelled

void NodePickSession::cancelled ( )
signal

Escape, or the user switched to another canvas tool. Already finished.

Here is the caller graph for this function:

◆ finish()

void NodePickSession::finish ( )

Restore the previous tool. Idempotent; the destructor calls it.

Here is the caller graph for this function:

◆ isActive()

bool NodePickSession::isActive ( ) const

True while the pick tool is the canvas's active tool.

◆ nodePicked

void NodePickSession::nodePicked ( SWMMModelLayer layer,
const QString &  name,
int  nodeIdx 
)
signal

The user clicked node name (index nodeIdx) of layer. The session stays active until finish() — reject and keep waiting, or accept and finish.

Here is the caller graph for this function:

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