I have found the reason why requestContinuousUpdate() is not been called 
in my application (that is based on osgviewerWX example).
The osgviewerWX graphics window is derived from osgViewer::GraphicsWindow
(class GraphicsWindowWX : public wxGLCanvas, public 
osgViewer::GraphicsWindow) and here I correctly add the 
TrackballManipulator and tried to
override osgViewer::GraphicsWindow::requestContinuousUpdate() without 
success.

That is because TrackballManipulator calls, when needed, 
View::requestContinuousUpdate(). So obviously overriding 
osgViewer::GraphicsWindow::requestContinuousUpdate(), as I was doing, 
has no effect.

Now I created a class derived from osgViewer::Viewer and here I redefine 
the function and this now works.

But this opens a question: which is the goal of adding a virtual 
requestContinuousUpdate() to osgViewer::GraphicsWindow? Who calls it?

Thanks for your help!
                                     mario

-- 
Ing. Mario Valle
Visualization Group                              | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to