v2.0.0
Loading...
Searching...
No Matches
sensortreeitem.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef SENSORTREEITEM_H
37#define SENSORTREEITEM_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
44
45#include "abstracttreeitem.h"
46#include <QVector3D>
47#include <QMatrix4x4>
48
53{
54public:
55 explicit SensorTreeItem(const QString& text, const QVector3D& pos, const QColor& color, float scale, int type = AbstractTreeItem::SensorItem);
56 ~SensorTreeItem() = default;
57
58 QVector3D position() const;
59 float scale() const;
60
61 //=========================================================================================================
65 void setOrientation(const QMatrix4x4 &orient);
66
67 //=========================================================================================================
71 const QMatrix4x4& orientation() const;
72
73 //=========================================================================================================
77 bool hasOrientation() const;
78
79private:
80 QVector3D m_pos;
81 float m_scale;
82 QMatrix4x4 m_orientation;
83 bool m_hasOrientation = false;
84};
85
86#endif // SENSORTREEITEM_H
disp3D_rhi library export/import macros.
#define DISP3DRHISHARED_EXPORT
AbstractTreeItem class declaration.
QColor color() const
AbstractTreeItem(const QString &text="", int type=AbstractItem)
int type() const override
SensorTreeItem(const QString &text, const QVector3D &pos, const QColor &color, float scale, int type=AbstractTreeItem::SensorItem)
bool hasOrientation() const
~SensorTreeItem()=default
QVector3D position() const
void setOrientation(const QMatrix4x4 &orient)
float scale() const
const QMatrix4x4 & orientation() const