- 1.7
- 1.6
- 1.5
- Beta
- Examples (for 1.6a)
- Misc
Table 6.19. Prefs type members
| Member | Type | Access | Description |
|---|---|---|---|
| elements | element | ro | Array of element data (masses, symbols, names, etc.) |
| anglelabel | string | rw | The units label appended to angle measurements |
| atomdetail | int | rw | Quadric detail of atoms. Higher values give rounder atoms but make rendering slower |
| atomstyleradius | double[4] | rw | The atom radii used for selection and rendering in the four Drawing Styles |
| backcull | int | rw | Whether culling of backward-facing polygons should be performed |
| backgroundcolour | double[4] | rw | Background colour of the main canvas on which models are drawn |
| bonddetail | int | rw | Quadric detail of bonds. Higher values give rounder bonds but make rendering slower |
| bondstyleradius | double[4] | rw | The bond radii used for selection and rendering in the four Drawing Styles |
| bondtolerance | double | rw | Tolerance used in automatic calculation of bonds between atoms |
| cachelimit | int | rw | The trajectory cache size (in kilobytes) - trajectory files calculated to have more than this amount of data will not be cached in memory |
| calculateelec | int | rw | Controls whether electrostatic contributions to the energy/forces are calculated |
| calculateintra | int | rw | Controls whether intramolecular contributions to the energy/forces are calculated |
| calculatevdw | int | rw | Controls whether short-range Vdw contributions to the energy/forces are calculated |
| clipfar | double | rw | The far clipping distance used when rendering |
| clipnear | double | rw | The near clipping distance used when rendering |
| colourscheme | string | rw | The current Colour Scheme used to colour atoms and bonds |
| combinationrule | string | rw | Lennard-Jones parameter combination rule equations. See Combination Rules for a list of rules. |
| commonelements | string | rw | Comma-separated list of common elements that appear in the Select Element dialog |
| densityunit | string | rw | The unit of density to used when displaying cell densities |
| depthcue | int | rw | Enables/disables depth cueing |
| depthfar | int | rw | The far fog distance used when rendering (if depth cueing is enabled) |
| depthnear | int | rw | The near fog distance used when rendering (if depth cueing is enabled) |
| distancelabel | string | rw | The units label appended to distance measurements |
| eleccutoff | double | rw | The electrostatic cutoff distance |
| elecmethod | string | rw | The method of electrostatic energy/force calculation |
| energyunit | double | rw | Set the unit of energy to use |
| energyupdate | int | rw | Update frequency for the energy in various methods |
| ewaldalpha | double | rw | Convergence parameter in Ewald sum |
| ewaldkmax | int[3] | rw | Vector of Ewald reciprocal space vector limits (kmax) |
| ewaldprecision | double | rw | Precision parameter to use when generating parameters in EwaldAuto |
| forcerhombohedral | int | rw | For spacegroups that are detected to have a hexagonal basis, force packing to use generators in a rhombohedral basis |
| foregroundcolour | double[4] | rw | Forground pen colour of the main canvas on which models are drawn, affecting colour of text labels, rotation globe, unit cell etc. |
| globesize | int | rw | Size, in pixels, of the rotation globe in the lower-right-hand corner of the screen |
| hdistance | double | rw | Default H-X bond distance to use when adding hydrogen atoms |
| keyaction | string[3] | rw | Current actions of the modifier keys Shift, Ctrl, and Alt |
| labelsize | int | rw | Font pointsize for label text |
| linealiasing | int | rw | Enables/disables line aliasing |
| manualswapbuffers | int | rw | Flag whether manual swapping of GL buffers is enabled |
| maxrings | int | rw | Maximum allowable number of rings to detect within any single pattern |
| maxringsize | int | rw | Maximum size of ring to detect when atom typing |
| maxundo | int | rw | Maximum number of undo levels remembered for each model (-1 = unlimited) |
| modelupdate | int | rw | Update frequency for the current model in various methods |
| mouseaction | string[4] | rw | Current actions of the Left, Middle, Right, and Wheel mouse buttons |
| offscreenobjects | int | rw | Bitarray of View Objects drawn when rendering scenes to image files |
| perspective | int | rw | Whether perspective view is enabled |
| perspectivefov | double | rw | Field of vision angle to use for perspective rendering |
| polygonaliasing | int | rw | Enables/disables polygon aliasing |
| renderstyle | string | rw | The current model drawing style |
| replicatefold | int | rw | Whether to fold atoms before cell replicate |
| replicatetrim | int | rw | Whether to trim atoms after cell replicate |
| screenobjects | int | rw | Bitarray of View objects drawn when rendering to screen |
| selectionscale | double | rw | Multiple of the standard atom radius to use for transparent selection spheres |
| shininess | int | rw | The shininess of atoms (value must be between 0 and 127 inclusive) |
| specularcolour | double[4] | rw | Colour of all specular reflections |
| spotlight | int | rw | Whether the spotlight is on or off |
| spotlightambient | double[4] | rw | The ambient colour component of the spotlight |
| spotlightdiffuse | double[4] | rw | The diffuse colour component of the spotlight |
| spotlightposition | double[4] | rw | Spotlight coordinates (in Å) |
| spotlightspecular | double[4] | rw | The specular colour component of the spotlight |
| useframebuffer | int | rw | Whether to use the grabFrameBuffer() method of the main widget instead of the normal renderPixmap() method when saving bitmap images. If saving an image results in a completely black or corrupt bitmap, try setting this to TRUE. |
| usenicetext | int | rw | Whether QPainter (on/1/TRUE) or QGlWidget (off/0/FALSE) is used to render label text |
| vdwcut | double | rw | The VDW cutoff distance |
| vdwscale | double | rw | Scaling factor to use for short-range radii in energy/force calculation |
| warn1056 | int | rw | Many changes to the typing language syntax were introduced in revision 1056, and a warning message was implemented. This can be turned off by setting this variable to FALSE |
| zoomthrottle | double | rw | Zooming 'throttle' value used to calm down or increase the distance jumped when zooming with the mouse |

