Hi!
I'm using the composite viewer, to make a program wherein there
are two views of the entire scene. The main view is spread across the screen
while the other view lies in a corner. I want the the smaller view to
disappear when I click on it (left click.) My handle function is --
bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& aa)
{
osgViewer::View* view = dynamic_cast<osgViewer::View*>(&aa);
if (!view) return false;
if (ea.getEventType() == osgGA::GUIEventAdapter::RELEASE){
viewer.removeView(topView);
viewer.frame();
cout << "Killed the map!!" << endl;
}
return false;
}
But when I click on the smaller view,
it prints "Killed the map", but the view still remains there. Why does it
happen that way? Isn't viewer.frame() supposed to display a completely new,
updated frame?
thanks
Bye
Sashidhar
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org