I forgot to mention that I'm using osg SVN version 2.9.5. 2009/7/6 Alexandre Amalric <[email protected]>
> Hi osg-users, > > I am curious about a part of code in CompositeViewer.cpp in function : > > void CompositeViewer::eventTraversal() > > it's written : > > > case > (osgGA::GUIEventAdapter::RESIZE): > > setCameraWithFocus(0); > > break; Why are we set camera with focus to NULL when resizing a view ?? > Isn't it useless ?? > > I'm curious because I'm experiencing some difficulties to set focus on > composite viewer view's myself in my MFC application. > I'm calling : > > > pView->getCamera()->setAllowEventFocus( > false); > > when creating a new view and I set the focus myself when receiving a focus > event on the CView embedding the osgViewer::View. > > My goal is to set focus on an osgViewer::View only when corresponding CView > (MFC) is focused, not when moving mouse on the osgViewer::View. > > > > Kind regards, > > -- > Alexandre AMALRIC Ingénieur R&D > =================================== > PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille > http://www.pixxim.fr > -- Alexandre AMALRIC Ingénieur R&D =================================== PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille http://www.pixxim.fr
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

