diff --git a/include/gepetto/gui/osgwidget.hh b/include/gepetto/gui/osgwidget.hh index 3060db2a10b564c8134b35c808bdff4c7a1988d7..00413c93716bd5494815b0762afba88768480bfc 100644 --- a/include/gepetto/gui/osgwidget.hh +++ b/include/gepetto/gui/osgwidget.hh @@ -39,6 +39,8 @@ namespace gepetto { /// Replace the camera at her home position. virtual void onHome(); + int wid () const; + void addFloor(); void attachToWindow (const std::string nodeName); diff --git a/src/gui/osgwidget.cc b/src/gui/osgwidget.cc index e1d554a3f7510228d40876d1725d63e8627494d8..f4e3b8be13a7f5e3067aaa7b6abb3143c39bf106 100644 --- a/src/gui/osgwidget.cc +++ b/src/gui/osgwidget.cc @@ -165,6 +165,11 @@ namespace gepetto { return wid_; } + int OSGWidget::wid() const + { + return int(wid_); + } + graphics::WindowManagerPtr_t OSGWidget::window() const { return wm_;