3. Mouse & keyboard OpenGL

 

3.1 Mouse

The mouse can be used to manage the 3D objects trough rotation, translation and scale operations, changing the mouse mode with the context menu and/or the M hotkey (see hotkeys section). To change a 3D property, you must drag the mouse from left to right and vice versa pressing the left mouse button. To apply a Z transformation (rotation or translation), you must drag the mouse holding the middle button or the left button and the shift key at the same time. The mouse wheel, if present, has some functions on the basis of the current mouse mode: it can rotate around Y axis, translate along the Z axis and zoom.
In the main window, you can select some functions with the context menu, pressing the right mouse button:

 

Item Subitem Description
Mouse mode

                          

Rotate switches the mouse into the rotation mode.
Translate switches the mouse into the translation mode.
Scale switches the mouse into the scaling mode.
Display Wireframe switches the current display mode in Wireframe, Van der Waals dotted, Van der Waals vectorized, Van der Waals solid, CPK with vectors, CPK solid and liquorice.
VdW Dotted
VdW
VdW Solid
CPK
CPK Solid
Liquorice
Settings shows the display settings dialog box.
Window 320x240 changes the window size. Only the sizes that compatible with te current screen resolution, are showed in the menu
640x480
800x600
1024x768
1280x1024
1600x1200
Reset   resets the current view, changing to default the rotations, the translations and the scale factor.

 

3.2 Hotkeys

When the main window is active, some commands can be executed directly from the keyboard, like showed in the followind table:

Key Description
A Turn on/off the animation mode.
ESC Close VEGA.
L Switch on/off the light.
M Change the mouse mode in rotate -> translate -> scale.
SPC Stop the animation.
V Change the current display mode in Wireframe -> Van der Waals dotted -> Van Der Waals vectorized -> Van der Waals solid -> CPK with vectors -> CPK solid -> Liquorice (see the main menu section).
Arrows
Up, Down
Rotate the molecule around the X axis.
Arrows
Left, Right
Rotate the molecule around the Y axis.
Pg. Up
Pg. Down
Rotate the molecule around the Z axis.