session: Hydra session

class Session

A session holds the list of open models, camera, graphics window, scenes, ... all the state. The main purpose is to bring together all of objects defining the 3d world.

application = None

Qt application object, a QApplication.

at_quit(callback)

Register a callback to run just before the program exits, for example to write a history file.

bin_dir = None

Location of third party executables used by Hydra.

bond_templates = None

Templates for creating bonds for standard residues, a Bond_Templates

commands = None

Available commands, a Commands

databases = None

For fetching pdb and map models from the web, used by register_fetch_database()

file_history = None

Recently opened files, a files.history.File_History

file_readers = None

Table of file types that can be read, used by file_readers()

fit_list = None

Dialog listing map fits, a Fit_List

keyboard_shortcuts = None

Available keyboard shortcuts, a Keyboard_Shortcuts

last_session_path = None

File path for last opened session.

log = None

Command, error, info log, Log

main_window = None

Main user interface window, a

oculus = None

Oculus Rift head tracking device handler, a Oculus_Head_Tracking

scenes = None

Saved scenes, a Scenes

show_info(msg, color=None)

Write information such as command output to the log window.

show_status(msg, append=False)

Show a status message at the bottom of the main window.

show_warning(msg)

Write warning such as command output to the log window.

space_navigator = None

Space Navigator device handler, a Space_Navigator

view = None

Main window view, a View

volume_defaults = None

Default volume model display settings, a Volume_Default_Settings

class Model(name)

A model is an object with an id number that can be specified in commands.

class Models

Manage the list of models.

add_model(model, callbacks=True)

Add a model to the scene. A model is a Drawing object.

add_models(models)

Add a list of models to the scene.

all_atoms()

Return an atom set containing all atoms of all open molecules.

close_all_models()

Remove all models from the scene.

close_models(models)

Remove a list of models from the scene.

maps()

Return a list of the Volume models in the scene.

model_count()

Number of open models.

model_list()

List of open models.

molecules()

Return a list of the Molecule models in the scene.

surfaces()

Return a list of the Drawings in the scene which are not Molecules.

Previous topic

molecule: Atomic molecular models

Next topic

surface: Surfaces

This Page