Skip to main content

SourceSpaceTreeItem

Namespace: DISP3DLIB  ·  Library: 3D Display Library

#include <disp3D/sourcespacetreeitem.h>

class DISP3DLIB::SourceSpaceTreeItem

SourceSpaceTreeItem represents a single source space point in the tree model.

Each item stores its 3D position and rendering scale.

Source space point tree item.

Inheritance​


Public Methods​

SourceSpaceTreeItem(text, positions, color, scale, type)​

Constructs a SourceSpaceTreeItem for a hemisphere.

Parameters:

  • text : const QString & Display text for the item (e.g. "LH", "RH").

  • positions : const QVector< QVector3D > & 3D positions of all source points in this hemisphere (in meters).

  • color : const QColor & Color for rendering.

  • scale : float Radius/size of each rendered sphere.

  • type : int Item type identifier.


~SourceSpaceTreeItem()​


positions()​

Returns all source point positions.

Returns:

  • const QVector< QVector3D > & — Vector of position vectors.

scale()​

Returns the rendering scale.

Returns:

  • float — Scale value.

Authors of this file​