17 #ifndef GEPETTO_GUI_WINDOWSMANAGER_HH
18 #define GEPETTO_GUI_WINDOWSMANAGER_HH
40 osgViewer::Viewer* viewer, osg::GraphicsContext* gc);
43 bool addToGroup(
const std::string& nodeName,
const std::string& groupName);
45 const std::string& groupName);
52 const std::string& extension);
71 typedef std::pair<BodyTreeItems_t, bool> BodyTreeItemsAndGroup_t;
72 typedef std::map<std::string, BodyTreeItemsAndGroup_t> BodyTreeItemMap_t;
74 BodyTreeItemMap_t nodeItemMap_;
77 void addToGroup(
const std::string& nodeName,
const std::string& groupName,
80 void deleteBodyItem(
const std::string& nodeName);
82 std::map<WindowID, OSGWidget*> widgets_;
84 bool refreshIsSynchronous_;
Contains the list of all the bodies in the scene.
Definition: bodytreewidget.hh:31
Definition: windows-manager.hh:30
bool stopCapture(const WindowID windowId)
static WindowsManagerPtr_t create(BodyTreeWidget *bodyTree)
WindowID createWindow(QString windowName)
virtual void addNode(const std::string &nodeName, NodePtr_t node, GroupNodePtr_t parent)
virtual void addGroup(const std::string &groupName, GroupNodePtr_t group, GroupNodePtr_t parent)
viewer::WindowsManager Parent_t
Definition: windows-manager.hh:34
bool addToGroup(const std::string &nodeName, const std::string &groupName)
void setRefreshIsSynchronous(bool synchonous)
WindowID createWindow(const std::string &windowName)
void insertNode(const std::string &nodeName, NodePtr_t node)
bool removeFromGroup(const std::string &nodeName, const std::string &groupName)
WindowID createWindow(const std::string &windowName, OSGWidget *widget, osgViewer::Viewer *viewer, osg::GraphicsContext *gc)
bool startCapture(const WindowID windowId, const std::string &filename, const std::string &extension)
WindowsManager(BodyTreeWidget *bodyTree)
bool deleteNode(const std::string &nodeName, bool all)
BodyTreeItems_t bodyTreeItems(const std::string &name) const
void captureFrame(const WindowID windowId, const std::string &filename)
Manage a set of windows that may share 3D objects.
Definition: windows-manager.h:48
std::vector< NodeConfiguration > NodeConfigurations_t
Definition: windows-manager.h:84
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:50
viewer::shared_ptr< WindowsManager > WindowsManagerPtr_t
Definition: fwd.hh:58
viewer::WindowID WindowID
Definition: osgwidget.hh:41
viewer::GroupNodePtr_t GroupNodePtr_t
Definition: fwd.hh:53
std::vector< BodyTreeItem * > BodyTreeItems_t
Definition: fwd.hh:45
OpenThreads::Mutex Mutex
Definition: windows-manager.h:30
Definition: action-search-bar.hh:27