36 #ifndef DISP3DLIB_ABSTRACT3DTREEITEM_H
37 #define DISP3DLIB_ABSTRACT3DTREEITEM_H
43 #include "../../../../disp3D_global.h"
44 #include "../../3dhelpers/renderable3Dentity.h"
51 #include <QStandardItem>
94 int iType = Data3DTreeModelItemTypes::UnknownItem,
95 const QString& text =
"");
101 void setData(
const QVariant& value,
int role = Qt::UserRole + 1);
112 QList<QStandardItem*> findChildren(
int type);
122 QList<QStandardItem*> findChildren(
const QString& text);
149 static Eigen::MatrixX4f createVertColor(
int numVert,
const QColor& color = QColor(0,49,69));
157 void setAlpha(
float fAlpha);
164 virtual void initItem();
172 virtual void onCheckStateChanged(
const Qt::CheckState& checkState);
180 virtual void onTranslationXChanged(
const QVariant& fTransX);
188 virtual void onTranslationYChanged(
const QVariant& fTransY);
196 virtual void onTranslationZChanged(
const QVariant& fTransZ);
204 virtual void onScaleChanged(
const QVariant& fScale);
212 virtual void onColorChanged(
const QVariant& color);
220 virtual void onAlphaChanged(
const QVariant& fAlpha);
234 void checkStateChanged(
const Qt::CheckState& checkState);
238 #endif // DISP3DLIB_ABSTRACT3DTREEITEM_H