Home Documentation Download Screenshots Developer

libQGLViewer mouse behavior

The mouse motion is transmitted to one of the three entities: The default state key is Qt::NoButton for the CAMERA and Qt::ControlButton for the FRAME.

The behavior of the MouseGrabber depends on your implementation. See the MouseGrabber documentation page for details.

The Camera behavior

The camera has two modes. The REVOLVE mode (default) lets you examine a 3D object while the FLY mode is designed for walkthrough applications.

In REVOLVE mode, the button bindings are the following:

With a double click, the original action is automated : When two buttons are pressed together, the motion is defined with respect to the screen coordinate system: With a double simple click © (press/release a mouse button, then an other, at any speed but without moving the mouse) :

In FLY mode:

You can switch between the two camera modes using the CAMERA_MODE QGLViewer::shortcutKey() (space by default).

Try the simpleViewer example for an illustration.

The ManipulatedFrame behavior

The manipulatedFrame essentially behaves like the camera in REVOLVE mode: A double click automates the normal behavior, and two buttons pressed together result in a screen space motion.

Try the manipulatedFrame example for an illustration.

Mouse behavior customization

As for the keyboard, there are two ways of changing the default mouse behavior:

Valid XHTML 1.0! Valid CSS! Last modified on vendredi, juin 27 2003.