v2.0.0
Loading...
Searching...
No Matches
sourcespacetreeitem.h
Go to the documentation of this file.
1//=============================================================================================================
18
19#ifndef SOURCESPACETREEITEM_H
20#define SOURCESPACETREEITEM_H
21
22//=============================================================================================================
23// INCLUDES
24//=============================================================================================================
25
26#include "../../disp3D_global.h"
27
28#include "abstracttreeitem.h"
29
30#include <QVector3D>
31#include <QVector>
32
33//=============================================================================================================
41{
42public:
43 //=========================================================================================================
53 explicit SourceSpaceTreeItem(const QString &text,
54 const QVector<QVector3D> &positions,
55 const QColor &color,
56 float scale,
59
60 //=========================================================================================================
66 const QVector<QVector3D>& positions() const;
67
68 //=========================================================================================================
74 float scale() const;
75
76private:
77 QVector<QVector3D> m_positions;
78 float m_scale;
79};
80
81#endif // SOURCESPACETREEITEM_H
Base QStandardItem with check-state, visibility, transform, colour and alpha roles shared by every di...
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
QColor color() const
AbstractTreeItem(const QString &text="", int type=AbstractItem)
int type() const override
const QVector< QVector3D > & positions() const
SourceSpaceTreeItem(const QString &text, const QVector< QVector3D > &positions, const QColor &color, float scale, int type=AbstractTreeItem::SourceSpaceItem)
~SourceSpaceTreeItem()=default