v2.0.0
Loading...
Searching...
No Matches
abstracttreeitem.h File Reference

Base QStandardItem with check-state, visibility, transform, colour and alpha roles shared by every disp3D scene item. More...

#include "../../disp3D_global.h"
#include <QStandardItem>
#include <QVariant>
#include <QMatrix4x4>
#include <QVector3D>
Include dependency graph for abstracttreeitem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AbstractTreeItem
 Base tree item providing check-state, visibility, and data-role storage for all 3-D scene items. More...

Detailed Description

Base QStandardItem with check-state, visibility, transform, colour and alpha roles shared by every disp3D scene item.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

AbstractTreeItem centralises the data roles every scene object needs (VisibleRole, TransformRole, ColorRole, AlphaRole) so the renderer can read render state directly from the model without per-type if-chains. The ItemType enum drives type-safe down-casts at the few sites that need them (picking, persistence).

Definition in file abstracttreeitem.h.