Hi Mario, It might be that you haven't done anything wrong, it could be that the osgGA manipulators aren't setting requestContinousUpdate() so double check this.
Robert. On Nov 4, 2007 10:04 AM, Mario Valle <[EMAIL PROTECTED]> wrote: > My application is derived from the osgviewerWX example. > I need to call requestContinuousUpdate() to detect when my model has > been 'kicked' into continuous rotation. > But seems that it is never called (see attached modification). > What I have done wrong? > 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 > > > #ifndef _WXSIMPLEVIEWERWX_H_ > #define _WXSIMPLEVIEWERWX_H_ > > #include <wx/defs.h> > #include <wx/app.h> > #include <wx/cursor.h> > #include <wx/glcanvas.h> > #include <osgViewer/Viewer> > #include <string> > > class GraphicsWindowWX : public wxGLCanvas, public osgViewer::GraphicsWindow > { > public: > GraphicsWindowWX(wxWindow *parent, wxWindowID id = wxID_ANY, > const wxPoint& pos = wxDefaultPosition, > const wxSize& size = wxDefaultSize, long style = 0, > const wxString& name = wxT("TestGLCanvas"), > int *attributes = 0); > > ~GraphicsWindowWX(); > > void init(); > > void OnPaint(wxPaintEvent& event); > void OnSize(wxSizeEvent& event); > void OnEraseBackground(wxEraseEvent& event); > void OnKeyDown(wxKeyEvent &event); > void OnKeyUp(wxKeyEvent &event); > void OnMouse(wxMouseEvent &event); > > // > // GraphicsWindow interface > // > void grabFocus(); > void grabFocusIfPointerInWindow(); > void useCursor(bool cursorOn); > > bool makeCurrentImplementation(); > void swapBuffersImplementation(); > > // note implemented yet...just use dummy implementation to get working. > virtual bool valid() const { return true; } > virtual bool realizeImplementation() { return true; } > virtual bool isRealizedImplementation() const { return true; } > virtual void closeImplementation() {} > virtual bool releaseContextImplementation() { return true; } > > private: > wxCursor _oldCursor; > > DECLARE_EVENT_TABLE() > }; > > class MainFrame : public wxFrame > { > public: > MainFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, > const wxSize& size, long style = wxDEFAULT_FRAME_STYLE); > > void SetViewer(osgViewer::Viewer *viewer); > void OnIdle(wxIdleEvent& event); > > private: > osg::ref_ptr<osgViewer::Viewer> _viewer; > > DECLARE_EVENT_TABLE() > }; > > /* Define a new application type */ > class wxOsgApp : public wxApp > { > public: > bool OnInit(); > }; > > #endif // _WXSIMPLEVIEWERWX_H_ > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

