hyperspyui._tools.multiselectiontool module

Created on Mon Aug 03 19:43:52 2015

@author: Vidar Tonaas Fauske

class hyperspyui._tools.multiselectiontool.MultiSelectionTool(windows=None)

Bases: SignalFigureTool

Tool to select multiple ROIs on a signal interactively. Simply click and drag in a figure to create an ROI. This can be done multiple times. Right- click the ROI to remove it. Press enter to indicate that the selection is complete, or ESC to cancel. The selection can also be aborted by simply selecting a different tool.

_add_widget(signal)
_cancel(signal)
_default_validator(signal, axes)
_get_rois(signal)
_on_change(widget, signal=None)
_remove_widget(widget, signal=None)
accept(signal)
accepted

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

cancel(signal=None)
cancelled

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

disconnect_windows(windows)
get_category()
get_icon()
get_name()
have_selection(signal)
is_selectable()
make_cursor()

Initialize the cursor for this instance. Is called in constructor.

ndim(signal)
on_keyup(event)
on_mousedown(event)
on_mouseup(event)
updated

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision