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. | |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| returns standard parent's flags | |
| 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" | |
| SceneModel (QObject *parent) | |
| bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
| header data not used: returns false | |
| void | setNode (SoNode *node) |
| insert the first node in tree | |
| virtual | ~SceneModel () |
Stores data representing scenegraph nodes.
Definition at line 37 of file SceneInspector.h.
| SceneModel::SceneModel | ( | QObject * | parent | ) |
Definition at line 40 of file SceneInspector.cpp.
| SceneModel::~SceneModel | ( | ) | [virtual] |
Definition at line 45 of file SceneInspector.cpp.
| int SceneModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Tree structure: column count is 1.
Definition at line 49 of file SceneInspector.cpp.
| Qt::ItemFlags SceneModel::flags | ( | const QModelIndex & | index | ) | const |
returns standard parent's flags
Definition at line 54 of file SceneInspector.cpp.
| 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"
Definition at line 59 of file SceneInspector.cpp.
References Sketcher::Horizontal.
| bool SceneModel::setHeaderData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) |
header data not used: returns false
Definition at line 71 of file SceneInspector.cpp.
Referenced by setNode().
| void SceneModel::setNode | ( | SoNode * | node | ) |
insert the first node in tree
Definition at line 76 of file SceneInspector.cpp.
References Sketcher::Horizontal, and setHeaderData().
Referenced by Gui::Dialog::DlgInspector::setNode().
1.6.1