schrodinger.trajectory.trajectory_gui_dir.display_settings_manager module¶
-
class
schrodinger.trajectory.trajectory_gui_dir.display_settings_manager.
DisplaySettingsManager
(data)¶ Bases:
object
This class makes use of schrodinger.trajectory.trajectory_gui_dir.display_settings_data.DisplaySettingsData or schrodinger.trajectory.trajectory_gui_dir.playback_settings_data.PlaybackSettingsData class objects and generates appropriate asl based display settings. It also provides ability to get dynamic tooltip based on display settings. Provides ability to update atoms visibility in the structure based on display settings.
-
__init__
(data)¶ Parameters: data (DisplaySettingsData or PlaybackSettingsData) – Display settings
-
honorHideAtomsAsl
()¶ Whether to honor ‘Hide atoms:’ or not.
-
getHideAtomsAsl
()¶ Returns hide atom asl based on current ‘Hide atoms:’ settings
-
getHideAtomsBeyondBindingSiteASL
()¶ Returns hide atoms asl based on ‘Beyond binding site’ settings
-
getHideAtomsNonpolarHydrogensASL
()¶ Returns hide atoms asl based on ‘Nonpolar hydrogens’ settings
-
honorMatchingAtomsAsl
()¶ Whether to honor ‘Atoms matching ASL definition:’ option
Return type: bool
-
getMatchingAtomsAsl
()¶ Returns matching atom asl based on ‘Display only:’
Return type: str or None
-
getDisplayAtomsAsl
()¶ Returns display atom asl based on ‘Hide atoms:’ & ‘Display only:’ settings
Return type: str or None
-
getBindingSiteTooltip
(checked)¶ Get ‘Beyond Binding Site’ tooltip
-
getSolventsTooltip
(checked)¶ Get ‘Solvents Only’ tooltip
-
getNonpolarHydrogensTooltip
(checked)¶ Get ‘Nonpolar Hydrogens’ tooltip
-
getProteinTooltip
(checked)¶ Get ‘Protein Only’ tooltip
-
applyShowHideAtomsAsl
(st: schrodinger.structure.Structure)¶ Display or hide atoms in the st based on stored atoms asl.
ASL acts as display only asl if display_only is set, otherwise acts as hide specified atoms.
:param st : The structure to be updated.
-
applyVisibilityAsl
(st: schrodinger.structure.Structure, asl: str, display_only: bool, visible: bool)¶ Apply visibility asl according to evaluated asl on structure.
Parameters: - st – Structure to be updated.
- asl – ASL to be evaluated for this structure.
- visible – Visibility value of atoms matching the asl.
-
updateVisibility
(st: schrodinger.structure.Structure, st_atom_total: int, at: int, visible: bool)¶ Update atoms visibility in the structure.
Parameters: - st – Structure to be updated.
- st_atom_total – Total atoms in the structure.
- at – Atom number to be updated in the structure.
- visible – Visibility of the atom.
-