Hi,

i want to controll my camera over a osgWidget. 
ive implemened the mousePush method from EvenetInterface



Code:

bool mousePush(double, double, const osgWidget::WindowManager* wm2) 
        {
                osgWidget::WindowManager* t = 
const_cast<osgWidget::WindowManager*>(wm2);
                double b = t->getView()->getCameraManipulator()->getDistance();
                b+=2;
                t->getView()->getCameraManipulator()->setDistance( b );
                std::cout << 
t->getView()->getCameraManipulator()->getDistance() << std::endl;
                return true;
        }




no changes in camera, because osgWidget::WindowManager is const 
how can i access to the viewer and the camera? 

Cheers Matthias[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26232#26232





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

Reply via email to