21 #ifndef SCENELAYERSMODEL_H 22 #define SCENELAYERSMODEL_H 24 #include <tulip/tulipconf.h> 25 #include <tulip/Observable.h> 26 #include <tulip/TulipModel.h> 34 class TLP_QT_SCOPE SceneLayersModel :
public TulipModel,
tlp::Observable {
39 QModelIndex graphCompositeIndex()
const;
42 explicit SceneLayersModel(
tlp::GlScene *scene, QObject *parent =
nullptr);
44 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
45 QModelIndex parent(
const QModelIndex &child)
const override;
46 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
47 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
48 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
49 bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
50 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
51 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
60 #endif // SCENELAYERSMODEL_H
Event is the base class for all events used in the Observation mechanism.
The Observable class is the base of Tulip's observation system.