22 #ifndef SCENELAYERSMODEL_H 23 #define SCENELAYERSMODEL_H 25 #include <tulip/tulipconf.h> 26 #include <tulip/Observable.h> 27 #include <tulip/TulipModel.h> 35 class TLP_QT_SCOPE SceneLayersModel :
public TulipModel,
tlp::Observable {
40 QModelIndex graphCompositeIndex()
const;
43 explicit SceneLayersModel(
tlp::GlScene* scene, QObject *parent = NULL);
45 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
46 QModelIndex parent(
const QModelIndex &child)
const;
47 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
48 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
49 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
50 bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
51 Qt::ItemFlags flags(
const QModelIndex &index)
const;
52 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
61 #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.