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