Provides the basic tree item.
More...
#include <abstract3Dtreeitem.h>
|
static Eigen::MatrixX4f | createVertColor (int numVert, const QColor &color=QColor(0, 49, 69)) |
|
Provides the basic tree item.
Abstract3DTreeItem provides Abstract3DTreeItem provides the basic tree item. This item should be used as a base class for all tree items throughout the disp3D library.
Definition at line 80 of file abstract3Dtreeitem.h.
◆ Abstract3DTreeItem()
Abstract3DTreeItem::Abstract3DTreeItem |
( |
QEntity * |
p3DEntityParent = 0 , |
|
|
int |
iType = Data3DTreeModelItemTypes::UnknownItem , |
|
|
const QString & |
text = "" |
|
) |
| |
Default constructor.
- Parameters
-
[in] | p3DEntityParent | The parent 3D entity. |
[in] | iType | The type of the item. See types.h for declaration and definition. |
[in] | text | The text of this item. This is also by default the displayed name of the item in a view. |
Definition at line 62 of file abstract3Dtreeitem.cpp.
◆ checkStateChanged
void DISP3DLIB::Abstract3DTreeItem::checkStateChanged |
( |
const Qt::CheckState & |
checkState | ) |
|
|
signal |
Emit this signal whenever this item's check state changed.
- Parameters
-
[in] | checkState | The current check state. |
◆ createVertColor()
Eigen::MatrixX4f Abstract3DTreeItem::createVertColor |
( |
int |
numVert, |
|
|
const QColor & |
color = QColor(0,49,69) |
|
) |
| |
|
static |
Creates colors for given color for a number of input vertices.
- Parameters
-
[in] | numVert | The number of vertices. |
[in] | color | The vertex color information. |
- Returns
- The colors per vertex.
Definition at line 246 of file abstract3Dtreeitem.cpp.
◆ findChildren() [1/2]
QList< QStandardItem * > Abstract3DTreeItem::findChildren |
( |
const QString & |
text | ) |
|
Returns all children of this item based on their text.
- Parameters
-
[in] | text | The text of the child items which should be looked for. |
- Returns
- List with all found items.
Definition at line 209 of file abstract3Dtreeitem.cpp.
◆ findChildren() [2/2]
QList< QStandardItem * > Abstract3DTreeItem::findChildren |
( |
int |
type | ) |
|
Returns all children of this item based on their type.
- Parameters
-
[in] | type | The type of the child items which should be looked for. |
- Returns
- List with all found items.
Definition at line 190 of file abstract3Dtreeitem.cpp.
◆ initItem()
void Abstract3DTreeItem::initItem |
( |
| ) |
|
|
protectedvirtual |
◆ onAlphaChanged()
void Abstract3DTreeItem::onAlphaChanged |
( |
const QVariant & |
fAlpha | ) |
|
|
protectedvirtual |
Call this function whenever the alpha value changed.
- Parameters
-
[in] | fAlpha | The new alpha value. |
Definition at line 335 of file abstract3Dtreeitem.cpp.
◆ onCheckStateChanged()
void Abstract3DTreeItem::onCheckStateChanged |
( |
const Qt::CheckState & |
checkState | ) |
|
|
protectedvirtual |
Call this function whenever the check box of this item was checked.
- Parameters
-
[in] | checkState | The current checkstate. |
Definition at line 272 of file abstract3Dtreeitem.cpp.
◆ onColorChanged()
void Abstract3DTreeItem::onColorChanged |
( |
const QVariant & |
color | ) |
|
|
protectedvirtual |
◆ onScaleChanged()
void Abstract3DTreeItem::onScaleChanged |
( |
const QVariant & |
fScale | ) |
|
|
protectedvirtual |
Call this function whenever the the scaling of this item changed.
- Parameters
-
[in] | fScale | The current scale value for all axis. |
Definition at line 318 of file abstract3Dtreeitem.cpp.
◆ onTranslationXChanged()
void Abstract3DTreeItem::onTranslationXChanged |
( |
const QVariant & |
fTransX | ) |
|
|
protectedvirtual |
Call this function whenever the the translation x of this item changed.
- Parameters
-
[in] | fTransX | The current x translation. |
Definition at line 285 of file abstract3Dtreeitem.cpp.
◆ onTranslationYChanged()
void Abstract3DTreeItem::onTranslationYChanged |
( |
const QVariant & |
fTransY | ) |
|
|
protectedvirtual |
Call this function whenever the the translation y of this item changed.
- Parameters
-
[in] | fTransY | The current y translation. |
Definition at line 296 of file abstract3Dtreeitem.cpp.
◆ onTranslationZChanged()
void Abstract3DTreeItem::onTranslationZChanged |
( |
const QVariant & |
fTransZ | ) |
|
|
protectedvirtual |
Call this function whenever the the translation z of this item changed.
- Parameters
-
[in] | fTransZ | The current z translation. |
Definition at line 307 of file abstract3Dtreeitem.cpp.
◆ operator<<() [1/2]
Overloaded stream operator to add a child to this item based on a reference.
- Parameters
-
[in] | newItem | The new item as a reference. |
Definition at line 237 of file abstract3Dtreeitem.cpp.
◆ operator<<() [2/2]
Overloaded stream operator to add a child to this item based on a pointer.
- Parameters
-
[in] | newItem | The new item as a pointer. |
Definition at line 228 of file abstract3Dtreeitem.cpp.
◆ setAlpha()
void Abstract3DTreeItem::setAlpha |
( |
float |
fAlpha | ) |
|
◆ setData()
void Abstract3DTreeItem::setData |
( |
const QVariant & |
value, |
|
|
int |
role = Qt::UserRole + 1 |
|
) |
| |
◆ m_iType
int DISP3DLIB::Abstract3DTreeItem::m_iType |
|
protected |
◆ m_pItemAppearanceOptions
QPointer<MetaTreeItem> DISP3DLIB::Abstract3DTreeItem::m_pItemAppearanceOptions |
|
protected |
◆ m_pItemTransformationOptions
QPointer<MetaTreeItem> DISP3DLIB::Abstract3DTreeItem::m_pItemTransformationOptions |
|
protected |
The documentation for this class was generated from the following files: