refactored the getWindows(..) and getContexts(..) methods so that they produce

consistent ordering based on the order Camera/slave camera ordering.
This commit is contained in:
Robert Osfield
2008-09-18 15:18:59 +00:00
parent 8bdb22c22e
commit 91f7895735
6 changed files with 48 additions and 108 deletions

View File

@@ -501,6 +501,22 @@ void ViewerBase::startThreading()
osg::notify(osg::INFO)<<"Set up threading"<<std::endl;
}
void ViewerBase::getWindows(Windows& windows, bool onlyValid)
{
windows.clear();
Contexts contexts;
getContexts(contexts, onlyValid);
for(Contexts::iterator itr = contexts.begin();
itr != contexts.end();
++itr)
{
osgViewer::GraphicsWindow* gw = dynamic_cast<osgViewer::GraphicsWindow*>(*itr);
if (gw) windows.push_back(gw);
}
}
void ViewerBase::checkWindowStatus()
{
Contexts contexts;