Signals | Public Member Functions | Protected Slots | List of all members
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...
 
void setTransparency (int value)
 Set the transparency of currently selected body. More...
 
void setVisibilityMode (QString arg)
 Set the visibility mode of currently selected body. More...
 
void setWireFrameMode (QString arg)
 Set the wireframe mode of currently selected body. More...
 
void setColor (QColor color)
 Set the color of currently selected body. More...
 
void setScale (int scale)
 Set the scale of currently selected body. More...
 

Signals

void bodySelected (SelectionEvent *event)
 

Public Member Functions

 BodyTreeWidget (QWidget *parent=NULL)
 
void init (QTreeView *view, QToolBox *toolBox)
 Init the widget. More...
 
virtual ~BodyTreeWidget ()
 
void changeAlphaValue (const float &alpha)
 Display the value in the slider. More...
 
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 changeAlphaValue(), and view().

Member Function Documentation

◆ bodySelected

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

Referenced by model().

◆ changeAlphaValue()

void gepetto::gui::BodyTreeWidget::changeAlphaValue ( const float &  alpha)

Display the value in the slider.

Parameters
alphaalpha value to convert

Referenced by ~BodyTreeWidget().

◆ 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,
QToolBox *  toolBox 
)

Init the widget.

Parameters
viewtree view to display.
toolBoxmenu 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().