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
(data)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
(subset)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
(rec, context)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
-