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
19//=============================================================================================================
20// DEFINE MEMBER METHODS
21//=============================================================================================================
22
24 PointKind kind,
25 const QVector<QVector3D> &positions,
26 const QStringList &names,
27 const QColor &color,
28 float scale,
29 int type)
30 : AbstractTreeItem(text, type)
31 , m_kind(kind)
32 , m_positions(positions)
33 , m_names(names)
34 , m_scale(scale)
35{
37}
38
39//=============================================================================================================
40
41const QVector<QVector3D>& DigitizerTreeItem::positions() const
42{
43 return m_positions;
44}
45
46//=============================================================================================================
47
48const QStringList& DigitizerTreeItem::pointNames() const
49{
50 return m_names;
51}
52
53//=============================================================================================================
54
56{
57 return m_scale;
58}
59
60//=============================================================================================================
61
Tree item holding a single category of digitizer points rendered as a batched-sphere mesh.
QColor color() const
AbstractTreeItem(const QString &text="", int type=AbstractItem)
void setColor(const QColor &color)
int type() const override
const QStringList & pointNames() const
DigitizerTreeItem(const QString &text, PointKind kind, const QVector< QVector3D > &positions, const QStringList &names, const QColor &color, float scale, int type=AbstractTreeItem::DigitizerItem)
PointKind pointKind() const
const QVector< QVector3D > & positions() const