DataViewer

class glue.viewers.common.qt.data_viewer.DataViewer(*args, **kwargs)[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

inherit_tools

large_data_size

selected_layer

subtools

tools

Methods Summary

addToolBar(self, Qt.ToolBarArea, QToolBar)

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

add_data(data)

add_subset(subset)

apply_roi(roi)

closeEvent(event)

Call unregister on window close

hide_toolbars()

Disable all the toolbars in the viewer.

initialize_toolbar()

layer_view()

set_focus(state)

show_toolbars()

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

update_viewer_state(context)

warn(message, *args, **kwargs)

Attributes Documentation

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

Methods Documentation

addToolBar(self, Qt.ToolBarArea, QToolBar)[source]

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

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

Call unregister on window close

hide_toolbars()[source]

Disable all the toolbars in the viewer.

This action can be reversed by calling show_toolbars()

initialize_toolbar()[source]
layer_view()[source]
set_focus(state)[source]
show_toolbars()[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(context)[source]
warn(message, *args, **kwargs)[source]