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
swmmobjecttreemodel.h File Reference
#include <QAbstractItemModel>
#include <QPointer>
#include <QVector>
#include "layers/swmmmodellayer.h"
#include "selection/selectionmanager.h"
Include dependency graph for swmmobjecttreemodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SWMMObjectTreeModel
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Virtualised tree model backing the Object Browser dock. Replaces the former QTreeWidget-per-object approach so the browser scales to the millions-of-objects target set by Slice R (batched map renderer).

Hierarchy root └ Category row (Junctions / Outfalls / … / Rain Gages) └ Leaf row (synthesised from SWMMModelLayer SoA on demand)

Only the Category rows materialise as rows; leaf rows exist purely as QModelIndex coordinates that index into the layer's per-category buckets. data() fetches names through the O(1) layer API, so 1M leaves costs nothing at rest — only visible rows trigger data() calls.