#include <sensortreeitem.h>
Public Member Functions | |
| SensorTreeItem (const QString &text, const QVector3D &pos, const QColor &color, float scale, int type=AbstractTreeItem::SensorItem) | |
| ~SensorTreeItem ()=default | |
| QVector3D | position () const |
| float | scale () const |
| void | setOrientation (const QMatrix4x4 &orient) |
| const QMatrix4x4 & | orientation () const |
| bool | hasOrientation () 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 |
Definition at line 49 of file sensortreeitem.h.

|
explicit |
Definition at line 42 of file sensortreeitem.cpp.
|
default |
| bool SensorTreeItem::hasOrientation | ( | ) | const |
Returns true if an explicit orientation was set.
Definition at line 71 of file sensortreeitem.cpp.
| const QMatrix4x4 & SensorTreeItem::orientation | ( | ) | const |
Returns the coil orientation (identity if not set).
Definition at line 66 of file sensortreeitem.cpp.
| QVector3D SensorTreeItem::position | ( | ) | const |
Definition at line 50 of file sensortreeitem.cpp.
| float SensorTreeItem::scale | ( | ) | const |
Definition at line 55 of file sensortreeitem.cpp.
| void SensorTreeItem::setOrientation | ( | const QMatrix4x4 & | orient | ) |
Set the coil orientation matrix (3x3 rotation from coil_trans).
Definition at line 60 of file sensortreeitem.cpp.