![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QAbstractItemModel>#include <QPointer>#include <QVector>#include "layers/swmmmodellayer.h"#include "selection/selectionmanager.h"Go to the source code of this file.
Classes | |
| class | SWMMObjectTreeModel |
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.