Rotating Structures

Performing a Rotation

Rotation of displayed structures is performed with the middle mouse button, by default. If you are using a two-button mouse and have enabled three-button mouse simulation, you can use both mouse buttons to simulate the middle mouse button.If you prefer to use the left mouse button (or if you only have one mouse button), choose View → Transform Mode → Rotation before doing the rotation. Choose it again or press Esc to revert to the previous action for the left mouse button.

The axis of rotation is selected by a combination of keys and mouse movements. The middle mouse button on its own can be used to rotate about the x axis with vertical movement or the y axis with horizontal movement. Holding down the Shift key restricts the movement to either the x axis or the y axis, depending on the direction in which you first move the mouse. Holding down the Ctrl key selects rotation about the z axis.

If you have a trackpad, you can use the Ctrl key with a single-finger swipe for the default x and y rotation. Rotation about the z axis is done with both Shift and Ctrl.

Keyboard shortcuts (or items on the View → Rotate menu) can be used to rotate structures by a small increment (which can be set in the Preferences panel). The default shortcuts are described in the topic Using the Keyboard in Maestro.

To reset the orientation so that the screen axes and structure coordinate axes coincide (which also resets the zoom and the location of the screen origin), click the Reset button on the View toolbar

or choose View → Reset .

Rotation modes

Maestro has a global and a local transformation mode. By default the program is in global transformation mode. Global rotations only change the "camera angle". This means that rotations do not affect the actual molecular coordinates: instead the view of the Workspace is updated (by keeping a transformation matrix).

When doing global transformations the default is to use the centroid of all the displayed atoms as the center of rotation. You can change the centroid by spot-centering.

When doing local transformations, the center is specified in the Advanced Transformations panel. The default is the centroid of the selected atoms. Doing a fit to Workspace changes the view so that all displayed atoms are visible, and sets the centroid of all displayed atoms as the center of rotation.

If the program is in local transformation mode, then rotations update only the selected atoms. The coordinates of all other atoms are not affected.

For a quick local transformation, you can select the atoms in the Workspace, then choose Transform from the Workspace shortcut menu, and perform the rotation.

See the Advanced Transformations Panel and Local Transformations topics for more information on local transformations as well as how to switch between local and global transformations.

When a project is closed, all viewing transformations (rotation, translation, and zoom) are saved with the project and restored when it is opened again.

Customizing Actions for Rotation

The various ways of doing a rotation are customizable. The mouse buttons or trackpad gestures used for rotation can be customized in the Customize Mouse Actions panel. The increment for rotation with keyboard shortcuts can be set in the Preferences panel. The shortcuts are associated with menu items, under View → Rotate. They can be customized in the Customize Menus panel, which you open with Maestro → Customize → Menus.

Related Topics


Legal Notice

File: workspace/rotate.html
Last updated: 23 Jun 2014