17 #ifndef SIMULATIONSTRUCTUREWIDGET_H
18 #define SIMULATIONSTRUCTUREWIDGET_H
25 #include <agxQt/ui_SimulationStructureWidget.h>
60 Ui::SimulationStructure * m_ui;
62 std::unique_ptr<TreeModel> m_activeModel;
79 QVariant
data(
int column)
const;
85 QList<TreeItem*> m_childItems;
86 QList<QVariant> m_itemData;
102 QVariant
data(
const QModelIndex &
index,
int role)
const Q_DECL_OVERRIDE;
103 Qt::ItemFlags
flags(
const QModelIndex &
index)
const Q_DECL_OVERRIDE;
104 QVariant
headerData(
int section, Qt::Orientation orientation,
105 int role = Qt::DisplayRole)
const Q_DECL_OVERRIDE;
106 QModelIndex
index(
int row,
int column,
107 const QModelIndex &
parent = QModelIndex()) const Q_DECL_OVERRIDE;
108 QModelIndex
parent(const QModelIndex &
index) const Q_DECL_OVERRIDE;
void appendChild(TreeItem *child)
QVariant data(int column) const
TreeItem * child(int row)
TreeItem(const QList< QVariant > &data, const QPixmap &image, TreeItem *parentItem=0)
int columnCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE
int rowCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const Q_DECL_OVERRIDE
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE
TreeModel(agxSDK::Simulation *simulation, QObject *parent=0)
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Contains classes/utility functions for connecting AGX to QT with OSG.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...