![]() |
||||||
|
|
|
Download |
Diamond Version 5 User Manual: Display of structure pictureLabelling atoms and bonds
Previous article: Unit cell vectors a, b, c, and atom vectors Overview
This article deals with the use of atom and bond labels and will tell you: - how to add labels to atoms and bonds, - what atom and bond label texts can consist of, - how to define the size, position, and style of the label, - how to shift the label with the mouse, - how to change the label text, size, position, and style of an existing label, - how to delete atom and bond labels.
Adding Labels
There are several ways how you can add labels to atoms or bonds or to both atoms and bonds:
Labelling all selected atoms and bonds
To label all selected atoms and bonds, push the (red marked) button
Labelling all selected atoms or bonds If objects of different kinds (atoms, bonds, etc.) have been selected, but you want to label the selected atoms or the selected bonds only, or if you want to add labels and define new settings (text, size, position, style), right-click into one of the selected atoms or bonds, and choose the appropriate command from the context menu, that means either the Atom label(s) or the Bond label(s) command, rsp., from the Add sub-menu of the context menu. You may also choose the Atom labels command from the Objects menu. Both commands open the Add Atom Label dialog, where you can change the default or latest settings, rsp., and start the generation of labels with the OK button. If the Update existing label definitions checkbox is checked, existing labels will be overwritten using the current settings. The Bond Labels command in the Objects menu does the same for bonds rather than atoms, using the Add Bond Label dialog instead.
Atom Label TextTo define the text for a new atom label or to edit the contents of an existing atom label, use the controls in the Text group of the Add Atom Labels dialog box or the Edit Atom Labels dialog box, rsp. The atom label can either have individual text or pre-defined text such as the atom symbol. Content determines the kind of information to be supplied, whereas Format decides how the information will be formatted. Mixed site decides, if to show only the label for the representative of mixed atom site (or the single component to show at a certain position) or of all components of a mixed atom site, separated with '/', ',', or '+' character each.
You may select from:
Bond Label TextTo define the text for a new bond label or to edit the contents of an existing bond label, use the controls in the Text group of the Add Bond Labels dialog box or the Edit Bond Labels dialog box, rsp.
The bond label can either have individual text or pre-defined text such as the bond length.
Content determines the kind of information to be supplied, whereas Format decides how the information will be formatted.
You may select from:
Style, Size, and PositionTo define the size, position, and style for a new atom or bond label or to edit the size, position, or style of an existing atom or bond label, use the controls in the Style group of the Add Atom/Bond Labels dialog box or the Edit Atom/Bond Labels dialog box, rsp. See "Adding Labels" and "Changing Label Text, Style, or Size After Creation" how to add labels or how to edit existing labels, rsp.
Both size and position of an atom or bond label are defined in Angstroem units rather than in centimeters or millimeters, that means both position and size of the label depend on the current enlargement factor of the structure picture. If central projection is used, labels in the front may appear larger than those in the rear. If you rotate or shift a structure, the labels follow the movements of their associated atoms and bonds, rsp.
Defining the label's position
The position of an atom or bond label is defined as the vector between the reference point of the label and the center of the associated atom or the center of the associated bond, using the components x, y, and z in Angstroem units. x determines the horizontal, y the vertical distance. Positive values mean shift to the right and top rsp. The reference point of the label is defined by Alignment. The third parameter, z, is used only for rendered structure pictures to define the 3D position of the text relative to the 3D coordinates of the corresponding atom or bond. Since rendered representation uses a Z buffer to calculate the overlap of objects, parts of a label may interpenetrate its associated atom or bond, if it is "too near". To avoid this, use a value of about 0.5 or higher to ensure drawing of the label in front of the atom or bond, rsp. Since x, y, and z refer to the view coordinate system, the label does not rotate with the atom or bond, when the structure is rotated. The Alignment defines the reference point within the rectangle that surrounds the label text. The label may be aligned in different ways:
Normally, labels do not rotate when the structure is being rotated. Especially for bond labels, you can assign an alignment that rotates bond labels automatically so that the text is parallel with the bond axis.
Defining the label size
Like the position, the size of the label text is defined in Angstroem units. The real size of the label (in centimeters) in the structure picture is calculate with the current enlargement factor. If central projection is used, labels in the front may appear larger than those in the rear. Changing the enlargement factor of the structure picture leads to a equivalent increase or decrease of the label size. Use the input field Text size to set the label text size.
Defining the label color Use the color select box Color to select an existing color or define a new color for the label.
If you are adding new labels, you can constrain the label's color with the atom's or bond's main color, instead.
For that, check the checkbox Use atom's main color. The main color is derived from the atom's or bond's design:
The main color is the interior color of atoms and thick bonds. (For thin bonds, only one color is available.)
If the atom or thick bond is hollow or has black or white as interior color, Diamond takes the edge color instead.
Defining font and other attributes
Push the Font button to open the MS Windows standard font dialog to define the font and attributes like bold and/or italics. If the text shall appear underlined, check the Underline checkbox. Use Strike out to strike out the text. If the checkbox Opaque is checked, the label text will be opaque, which means that the background of the label text will be filled with the current background color. Otherwise (default) it is transparent.
Defining a default style for labels When you are editing an existing label, check the checkbox Use this design as default for new labels to make the current options (text, size, position, styles) the default settings for new labels. These default settings apply automatically, if you add labels with the quick method (compare "Adding Labels"). The checkbox is not available in the Add Atom/Bond Labels dialog.
Shifting Label Position With Mouse or Cursor
You can shift the position of an atom label or bond label with the mouse. If you select multiple atom or bond labels, you can shift these labels simultaneously. Shifting the position means here changing the x and y coordinate of the label(s).
To shift a single label, move the mouse cursor into the rectangle that surrounds the label text, then press down the left mouse button and shift the label with left mouse button down to the desired position. When you have reached the desired position, release the left mouse button.
To shift multiple labels simultaneously, first select the labels, then move the mouse cursor into one the label markers, and continue like for a single label.
Changing Label Text, Size, or Style After Creation
To edit the properties of one or more atom or bond labels, do the following:
If you want to edit one label, the easiest way is to double-click into the rectangle that surrounds the label text.
Or click with the right mouse button into that rectangle, and then choose the Atom/bond label(s) command from the Edit sub-menu of the context menu,
or choose the Atom labels or Bond labels command, rsp., from the Objects menu.
If you want to edit more than one label at a time, first select the labels,
then either double-click into one of the markers or click with the right mouse button into one of the markers and choose the Atom/bond label(s) command from Edit sub-menu of the context menu,
or choose the Atom labels or Bond labels command, rsp., from the Objects menu. All methods open the Edit Atom Labels dialog or Edit Bond Labels dialog, rsp. If you edit one label only, change the settings you want to alter, and confirm with OK. If multiple labels have been defined, those settings keep blank that are not unique. If for example two labels have been selected with identical settings, but one label in red, the other in yellow, the color select box will be empty.
Removing LabelsTo delete one or more atom or bond labels, select the labels, and then either press the Delete key, or click with the right mouse button into one of the markers, and choose the Atom/bond label(s) command from the Destroy sub-menu of the context menu.
Previous article: Unit cell vectors a, b, c, and atom vectors |
Page last modified August 25, 2022. Copyright © 2022 Crystal Impact GbR. All rights reserved. Contact Webmaster |