Stores data representing scenegraph nodes. More...
#include <SceneInspector.h>
Public Member Functions | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
Tree structure: column count is 1. More... | |
Qt::ItemFlags | flags (const QModelIndex &index) const |
returns standard parent's flags More... | |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
returns empty QVariant, unless orientation == Qt::Horizontal, role == Qt::DisplayRole and section == 0 where it returns "Inventor Tree" More... | |
SceneModel (QObject *parent) | |
bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
header data not used: returns false More... | |
void | setNode (SoNode *node) |
insert the first node in tree More... | |
void | setNodeNames (const QHash< SoNode *, QString > &names) |
set names per node More... | |
virtual | ~SceneModel () |
Stores data representing scenegraph nodes.
SceneModel::SceneModel | ( | QObject * | parent | ) |
|
virtual |
int SceneModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Tree structure: column count is 1.
Qt::ItemFlags SceneModel::flags | ( | const QModelIndex & | index | ) | const |
returns standard parent's flags
QVariant SceneModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
returns empty QVariant, unless orientation == Qt::Horizontal, role == Qt::DisplayRole and section == 0 where it returns "Inventor Tree"
bool SceneModel::setHeaderData | ( | int | section, |
Qt::Orientation | orientation, | ||
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
header data not used: returns false
Referenced by setNode().
void SceneModel::setNode | ( | SoNode * | node | ) |
insert the first node in tree
References setHeaderData(), and setNode().
Referenced by setNode(), and Gui::Dialog::DlgInspector::setNode().
void SceneModel::setNodeNames | ( | const QHash< SoNode *, QString > & | names | ) |
set names per node
Referenced by Gui::Dialog::DlgInspector::setNodeNames().