RobWorkProject  23.9.11-
Public Member Functions | List of all members
SimulatorLogModel Class Reference

Model of a simulator log for Qt Tree view. More...

#include <SimulatorLogModel.hpp>

Inherits QAbstractItemModel.

Public Member Functions

 SimulatorLogModel (QObject *parent)
 Construct new item model for the log tree. More...
 
virtual ~SimulatorLogModel ()
 Destructor.
 
void setRoot (rw::core::Ptr< const rwsim::log::SimulatorLog > root)
 Set the log root. More...
 
void compare (rw::core::Ptr< const rwsim::log::SimulatorLog > info)
 Compare with a different log. More...
 
const rwsim::log::SimulatorLognodeFromIndex (const QModelIndex &index) const
 Find a log entity from index. More...
 
Implementation of Qt interface.

Implementation of Qt functions. See http://doc.qt.io/qt-4.8/qabstractitemmodel.html .

int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &child) const
 
void update ()
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 

Detailed Description

Model of a simulator log for Qt Tree view.

Constructor & Destructor Documentation

◆ SimulatorLogModel()

SimulatorLogModel ( QObject *  parent)

Construct new item model for the log tree.

Parameters
parent[in] the parent Qt widget. Ownership is shared by the caller and the parent widget.

Member Function Documentation

◆ compare()

void compare ( rw::core::Ptr< const rwsim::log::SimulatorLog info)

Compare with a different log.

Parameters
info[in] the other simulation log.

◆ nodeFromIndex()

const rwsim::log::SimulatorLog* nodeFromIndex ( const QModelIndex &  index) const

Find a log entity from index.

Parameters
index[in] the index.
Returns
the log entity.

◆ setRoot()

void setRoot ( rw::core::Ptr< const rwsim::log::SimulatorLog root)

Set the log root.

Parameters
root[in] the log root.

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