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::ExtensionLayerBridge Class Referencefinal

Per-session layer membership identities, semantic watchers and validated commands. More...

#include <extensionviewaccess.h>

Inheritance diagram for openswmmvis::ExtensionLayerBridge:
Collaboration diagram for openswmmvis::ExtensionLayerBridge:

Classes

struct  Data
 Private per-session attachment map and guarded native signal wiring. More...
 

Public Member Functions

 ExtensionLayerBridge (SWMMVisProjectWindow *window, ViewEventSink changed)
 Attach watchers to the current canvas and future membership changes.
 
 ~ExtensionLayerBridge () override
 Disconnect per-membership watchers before releasing private state.
 
QList< OpenSWMM::Sdk::LayerViewState > snapshot () const
 Read native layer metadata outside public getters.
 
QUuid identity (OpenSWMMVisLayer *layer) const
 Resolve an already tracked native pointer to its runtime attachment.
 
OpenSWMMVisLayer * resolve (const QUuid &id) const
 Resolve a current runtime attachment for private controller use.
 
bool execute (const OpenSWMM::Sdk::ViewCommand &command, QString *error)
 Dispatch a validated layer action using its native controller.
 
QList< qint64 > selectedFeatures (const QUuid &id, int offset, int limit) const
 Copy a sorted bounded page of current vector selection identities.
 

Detailed Description

Per-session layer membership identities, semantic watchers and validated commands.

Constructor & Destructor Documentation

◆ ExtensionLayerBridge()

openswmmvis::ExtensionLayerBridge::ExtensionLayerBridge ( SWMMVisProjectWindow *  window,
ViewEventSink  changed 
)

Attach watchers to the current canvas and future membership changes.

Parameters
[in]windowNative owner and canvas source.
[in]changedCopied metadata-change sink; no callback is required during construction.
Here is the call graph for this function:

◆ ~ExtensionLayerBridge()

openswmmvis::ExtensionLayerBridge::~ExtensionLayerBridge ( )
override

Disconnect per-membership watchers before releasing private state.

Member Function Documentation

◆ execute()

bool openswmmvis::ExtensionLayerBridge::execute ( const OpenSWMM::Sdk::ViewCommand &  command,
QString *  error 
)

Dispatch a validated layer action using its native controller.

Parameters
[in]commandRequest; session/availability validated by the coordinator.
[out]errorOptional refusal detail, cleared on success.
Returns
True for accepted layer actions/no-ops, false for unsupported/invalid input.
Here is the call graph for this function:

◆ identity()

QUuid openswmmvis::ExtensionLayerBridge::identity ( OpenSWMMVisLayer *  layer) const

Resolve an already tracked native pointer to its runtime attachment.

Parameters
[in]layerBorrowed native pointer; never adopted.
Returns
Current attachment UUID, or null when detached.

◆ resolve()

OpenSWMMVisLayer * openswmmvis::ExtensionLayerBridge::resolve ( const QUuid &  id) const

Resolve a current runtime attachment for private controller use.

Parameters
[in]idRuntime attachment identity.
Returns
Borrowed native layer, or null after detachment/destruction.
Here is the caller graph for this function:

◆ selectedFeatures()

QList< qint64 > openswmmvis::ExtensionLayerBridge::selectedFeatures ( const QUuid &  id,
int  offset,
int  limit 
) const

Copy a sorted bounded page of current vector selection identities.

Parameters
[in]idRuntime attachment UUID.
[in]offsetNonnegative sorted-result offset.
[in]limitPositive requested count, capped at 5000.
Returns
Copied FIDs or empty for unavailable/non-vector/invalid input.
Here is the call graph for this function:

◆ snapshot()

QList< LayerViewState > openswmmvis::ExtensionLayerBridge::snapshot ( ) const

Read native layer metadata outside public getters.

Returns
Ordered copied current attachment metadata.

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