#include <scene_win_model.hh>
Inherits QAbstractItemModel, and SceneObserver.
|
| SceneWinModel (QObject *parent=NULL) |
|
| ~SceneWinModel () |
|
gfx::NodePtrList | GetGfxNodes (QModelIndexList indexes) |
|
mol::QueryViewWrapperList | GetQueryViewsList (QModelIndexList indexes) |
|
gfx::EntityP | GetEntityOfViews (QModelIndexList indexes) |
|
virtual void | Update () |
|
SceneNode * | GetItem (const QModelIndex &index) const |
|
SceneNode * | FindGfxNode (gfx::GfxNodeP node) |
|
bool | AddNode (SceneNode *parent, SceneNode *child) |
|
bool | RemoveNode (SceneNode *node) |
|
void | AttachRenderModeObserver (RenderModesNode *node) |
|
void | DetachRenderModeObserver (RenderModesNode *node) |
|
QModelIndex | GetIndexOf (SceneNode *node, int column=0) |
|
QModelIndex | index (int row, int col, const QModelIndex &parent=QModelIndex()) const |
|
QModelIndex | parent (const QModelIndex &index) const |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
|
virtual Qt::ItemFlags | flags (const QModelIndex &index=QModelIndex()) const |
|
virtual bool | setData (const QModelIndex &index=QModelIndex(), const QVariant &value=QVariant(), int role=Qt::DisplayRole) |
|
virtual QStringList | mimeTypes () const |
|
Qt::DropActions | supportedDragActions () const |
|
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
|
virtual void | NodeAdded (const gfx::GfxNodeP &node) |
|
virtual void | NodeRemoved (const gfx::GfxNodeP &node) |
|
virtual void | SelectionChanged (const gfx::GfxObjP &obj, const mol::EntityView &sel) |
|
virtual void | RenderModeChanged (const gfx::GfxNodeP &node) |
|
virtual | ~SceneObserver () |
|
virtual void | NodeChanged (const GfxNodeP &node) |
|
virtual void | SelectionModeChanged (int sel_mode) |
|
virtual void | NodeTransformed (const GfxNodeP &node) |
|
data model for scene win
Definition at line 47 of file scene_win_model.hh.
◆ SceneWinModel()
◆ ~SceneWinModel()
◆ AddNode()
◆ AttachRenderModeObserver()
◆ columnCount()
int columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
◆ data()
QVariant data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
◆ DetachRenderModeObserver()
◆ FindGfxNode()
◆ flags()
virtual Qt::ItemFlags flags |
( |
const QModelIndex & |
index = QModelIndex() | ) |
const |
|
virtual |
◆ GetEntityOfViews()
◆ GetGfxNodes()
◆ GetIndexOf()
QModelIndex GetIndexOf |
( |
SceneNode * |
node, |
|
|
int |
column = 0 |
|
) |
| |
◆ GetItem()
SceneNode* GetItem |
( |
const QModelIndex & |
index | ) |
const |
◆ GetQueryViewsList()
◆ headerData()
QVariant headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
◆ index()
QModelIndex index |
( |
int |
row, |
|
|
int |
col, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
◆ mimeData()
virtual QMimeData* mimeData |
( |
const QModelIndexList & |
indexes | ) |
const |
|
virtual |
◆ mimeTypes()
virtual QStringList mimeTypes |
( |
| ) |
const |
|
virtual |
◆ NodeAdded()
Called when a new node has been added to the scene.
Reimplemented from SceneObserver.
◆ NodeRemoved()
Called when an object is removed from the scene.
Reimplemented from SceneObserver.
◆ parent()
QModelIndex parent |
( |
const QModelIndex & |
index | ) |
const |
◆ RemoveNode()
◆ RenderModeChanged()
Called when the render mode of a node changed.
Reimplemented from SceneObserver.
◆ rowCount()
int rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
◆ SelectionChanged()
Called when selection of an object changed.
Reimplemented from SceneObserver.
◆ setData()
virtual bool setData |
( |
const QModelIndex & |
index = QModelIndex() , |
|
|
const QVariant & |
value = QVariant() , |
|
|
int |
role = Qt::DisplayRole |
|
) |
| |
|
virtual |
◆ supportedDragActions()
Qt::DropActions supportedDragActions |
( |
| ) |
const |
◆ Update()
The documentation for this class was generated from the following file: