Skip to content
Snippets Groups Projects
Commit 65e76a9e authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Enhance listing of nodes, groups and windows.

parent 712e37c8
No related branches found
No related tags found
No related merge requests found
......@@ -72,8 +72,9 @@ namespace graphics {
public:
static WindowsManagerPtr_t create ();
virtual void getNodeList();
virtual void getWindowList();
virtual std::vector<std::string> getNodeList();
virtual std::vector<std::string> getSceneList();
virtual std::vector<std::string> getWindowList();
virtual bool setRate(const int& rate);
virtual void refresh();
......
......@@ -479,25 +479,41 @@ namespace graphics {
}
}
void WindowsManager::getNodeList ()
std::vector<std::string> WindowsManager::getNodeList ()
{
std::vector<std::string> l;
std::cout << "List of Nodes :" << std::endl;
for (std::map<std::string, NodePtr_t>::iterator it=nodes_.begin ();
it!=nodes_.end (); ++it)
it!=nodes_.end (); ++it) {
std::cout << " " << it->first << std::endl;
l.push_back (it->first);
}
return l;
}
std::vector<std::string> WindowsManager::getSceneList ()
{
std::vector<std::string> l;
std::cout << "List of GroupNodes :" << std::endl;
for (std::map<std::string, GroupNodePtr_t>::iterator it=
groupNodes_.begin (); it!=groupNodes_.end (); ++it)
groupNodes_.begin (); it!=groupNodes_.end (); ++it) {
std::cout << " " << it->first << std::endl;
l.push_back (it->first);
}
return l;
}
void WindowsManager::getWindowList ()
std::vector<std::string> WindowsManager::getWindowList ()
{
std::vector<std::string> l;
std::cout << "List of Windows :" << std::endl;
size_t rank = 0;
for (WindowManagerVector_t::iterator it = windowManagers_.begin ();
it!=windowManagers_.end (); ++it)
std::cout << rank << " - " << (*it)->getViewerClone ()->getSlave (0)._camera->getGraphicsContext ()->getTraits ()->windowName << std::endl;
it!=windowManagers_.end (); ++it) {
std::cout << rank << " - " << (*it)->getViewerClone ()->getCamera()->getGraphicsContext ()->getTraits ()->windowName << std::endl;
l.push_back ((*it)->getViewerClone ()->getCamera()->getGraphicsContext ()->getTraits ()->windowName);
}
return l;
}
bool WindowsManager::createGroup (const char* groupNameCorba)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment