[osg-users] changing a osgWidget::Box position

2009-12-18 Thread David Martín
Hi, i´ve got an osgWidget::Box and some osgWidget::Label as it´s children i can set the initial box position with setPosition(x, y, z) with no problems, but if i want to change the position later in time, the same method does not work do i need to call some other method in order to move the bo

Re: [osg-users] changing a osgWidget::Box position

2009-12-18 Thread Jeremy Moles
On Fri, 2009-12-18 at 11:08 +, David Martín wrote: > Hi, > > i´ve got an osgWidget::Box and some osgWidget::Label as it´s children > > i can set the initial box position with setPosition(x, y, z) with no > problems, but if i want to change the position later in time, the same method > does

Re: [osg-users] changing a osgWidget::Box position

2013-03-14 Thread Aitor Ardanza
Hi, I don't understand the Jeremy answer... when you say call update() function, you are refering to osgWidget::Box update? I need to reposition some GUI box when the window is resized. If I call.. void HyperPatientVRGUI::resize(int w, int h) { _hyperLogoBox->setPosition(0.0f, h-500, 0

Re: [osg-users] changing a osgWidget::Box position

2013-03-15 Thread Jeremy Moles
On 03/14/2013 12:14 PM, Aitor Ardanza wrote: Hi, I don't understand the Jeremy answer... when you say call update() function, you are refering to osgWidget::Box update? I need to reposition some GUI box when the window is resized. If I call.. void HyperPatientVRGUI::resize(int w, int h) {