[osg-users] Stop osgGA::TrackballManipulator spinning

Robert Osfield robert.osfield at gmail.com
Thu Apr 7 01:51:41 PDT 2011


HI George,

A quick grep of osgGA reveals:

  StandardManipulator::setAllowThrow(bool)

TrackballManipulator inherits from StandardManipulator, via OrbitManipulator.

Robert.

On Wed, Apr 6, 2011 at 7:23 PM, George Bekos <bekosftw at live.com> wrote:
> Hello guys,
>
> You all know that a trackball camera manipulator, by default, will start spinning the camera around if you release the mouse button while moving the mouse.
> I have a simple/silly question:
> Is there any way to stop the spinning of the camera using code?
> The only solution I can think of is to create my own class which inherits TrackballManipulator and add a function like this:
>
> void TrackballManipulator::enableThrown( bool flag ) {
>   _thrown = flag;
> }
>
> Is this solution fine? is there something wrong with it? Is there any better solution? Thanks for your time guys!!!
>
> Cheers,
> George
>
> PS: I am using OSG 2.9.8
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=38267#38267
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list