SOFA API  ca70b0f0
Open source framework for multi-physics simuation
sofa::gui::qt::GraphListenerQListView Class Reference

#include <GraphListenerQListView.h>

Inheritance diagram for sofa::gui::qt::GraphListenerQListView:

Public Attributes

SofaSceneGraphWidgetwidget
 
std::map< core::objectmodel::Base *, ObjectStateListener * > listeners
 
std::map< core::objectmodel::Base *, QTreeWidgetItem * > items
 
std::map< core::objectmodel::BaseData *, QTreeWidgetItem * > datas
 
std::multimap< QTreeWidgetItem *, QTreeWidgetItem * > nodeWithMultipleParents
 

Static Public Attributes

static QColor nameColor { 120, 120, 120}
 

Public Member Functions

 GraphListenerQListView (SofaSceneGraphWidget *w)
 
 ~GraphListenerQListView () override
 
QTreeWidgetItem * createItem (QTreeWidgetItem *parent)
 
virtual void onBeginAddChild (Node *parent, Node *child) override
 
virtual void onBeginRemoveChild (Node *parent, Node *child) override
 
virtual void onBeginAddObject (Node *parent, core::objectmodel::BaseObject *object) override
 
virtual void onBeginRemoveObject (Node *, core::objectmodel::BaseObject *object) override
 
virtual void onBeginAddSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave) override
 
virtual void onBeginRemoveSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave) override
 
virtual void sleepChanged (Node *node) override
 
virtual void addDatas (core::objectmodel::BaseObject *parent)
 
virtual void removeDatas (core::objectmodel::BaseObject *parent)
 
core::objectmodel::BasefindObject (const QTreeWidgetItem *item)
 
core::objectmodel::BaseDatafindData (const QTreeWidgetItem *item)
 
- Public Member Functions inherited from sofa::simulation::MutationListener
virtual ~MutationListener ()
 
virtual void onEndAddChild (Node *parent, Node *child)
 
virtual void onEndRemoveChild (Node *parent, Node *child)
 
virtual void onEndAddObject (Node *parent, core::objectmodel::BaseObject *object)
 
virtual void onEndRemoveObject (Node *parent, core::objectmodel::BaseObject *object)
 
virtual void onEndAddSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave)
 
virtual void onEndRemoveSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave)
 

Attribute details

◆ datas

std::map<core::objectmodel::BaseData*, QTreeWidgetItem* > sofa::gui::qt::GraphListenerQListView::datas

◆ items

std::map<core::objectmodel::Base*, QTreeWidgetItem* > sofa::gui::qt::GraphListenerQListView::items

◆ listeners

std::map<core::objectmodel::Base*, ObjectStateListener* > sofa::gui::qt::GraphListenerQListView::listeners

◆ nameColor

QColor sofa::gui::qt::GraphListenerQListView::nameColor { 120, 120, 120}
inlinestatic

◆ nodeWithMultipleParents

std::multimap<QTreeWidgetItem *, QTreeWidgetItem*> sofa::gui::qt::GraphListenerQListView::nodeWithMultipleParents

◆ widget

SofaSceneGraphWidget* sofa::gui::qt::GraphListenerQListView::widget

Constructor details

◆ GraphListenerQListView()

sofa::gui::qt::GraphListenerQListView::GraphListenerQListView ( SofaSceneGraphWidget w)
inline

◆ ~GraphListenerQListView()

sofa::gui::qt::GraphListenerQListView::~GraphListenerQListView ( )
override

Function details

◆ addDatas()

void sofa::gui::qt::GraphListenerQListView::addDatas ( core::objectmodel::BaseObject parent)
virtual

◆ createItem()

QTreeWidgetItem * sofa::gui::qt::GraphListenerQListView::createItem ( QTreeWidgetItem *  parent)

◆ findData()

core::objectmodel::BaseData * sofa::gui::qt::GraphListenerQListView::findData ( const QTreeWidgetItem *  item)

◆ findObject()

core::objectmodel::Base * sofa::gui::qt::GraphListenerQListView::findObject ( const QTreeWidgetItem *  item)

◆ onBeginAddChild()

void sofa::gui::qt::GraphListenerQListView::onBeginAddChild ( Node parent,
Node child 
)
overridevirtual

◆ onBeginAddObject()

void sofa::gui::qt::GraphListenerQListView::onBeginAddObject ( Node parent,
core::objectmodel::BaseObject object 
)
overridevirtual

◆ onBeginAddSlave()

void sofa::gui::qt::GraphListenerQListView::onBeginAddSlave ( core::objectmodel::BaseObject master,
core::objectmodel::BaseObject slave 
)
overridevirtual

◆ onBeginRemoveChild()

void sofa::gui::qt::GraphListenerQListView::onBeginRemoveChild ( Node parent,
Node child 
)
overridevirtual

◆ onBeginRemoveObject()

void sofa::gui::qt::GraphListenerQListView::onBeginRemoveObject ( Node parent,
core::objectmodel::BaseObject object 
)
overridevirtual

◆ onBeginRemoveSlave()

void sofa::gui::qt::GraphListenerQListView::onBeginRemoveSlave ( core::objectmodel::BaseObject master,
core::objectmodel::BaseObject slave 
)
overridevirtual

◆ removeDatas()

void sofa::gui::qt::GraphListenerQListView::removeDatas ( core::objectmodel::BaseObject parent)
virtual

◆ sleepChanged()

void sofa::gui::qt::GraphListenerQListView::sleepChanged ( Node node)
overridevirtual