DataViewer

class glue.viewers.common.qt.data_viewer.DataViewer(session, state=None, parent=None)[source]

Bases: glue.viewers.common.viewer.Viewer, glue.viewers.common.qt.base_widget.BaseQtViewerWidget

Base class for all Qt DataViewer widgets.

This defines a minimal interface, and implements the following:

* An automatic call to unregister on window close
* Drag and drop support for adding data

Attributes Summary

large_data_size

selected_layer

subtools

tools

Methods Summary

addToolBar(self, tb)

addToolBar(self, QToolBar) addToolBar(self, str) -> QToolBar

add_data(self, data)

add_subset(self, subset)

apply_roi(self, roi)

closeEvent(self, event)

Call unregister on window close

hide_toolbars(self)

Disable all the toolbars in the viewer.

initialize_toolbar(self)

layer_view(self)

set_focus(self, state)

show_toolbars(self)

Re-enable any toolbars that were hidden with hide_toolbars()

update_viewer_state(rec, context)

warn(self, message, \*args, \*\*kwargs)

Attributes Documentation

large_data_size = None
selected_layer
subtools = {'save': []}
tools = ['save']

Methods Documentation

addToolBar(self, tb)[source]

addToolBar(self, QToolBar) addToolBar(self, str) -> QToolBar

add_data(self, data)[source]
add_subset(self, subset)[source]
apply_roi(self, roi)[source]
closeEvent(self, event)[source]

Call unregister on window close

hide_toolbars(self)[source]

Disable all the toolbars in the viewer.

This action can be reversed by calling show_toolbars()

initialize_toolbar(self)[source]
layer_view(self)[source]
set_focus(self, state)[source]
show_toolbars(self)[source]

Re-enable any toolbars that were hidden with hide_toolbars()

Does not re-enable toolbars that were hidden by other means

update_viewer_state(rec, context)[source]
warn(self, message, *args, **kwargs)[source]