next up previous contents index
Next: Molecules (Mol) Form Up: Description of each VMD Previous: Main Form   Contents   Index


Mouse Form

The Mouse form indicates and controls the behavior of the mouse when the mouse moves and clicks within the graphics window. Mouse clicks and drags can affect VMD in one of two ways. It can change the view of the scene, either by rotating, translating, or scaling. It can also pick objects in the scene, causing some further action to be taken. These behaviors are all reflected in the state of the Mouse form.

Below, we describe the four main parts of the Mouse form.

Action buttons

The three buttons in the upper left corner of the Mouse form perform actions which affect the entire scene. The Reset View button cancels the effect of rotations, scalings, and translations performed by the user and returns the scene to its original orientation. The Stop Rotation button halts rotation induced by clicking and dragging the mouse across the scene. Finally, the Save Config button prompts the user to enter a filename in the vmd console window where the current state of VMD is saved. For example, assume the filename "mystate.vmd" has been entered. Subsequent VMD can be returned to this state by either starting VMD with the command "vmd -e mystate.vmd", or by starting VMD normally and typing "source mystate.vmd" in the vmd console.

Mouse mode

The two pulldown menus in the bottom left corner of the Mouse form are part of the controls for the mouse mode. The top menu, entitled "View Mode", selects whether the mouse will rotate, translate, or scale the scene when the user clicks and drags with the left mouse button. Below the "View Mode" menu is the "Object Mode" menu. This pulldown menu does not change the state of the mouse. Instead, it controls which of five submenus are displayed to the right of the mouse mode menus on the Mouse form. These submenus will be described in further detail below.

Pick information

The large region in the upper right corner of the Mouse form displays information about the last atom picked by the mouse. This information is also echoed to the vmd console. The data in the Pick information will remain on the Mouse form until a new atom is picked by the mouse. Information about the following fields is identified:

Object menus

The five object menus all appear in the bottom right corner of the Mouse form. Only the menu selected by the Object Mode pulldown menu is displayed. These menus control how the mouse affects objects in the scene (as opposed to how the mouse changes the view of these objects). Note that any time you choose a new object mode, the View Mode changes to "Rotate".

next up previous contents index
Next: Molecules (Mol) Form Up: Description of each VMD Previous: Main Form   Contents   Index