gepetto::gui::BodyTreeWidget Class Reference

Contains the list of all the bodies in the scene. More...

#include <gepetto/gui/bodytreewidget.hh>

Inheritance diagram for gepetto::gui::BodyTreeWidget:
[legend]
Collaboration diagram for gepetto::gui::BodyTreeWidget:
[legend]

Public Slots

void selectBodyByName (const QString bodyName)
 Triggered when an item is selected in the body tree view. More...
 
void selectBodyByName (const std::string &bodyName)
 Triggered when an item is selected in the body tree view. More...
 
QList< BodyTreeItem * > selectedBodies () const
 Get selected bodies. More...
 

Signals

void bodySelected (SelectionEvent *event)
 

Public Member Functions

 BodyTreeWidget (QWidget *parent=NULL)
 
void init (QTreeView *view, QWidget *propertyArea)
 Init the widget. More...
 
virtual ~BodyTreeWidget ()
 
QTreeView * view ()
 Get the body tree view. More...
 
QStandardItemModel * model ()
 
void emitBodySelected (SelectionEvent *event)
 

Protected Slots

void customContextMenu (const QPoint &pos)
 Display the context menu for one item. More...
 
void currentChanged (const QModelIndex &current, const QModelIndex &previous)
 

Detailed Description

Contains the list of all the bodies in the scene.

Constructor & Destructor Documentation

◆ BodyTreeWidget()

gepetto::gui::BodyTreeWidget::BodyTreeWidget ( QWidget *  parent = NULL)
inlineexplicit

References init(), and view().

◆ ~BodyTreeWidget()

virtual gepetto::gui::BodyTreeWidget::~BodyTreeWidget ( )
inlinevirtual

References view().

Member Function Documentation

◆ bodySelected

void gepetto::gui::BodyTreeWidget::bodySelected ( SelectionEvent event)
signal

Referenced by model().

◆ currentChanged

void gepetto::gui::BodyTreeWidget::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedslot

Referenced by model().

◆ customContextMenu

void gepetto::gui::BodyTreeWidget::customContextMenu ( const QPoint &  pos)
protectedslot

Display the context menu for one item.

Parameters
posposition of the item

Referenced by model().

◆ emitBodySelected()

void gepetto::gui::BodyTreeWidget::emitBodySelected ( SelectionEvent event)

Referenced by model().

◆ init()

void gepetto::gui::BodyTreeWidget::init ( QTreeView *  view,
QWidget *  propertyArea 
)

Init the widget.

Parameters
viewtree view to display.
propertyAreamenu in the window

Referenced by BodyTreeWidget().

◆ model()

QStandardItemModel* gepetto::gui::BodyTreeWidget::model ( )
inline

◆ view()

QTreeView* gepetto::gui::BodyTreeWidget::view ( )

Get the body tree view.

Referenced by BodyTreeWidget(), and ~BodyTreeWidget().