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::ExtensionResultsBridge::Data Struct Reference

Private attached-reader records; QObject connection handles have explicit ownership. More...

Collaboration diagram for openswmmvis::ExtensionResultsBridge::Data:

Classes

struct  Record
 One attached native results object and its last diff baseline. More...
 

Public Member Functions

ResultsViewState read (OpenSWMMVisLayer *base) const
 Read current native metadata without source discovery or frame data reads.
 
void publish (ViewEventKind kind, const ResultsViewState &state)
 Publish a bounded invalidation using copied attachment/source identities.
 
void refresh (OpenSWMMVisLayer *base)
 Diff semantic state; repeated count/time/style notifications are inert.
 
void watchStyles (SWMM2DResultsLayer *layer)
 Replace channel watchers after dynamic sublayer membership changes.
 
void attach (OpenSWMMVisLayer *base, bool announce)
 Attach one results layer once, optionally seeding a future-membership observation.
 
void detach (OpenSWMMVisLayer *base)
 Disconnect every membership watcher before removing its diff baseline.
 

Public Attributes

ExtensionResultsBridge * context
 Owning connection lifetime, never adopted.
 
QPointer< SWMMVisProjectWindow > window
 Native session/controller owner.
 
std::function< QUuid(OpenSWMMVisLayer *)> identity
 Lookup-only layer attachment resolver.
 
ViewEventSink changed
 Canonical coordinator sink, no plugin callbacks here.
 
QHash< OpenSWMMVisLayer *, Record > records
 Attached results records by native pointer.
 

Detailed Description

Private attached-reader records; QObject connection handles have explicit ownership.

Member Function Documentation

◆ attach()

void openswmmvis::ExtensionResultsBridge::Data::attach ( OpenSWMMVisLayer *  base,
bool  announce 
)
inline

Attach one results layer once, optionally seeding a future-membership observation.

Parameters
[in]baseBorrowed current canvas member.
[in]announceFalse while initial construction backfills state.
Here is the call graph for this function:

◆ detach()

void openswmmvis::ExtensionResultsBridge::Data::detach ( OpenSWMMVisLayer *  base)
inline

Disconnect every membership watcher before removing its diff baseline.

Parameters
[in]baseBorrowed pointer identity; never dereferenced here.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ publish()

void openswmmvis::ExtensionResultsBridge::Data::publish ( ViewEventKind  kind,
const ResultsViewState &  state 
)
inline

Publish a bounded invalidation using copied attachment/source identities.

Parameters
[in]kindSemantic domain that changed.
[in]stateCaptured current native state.
Here is the caller graph for this function:

◆ read()

ResultsViewState openswmmvis::ExtensionResultsBridge::Data::read ( OpenSWMMVisLayer *  base) const
inline

Read current native metadata without source discovery or frame data reads.

Parameters
[in]baseAttached result layer.
Returns
Copied state, with null runtime identity after detachment.
Here is the caller graph for this function:

◆ refresh()

void openswmmvis::ExtensionResultsBridge::Data::refresh ( OpenSWMMVisLayer *  base)
inline

Diff semantic state; repeated count/time/style notifications are inert.

Parameters
[in]baseCurrent native layer identity, possibly detached before this signal.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ watchStyles()

void openswmmvis::ExtensionResultsBridge::Data::watchStyles ( SWMM2DResultsLayer *  layer)
inline

Replace channel watchers after dynamic sublayer membership changes.

Parameters
[in]layerCurrent 2D result layer.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ changed

ViewEventSink openswmmvis::ExtensionResultsBridge::Data::changed

Canonical coordinator sink, no plugin callbacks here.

◆ context

ExtensionResultsBridge* openswmmvis::ExtensionResultsBridge::Data::context

Owning connection lifetime, never adopted.

◆ identity

std::function<QUuid(OpenSWMMVisLayer *)> openswmmvis::ExtensionResultsBridge::Data::identity

Lookup-only layer attachment resolver.

◆ records

QHash<OpenSWMMVisLayer *, Record> openswmmvis::ExtensionResultsBridge::Data::records

Attached results records by native pointer.

◆ window

QPointer<SWMMVisProjectWindow> openswmmvis::ExtensionResultsBridge::Data::window

Native session/controller owner.


The documentation for this struct was generated from the following file: