ImageViewBindings
- class ginga.Bindings.ImageViewBindings(logger, settings=None)[source]
Bases:
object
Configurable event handling (bindings) for UI events.
This module handles the mapping of user interface events (keyboard, mouse, trackpad, gestures) to operations on a Ginga viewer.
Attributes Summary
Methods Summary
add_cursor
(viewer, curname, curpath)add_mode_obj
(mode_obj)enable
(**kwargs)General enable function encompassing all user interface features.
enable_all
(tf)enable_cmap
(tf)Enable the color map to be warped interactively (True/False).
enable_cuts
(tf)Enable the cuts levels to be set interactively (True/False).
enable_flip
(tf)Enable the image to be flipped interactively (True/False).
enable_pan
(tf)Enable the image to be panned interactively (True/False).
enable_rotate
(tf)Enable the image to be rotated interactively (True/False).
enable_zoom
(tf)Enable the image to be zoomed interactively (True/False).
get_direction
(direction[, rev])Translate a direction in compass degrees into 'up' or 'down'.
get_feature_allow
(feat_name)get_mode_obj
(mode_name)initialize_settings
(settings)merge_actions
(viewer, bindmap, obj, tups)mode_set_cb
(bm, mode, mode_type, viewer)parse_combo
(combo, modes_set, modifiers_set, pfx)Parse a string into a mode, a set of modifiers and a trigger.
reset
(viewer)set_bindings
(viewer)set_mode
(viewer, name[, mode_type])setup_settings_events
(viewer, bindmap)window_map
(viewer)Attributes Documentation
- action_prefixes = ['kp_', 'ms_', 'sc_', 'pi_', 'pa_']
Methods Documentation
- enable(**kwargs)[source]
General enable function encompassing all user interface features. Usage (e.g.): viewer.enable(rotate=False, flip=True)
- get_direction(direction, rev=False)[source]
Translate a direction in compass degrees into ‘up’ or ‘down’.