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.Structure, varying_atoms_frame: bool)¶
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.
- Parameters
varying_atoms_frame – True if method is called for varying atoms frame.
:param st : The structure to be updated.
- applyVisibilityAsl(st: schrodinger.structure._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.
- setDisplayAtomsASL()¶
Set matching atoms asl. This ASL acts as display only asl if Display Only turned on. Otherwise acts as hide specified atoms.
- shouldUpdateVisibility(varying_atoms_frame: bool)¶
Check if visibility should be updated or not. Applicable in both restoring original visibility and apply asl based visibility.
- Parameters
varying_atoms_frame – True if method is called for varying atoms frame.
- Return type
bool
- Returns
True if visibility should be updated.
- shouldRestoreVisibility(varying_atoms_frame: bool)¶
Determine if frame visibility should be restored or not.
- Parameters
varying_atoms_frame – True if method is called for varying atoms frame.
- Return type
bool
- Returns
True if visibility should be restored.
- needVisibilityUpdate(varying_atoms_frame: bool)¶
Determine if frame visibility should be updated or not.
- Parameters
varying_atoms_frame – True if method is called for varying atoms frame.
- Return type
bool
- Returns
True if visibility should be updated.
- restoreDefaultVisibility(ref_st: schrodinger.structure._structure.Structure, frame_st: schrodinger.structure._structure.Structure)¶
Set ref_st atoms visibility in the frame_st.
- Parameters
ref_st – Reference structure to be used to update frame structure.
frame_st – Frame structure to be updated.