v2.0.0
Loading...
Searching...
No Matches
digitizertreeitem.h
Go to the documentation of this file.
1//=============================================================================================================
18
19#ifndef DIGITIZERTREEITEM_H
20#define DIGITIZERTREEITEM_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
33namespace DISP3DLIB
34{
35
36//=============================================================================================================
48{
49public:
54 {
59 };
60
61 //=========================================================================================================
73 explicit DigitizerTreeItem(const QString& text,
74 PointKind kind,
75 const QVector<QVector3D>& positions,
76 const QStringList& names,
77 const QColor& color,
78 float scale,
80 ~DigitizerTreeItem() = default;
81
82 //=========================================================================================================
88 const QVector<QVector3D>& positions() const;
89
90 //=========================================================================================================
96 const QStringList& pointNames() const;
97
98 //=========================================================================================================
104 float scale() const;
105
106 //=========================================================================================================
112 PointKind pointKind() const;
113
114private:
115 PointKind m_kind;
116 QVector<QVector3D> m_positions;
117 QStringList m_names;
118 float m_scale;
119};
120
121} // namespace DISP3DLIB
122
123#endif // DIGITIZERTREEITEM_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)
Digitizer point group tree item.
const QStringList & pointNames() const
const QVector< QVector3D > & positions() const
DigitizerTreeItem(const QString &text, PointKind kind, const QVector< QVector3D > &positions, const QStringList &names, const QColor &color, float scale, int type=AbstractTreeItem::DigitizerItem)