Classes | Namespaces | Macros
bodytreewidget.hh File Reference
#include <QWidget>
#include <QTreeView>
#include <QToolBox>
#include <QStandardItemModel>
#include <QVector3D>
#include <gepetto/viewer/group-node.h>
#include <gepetto/gui/fwd.hh>
Include dependency graph for bodytreewidget.hh:

Classes

class  gepetto::gui::BodyTreeWidget
 Contains the list of all the bodies in the scene. More...
 

Namespaces

 gepetto
 
 gepetto::gui
 

Macros

#define GEPETTO_GUI_BODYTREE_DECL_FEATURE(func, ArgType)
 
#define GEPETTO_GUI_BODYTREE_IMPL_FEATURE(func, ArgType, OutType, WindowsManagerFunc)
 

Macro Definition Documentation

◆ GEPETTO_GUI_BODYTREE_DECL_FEATURE

#define GEPETTO_GUI_BODYTREE_DECL_FEATURE (   func,
  ArgType 
)
Value:
public slots: \
void func (ArgType arg)

◆ GEPETTO_GUI_BODYTREE_IMPL_FEATURE

#define GEPETTO_GUI_BODYTREE_IMPL_FEATURE (   func,
  ArgType,
  OutType,
  WindowsManagerFunc 
)
Value:
void BodyTreeWidget::func (ArgType arg) { \
WindowsManagerPtr_t wsm = MainWindow::instance()->osg(); \
foreach (const QModelIndex& index, view_->selectionModel ()->selectedIndexes ()) { \
const BodyTreeItem *item = dynamic_cast <const BodyTreeItem*> \
(model_->itemFromIndex (index)); \
if (item) wsm->WindowsManagerFunc (item->node()->getID(), \
convertTo<OutType>::from(arg)); \
else \
qDebug() << model_->itemFromIndex(index)->text() << "is not a BodyTreeItem"; \
} \
}