AGX Dynamics  2.37.2.0
agxQt::TreeModel Class Reference

TreeModel. More...

#include <SimulationStructureWidget.h>

+ Inheritance diagram for agxQt::TreeModel:

Public Member Functions

 TreeModel (agxSDK::Simulation *simulation, QObject *parent=0)
 
 ~TreeModel ()
 
int columnCount (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
 
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
 
QModelIndex parent (const QModelIndex &index) const Q_DECL_OVERRIDE
 
int rowCount (const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
 

Detailed Description

TreeModel.

Definition at line 94 of file SimulationStructureWidget.h.

Constructor & Destructor Documentation

◆ TreeModel()

agxQt::TreeModel::TreeModel ( agxSDK::Simulation *  simulation,
QObject *  parent = 0 
)
explicit

◆ ~TreeModel()

agxQt::TreeModel::~TreeModel ( )

Member Function Documentation

◆ columnCount()

int agxQt::TreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

◆ data()

QVariant agxQt::TreeModel::data ( const QModelIndex &  index,
int  role 
) const

◆ flags()

Qt::ItemFlags agxQt::TreeModel::flags ( const QModelIndex &  index) const

◆ headerData()

QVariant agxQt::TreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

◆ index()

QModelIndex agxQt::TreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

◆ parent()

QModelIndex agxQt::TreeModel::parent ( const QModelIndex &  index) const

◆ rowCount()

int agxQt::TreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

The documentation for this class was generated from the following file: