ImageWidgetBase

class glue.viewers.image.qt.viewer_widget.ImageWidgetBase(session, parent=None)[source]

Bases: glue.viewers.common.qt.data_viewer.DataViewer

Widget for ImageClient

This base class avoids any matplotlib-specific logic

Attributes Summary

LABEL
aspect_ratio Aspect ratio for image
attribute Current attribute
batt ComponentID assigned to B channel in RGB Mode
data Current data
gatt ComponentID assigned to G channel in RGB Mode
ratt ComponentID assigned to R channel in RGB Mode
rgb_mode RGB Mode?
rgb_viz
slice
window_title

Methods Summary

add_data(*args, **kwargs) Add a new dataset to the viewer
add_data_to_combo(data) Add a data object to the combo box, if not already present
add_subset(*args, **kwargs)
closeEvent(event)
make_central_widget() Create and return the central widget to display the image
make_client() Instantiate and return an ImageClient subclass
make_toolbar() Create and return the toolbar for this widget
options_widget()
register_to_hub(hub)
remove_data_from_combo(data) Remove a data object from the combo box, if present
restore_layers(*args, **kwargs)
set_attribute_combo(data) Update attribute combo box to reflect components in data
unregister(hub)

Attributes Documentation

LABEL = 'Image Viewer'
aspect_ratio

Aspect ratio for image

attribute

Current attribute

batt

ComponentID assigned to B channel in RGB Mode

data

Current data

gatt

ComponentID assigned to G channel in RGB Mode

ratt

ComponentID assigned to R channel in RGB Mode

rgb_mode

RGB Mode?

rgb_viz = None
slice
window_title

Methods Documentation

add_data(*args, **kwargs)[source]

Add a new dataset to the viewer

add_data_to_combo(data)[source]

Add a data object to the combo box, if not already present

add_subset(*args, **kwargs)[source]
closeEvent(event)[source]
make_central_widget()[source]

Create and return the central widget to display the image

make_client()[source]

Instantiate and return an ImageClient subclass

make_toolbar()[source]

Create and return the toolbar for this widget

options_widget()[source]
register_to_hub(hub)[source]
remove_data_from_combo(data)[source]

Remove a data object from the combo box, if present

restore_layers(*args, **kwargs)[source]
set_attribute_combo(data)[source]

Update attribute combo box to reflect components in data

unregister(hub)[source]