Source space point tree item. More...
#include <sourcespacetreeitem.h>
Public Member Functions | |
| SourceSpaceTreeItem (const QString &text, const QVector< QVector3D > &positions, const QColor &color, float scale, int type=AbstractTreeItem::SourceSpaceItem) | |
| ~SourceSpaceTreeItem ()=default | |
| const QVector< QVector3D > & | positions () const |
| float | scale () 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 | |
| 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 } |
| Protected Attributes inherited from AbstractTreeItem | |
| int | m_type |
Source space point tree item.
SourceSpaceTreeItem represents a single source space point in the tree model. Each item stores its 3D position and rendering scale.
Definition at line 58 of file sourcespacetreeitem.h.

|
explicit |
Constructs a SourceSpaceTreeItem for a hemisphere.
| [in] | text | Display text for the item (e.g. "LH", "RH"). |
| [in] | positions | 3D positions of all source points in this hemisphere (in meters). |
| [in] | color | Color for rendering. |
| [in] | scale | Radius/size of each rendered sphere. |
| [in] | type | Item type identifier. |
Definition at line 47 of file sourcespacetreeitem.cpp.
|
default |
| const QVector< QVector3D > & SourceSpaceTreeItem::positions | ( | ) | const |
Returns all source point positions.
Definition at line 61 of file sourcespacetreeitem.cpp.
| float SourceSpaceTreeItem::scale | ( | ) | const |
Returns the rendering scale.
Definition at line 68 of file sourcespacetreeitem.cpp.