v2.0.0
Loading...
Searching...
No Matches
digitizertreeitem.cpp
Go to the documentation of this file.
1//=============================================================================================================
12
13//=============================================================================================================
14// INCLUDES
15//=============================================================================================================
16
17#include "digitizertreeitem.h"
18
19namespace DISP3DLIB
20{
21
22//=============================================================================================================
23// DEFINE MEMBER METHODS
24//=============================================================================================================
25
27 PointKind kind,
28 const QVector<QVector3D>& positions,
29 const QStringList& names,
30 const QColor& color,
31 float scale,
32 int type)
34, m_kind(kind)
35, m_positions(positions)
36, m_names(names)
37, m_scale(scale)
38{
40}
41
42//=============================================================================================================
43
44const QVector<QVector3D>& DigitizerTreeItem::positions() const
45{
46 return m_positions;
47}
48
49//=============================================================================================================
50
51const QStringList& DigitizerTreeItem::pointNames() const
52{
53 return m_names;
54}
55
56//=============================================================================================================
57
59{
60 return m_scale;
61}
62
63//=============================================================================================================
64
69
70} // namespace DISP3DLIB
Tree item holding a single category of digitizer points rendered as a batched-sphere mesh.
3-D brain visualisation using the Qt RHI rendering backend.
void setColor(const QColor &color)
AbstractTreeItem(const QString &text="", int type=AbstractItem)
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)