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

QAbstractItemModel that exposes an OpenSWMMVisWorkspace as a tree for Qt model-view widgets. More...

#include <openswmmvisworkspacemodel.h>

Inheritance diagram for OpenSWMMVisWorkspaceModel:
Collaboration diagram for OpenSWMMVisWorkspaceModel:

Public Member Functions

 OpenSWMMVisWorkspaceModel (OpenSWMMVisWorkspace *parent=nullptr)
 Constructs the model around the given workspace.
 
 ~OpenSWMMVisWorkspaceModel ()
 Destructor.
 

Detailed Description

QAbstractItemModel that exposes an OpenSWMMVisWorkspace as a tree for Qt model-view widgets.

The model mirrors the workspace's session/layer hierarchy. The full virtual interface is reserved for future implementation; the class exists today to establish the ownership contract and header structure before the view panels are wired up.

Note
The model does NOT take ownership of the workspace.

Constructor & Destructor Documentation

◆ OpenSWMMVisWorkspaceModel()

OpenSWMMVisWorkspaceModel::OpenSWMMVisWorkspaceModel ( OpenSWMMVisWorkspace parent = nullptr)
explicit

Constructs the model around the given workspace.

Parameters
parentThe workspace whose sessions and layers this model will expose. Passed as the QObject parent so Qt handles lifetime automatically when the workspace is destroyed.

◆ ~OpenSWMMVisWorkspaceModel()

OpenSWMMVisWorkspaceModel::~OpenSWMMVisWorkspaceModel ( )

Destructor.


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