v2.0.0
Loading...
Searching...
No Matches
NetworkTreeItem Class Reference

Tree item representing a connectivity network. More...

#include <networktreeitem.h>

Public Member Functions

 NetworkTreeItem (const QString &text="Network", const QString &objectKey=QString())
QString objectKey () 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

Detailed Description

Tree item representing a connectivity network.

NetworkTreeItem holds metadata about a connectivity network in the tree model.

Definition at line 52 of file networktreeitem.h.

Inheritance diagram for NetworkTreeItem:
Inheritance graph

Constructor & Destructor Documentation

◆ NetworkTreeItem()

NetworkTreeItem::NetworkTreeItem ( const QString & text = "Network",
const QString & objectKey = QString() )
explicit

Constructs a NetworkTreeItem.

Parameters
[in]textDisplay text.
[in]objectKeyUnique key (e.g. "net_coherence").

Definition at line 45 of file networktreeitem.cpp.

Member Function Documentation

◆ objectKey()

QString NetworkTreeItem::objectKey ( ) const
inline

Returns the object key identifying this network.

Returns
The object key.

Definition at line 71 of file networktreeitem.h.


The documentation for this class was generated from the following files: