Re: [osg-users] [3rdparty] osgWidget and rotation

2012-08-28 Thread Jeremy Moles
On Tue, 2012-08-28 at 16:59 +0200, Miguel Lokida wrote: > So i see what you mean. But how can I declare the position of my widget > relative to the parented window ? > > Here's the code I use: > > [code] > const unsigned int MASK_2D = 0xF000; > > // note: osgViewer::Viewer* ptrViewer; > //

Re: [osg-users] [3rdparty] osgWidget and rotation

2012-08-28 Thread Miguel Lokida
So i see what you mean. But how can I declare the position of my widget relative to the parented window ? Here's the code I use: [code] const unsigned int MASK_2D = 0xF000; // note: osgViewer::Viewer* ptrViewer; // note: osg::ref_ptr _rootScene; // note: ptrViewer->setSceneData(_rootScene);

Re: [osg-users] [3rdparty] osgWidget and rotation

2012-08-28 Thread Jeremy Moles
On Tue, 2012-08-28 at 11:05 +0200, Miguel Lokida wrote: > Hi, > > I want to use an osgWidget to draw a compass. So, I need to use the rotation. > The problem is that the origin of the osgWidget is at the bottom left and not > at the center of the widget. > > How can I specify the center of my

[osg-users] [3rdparty] osgWidget and rotation

2012-08-28 Thread Miguel Lokida
Hi, I want to use an osgWidget to draw a compass. So, I need to use the rotation. The problem is that the origin of the osgWidget is at the bottom left and not at the center of the widget. How can I specify the center of my widget (since set Origin only move the widget) in order to have a goo