v2.0.0
Loading...
Searching...
No Matches
sensortreeitem.cpp
Go to the documentation of this file.
1//=============================================================================================================
12
13//=============================================================================================================
14// INCLUDES
15//=============================================================================================================
16
17#include "sensortreeitem.h"
18
19namespace DISP3DLIB
20{
21
22SensorTreeItem::SensorTreeItem(const QString& text, const QVector3D& pos, const QColor& color, float scale, int type)
24, m_pos(pos)
25, m_scale(scale)
26{
28}
29
30QVector3D SensorTreeItem::position() const
31{
32 return m_pos;
33}
34
36{
37 return m_scale;
38}
39
40void SensorTreeItem::setOrientation(const QMatrix4x4& orient)
41{
42 m_orientation = orient;
43 m_hasOrientation = true;
44}
45
46const QMatrix4x4& SensorTreeItem::orientation() const
47{
48 return m_orientation;
49}
50
52{
53 return m_hasOrientation;
54}
55
56} // namespace DISP3DLIB
Tree item for a single MEG / EEG sensor with position, optional coil orientation and rendered scale.
3-D brain visualisation using the Qt RHI rendering backend.
void setColor(const QColor &color)
AbstractTreeItem(const QString &text="", int type=AbstractItem)
SensorTreeItem(const QString &text, const QVector3D &pos, const QColor &color, float scale, int type=AbstractTreeItem::SensorItem)
void setOrientation(const QMatrix4x4 &orient)
const QMatrix4x4 & orientation() const