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:
Collaboration diagram for gepetto::gui::BodyTreeWidget:

Public Slots

void selectBodyByName (const QString bodyName)
 
void selectBodyByName (const std::string &bodyName)
 
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)
 
virtual ~BodyTreeWidget ()
 
QTreeView * view ()
 Get the body tree view. More...
 
QStandardItemModel * model ()
 
void emitBodySelected (SelectionEvent *event)
 

Protected Slots

void customContextMenu (const QPoint &pos)
 
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

◆ ~BodyTreeWidget()

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

Member Function Documentation

◆ bodySelected

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

◆ currentChanged

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

◆ customContextMenu

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

Display the context menu for one item.

Parameters
posposition of the item

◆ emitBodySelected()

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

◆ init()

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

Init the widget.

Parameters
viewtree view to display.
propertyAreamenu in the window

◆ model()

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

◆ view()

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

Get the body tree view.


The documentation for this class was generated from the following file: