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

action_prefixes

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)

get_settings()

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

add_cursor(viewer, curname, curpath)[source]
add_mode_obj(mode_obj)[source]
enable(**kwargs)[source]

General enable function encompassing all user interface features. Usage (e.g.): viewer.enable(rotate=False, flip=True)

enable_all(tf)[source]
enable_cmap(tf)[source]

Enable the color map to be warped interactively (True/False).

enable_cuts(tf)[source]

Enable the cuts levels to be set interactively (True/False).

enable_flip(tf)[source]

Enable the image to be flipped interactively (True/False).

enable_pan(tf)[source]

Enable the image to be panned interactively (True/False).

enable_rotate(tf)[source]

Enable the image to be rotated interactively (True/False).

enable_zoom(tf)[source]

Enable the image to be zoomed interactively (True/False).

get_direction(direction, rev=False)[source]

Translate a direction in compass degrees into ‘up’ or ‘down’.

get_feature_allow(feat_name)[source]
get_mode_obj(mode_name)[source]
get_settings()[source]
initialize_settings(settings)[source]
merge_actions(viewer, bindmap, obj, tups)[source]
mode_set_cb(bm, mode, mode_type, viewer)[source]
parse_combo(combo, modes_set, modifiers_set, pfx)[source]

Parse a string into a mode, a set of modifiers and a trigger.

reset(viewer)[source]
set_bindings(viewer)[source]
set_mode(viewer, name, mode_type='oneshot')[source]
setup_settings_events(viewer, bindmap)[source]
window_map(viewer)[source]