v2.0.0
Loading...
Searching...
No Matches
sensortreeitem.h
Go to the documentation of this file.
1//=============================================================================================================
19
20#ifndef SENSORTREEITEM_H
21#define SENSORTREEITEM_H
22
23//=============================================================================================================
24// INCLUDES
25//=============================================================================================================
26
27#include "../../disp3D_global.h"
28
29#include "abstracttreeitem.h"
30#include <QVector3D>
31#include <QMatrix4x4>
32
33namespace DISP3DLIB
34{
35
40{
41public:
42 explicit SensorTreeItem(const QString& text, const QVector3D& pos, const QColor& color, float scale, int type = AbstractTreeItem::SensorItem);
43 ~SensorTreeItem() = default;
44
45 QVector3D position() const;
46 float scale() const;
47
48 //=========================================================================================================
54 void setOrientation(const QMatrix4x4& orient);
55
56 //=========================================================================================================
62 const QMatrix4x4& orientation() const;
63
64 //=========================================================================================================
70 bool hasOrientation() const;
71
72private:
73 QVector3D m_pos;
74 float m_scale;
75 QMatrix4x4 m_orientation;
76 bool m_hasOrientation = false;
77};
78
79} // namespace DISP3DLIB
80
81#endif // SENSORTREEITEM_H
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
Base QStandardItem with check-state, visibility, transform, colour and alpha roles shared by every di...
3-D brain visualisation using the Qt RHI rendering backend.
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