gepetto::gui::SelectionMode Class Referenceabstract

Base class to define selection mode. More...

#include <gepetto/gui/selection-handler.hh>

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

Public Slots

virtual void onSelect (SelectionEvent *event)=0
 Slot called when a body is selected. More...
 
virtual QString getName ()
 

Signals

void selectedBodies (QStringList selectedBodies)
 

Public Member Functions

 SelectionMode (WindowsManagerPtr_t wsm)
 
 ~SelectionMode ()
 
virtual void reset ()
 
QString currentBody ()
 

Protected Attributes

QString currentSelected_
 
WindowsManagerPtr_t wsm_
 

Detailed Description

Base class to define selection mode.

Note
The class has no pure virtual method in order to be used in python.

Constructor & Destructor Documentation

gepetto::gui::SelectionMode::SelectionMode ( WindowsManagerPtr_t  wsm)
inline
gepetto::gui::SelectionMode::~SelectionMode ( )
inline

Member Function Documentation

QString gepetto::gui::SelectionMode::currentBody ( )
inline
virtual QString gepetto::gui::SelectionMode::getName ( )
inlinevirtualslot
virtual void gepetto::gui::SelectionMode::onSelect ( SelectionEvent event)
pure virtualslot

Slot called when a body is selected.

Parameters
namebody's name
positionclick position

Referenced by currentBody().

virtual void gepetto::gui::SelectionMode::reset ( )
inlinevirtual

Reimplemented in gepetto::gui::MultiSelection.

References currentSelected_.

void gepetto::gui::SelectionMode::selectedBodies ( QStringList  selectedBodies)
signal

Referenced by currentBody().

Member Data Documentation

QString gepetto::gui::SelectionMode::currentSelected_
protected

Referenced by currentBody(), and reset().

WindowsManagerPtr_t gepetto::gui::SelectionMode::wsm_
protected