Digitizer point group tree item. More...
#include <digitizertreeitem.h>
Public Types | |
| enum | PointKind { Cardinal = 0 , HPI , EEG , Extra } |
| Public Types inherited from AbstractTreeItem | |
| enum | ItemRole { TypeRole = Qt::UserRole + 100 , VisibleRole , TransformRole , ColorRole , AlphaRole } |
| enum | ItemType { AbstractItem = 0 , SurfaceItem , BemItem , SensorItem , DipoleItem , SourceSpaceItem , DigitizerItem , NetworkItem } |
Public Member Functions | |
| DigitizerTreeItem (const QString &text, PointKind kind, const QVector< QVector3D > &positions, const QStringList &names, const QColor &color, float scale, int type=AbstractTreeItem::DigitizerItem) | |
| ~DigitizerTreeItem ()=default | |
| const QVector< QVector3D > & | positions () const |
| const QStringList & | pointNames () const |
| float | scale () const |
| PointKind | pointKind () const |
| Public Member Functions inherited from AbstractTreeItem | |
| AbstractTreeItem (const QString &text="", int type=AbstractItem) | |
| virtual | ~AbstractTreeItem ()=default |
| int | type () const override |
| void | setVisible (bool visible) |
| bool | isVisible () const |
| void | setTransform (const QMatrix4x4 &transform) |
| QMatrix4x4 | transform () const |
| void | setColor (const QColor &color) |
| QColor | color () const |
| void | setAlpha (float alpha) |
| float | alpha () const |
Additional Inherited Members | |
| Protected Attributes inherited from AbstractTreeItem | |
| int | m_type |
Digitizer point group tree item.
DigitizerTreeItem represents a group of digitizer points of the same category (Cardinal, HPI, EEG, Extra) in the tree model. Each item stores batched 3D positions for efficient rendering as a single mesh with replicated sphere geometry.
This matches the disp3D DigitizerTreeItem pattern using per-category grouping with color-coded sphere rendering.
Definition at line 62 of file digitizertreeitem.h.

Digitizer point category, matching FIFF digitizer point kinds.
| Enumerator | |
|---|---|
| Cardinal | Cardinal (fiducial) points: Nasion, LPA, RPA. |
| HPI | HPI (Head Position Indicator) coil positions. |
| EEG | EEG electrode positions. |
| Extra | Extra head shape digitization points. |
Definition at line 68 of file digitizertreeitem.h.
|
explicit |
Constructs a DigitizerTreeItem for a single category of digitizer points.
| [in] | text | Display text for the item (e.g. "Cardinal", "HPI", "EEG", "Extra"). |
| [in] | kind | The digitizer point category. |
| [in] | positions | 3D positions of all points in this category (in meters). |
| [in] | names | Display names for individual points (e.g. "Nasion", "LPA"). |
| [in] | color | Color for rendering this category. |
| [in] | scale | Radius of each rendered sphere. |
| [in] | type | Item type identifier. |
Definition at line 47 of file digitizertreeitem.cpp.
|
default |
| DigitizerTreeItem::PointKind DigitizerTreeItem::pointKind | ( | ) | const |
Returns the digitizer point category.
Definition at line 86 of file digitizertreeitem.cpp.
| const QStringList & DigitizerTreeItem::pointNames | ( | ) | const |
Returns the display names for individual points.
Definition at line 72 of file digitizertreeitem.cpp.
| const QVector< QVector3D > & DigitizerTreeItem::positions | ( | ) | const |
Returns all point positions in this category.
Definition at line 65 of file digitizertreeitem.cpp.
| float DigitizerTreeItem::scale | ( | ) | const |
Returns the rendering scale (sphere radius).
Definition at line 79 of file digitizertreeitem.cpp.