GillesDebunne/libQGLViewer

How to stop spinning automatically?

Joyfulmika opened this issue · 7 comments

Hi,
Thanks for your library.
I found out that in QGLViewer if I let the mouse click, move and release quickly, the view will spin automatically and endlessly, until I click again. It's normal but not useful to me.
In other 3DView library like OSG, we can use 'setAllowThrow()' method to stop spinning when the mouse releases.
I read some documents but didn't find out method like that.
So I wonder what code would do the same thing?

Look at spinningSensitivity http://libqglviewer.com/refManual/classqglviewer_1_1ManipulatedFrame.html#a5753c3f2e0b43a6d9214f08ba3f05b69

On Fri, Apr 23, 2021 at 9:20 AM Mika Shaw @.***> wrote: Hi, Thanks for your library. I found out that in QGLViewer if I let the mouse click, move and release quickly, the view will spin automatically and endlessly, until I click again. It's normal but not useful to me. In other 3DView library like OSG, we can use 'setAllowThrow()' method to stop spinning when the mouse releases. I read some documents but didn't find out method like that. So I wonder what code would do the same thing? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#53>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOPFGWOW3O6B7B2P5BWJT3TKENUTANCNFSM43OCITKA .

Thanks for your reply.
It is said that set the spinningsensitivity to 100 would forbid the spin. And this is how I set it in init():
qglviewer::ManipulatedFrame* m = new qglviewer::ManipulatedFrame();
m->setSpinningSensitivity(qreal(100.0));
I tested and found that the spinning was still the same as before while the sensitivity is successfully set as 100.
Is there anything wrong I did?

Thanks you so much! It helps.
Since like I misuse the manipulatedFrame that is used by the QGLViewer class. Could you plz tell me briefly about the usage of it? Why there are two manipulatedFrame objects that one is in viewer and the other is in camera?

Thanks. I understand :)

Closing this issue