hyperspyui._tools.linetool module

Created on Thu Jul 30 11:42:05 2015

@author: Vidar Tonaas Fauske

class hyperspyui._tools.linetool.LineTool(windows=None)

Bases: SignalFigureTool

Tool to select a ROI on a signal interactively. Simply click and drag in a figure to create an ROI, and then 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.

_on_change(widget)
accept()
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()
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_name()
in_ax(ax)
is_on()
is_selectable()
make_cursor()

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

property ndim
on_keyup(event)
on_mousedown(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

property widget