8.5.5.1.1. pymodaq_gui.plotting.data_viewers.base module
- class pymodaq_gui.plotting.data_viewers.base.ViewerBase(parent: QWidget = None, title='')[source]
Bases:
QObjectBase Class for data viewers implementing all common functionalities
- Parameters:
parent (QtWidgets.QWidget)
title (str)
- view
Ui interface of the viewer
- Type:
QObject
- data_to_export_signal
- Type:
Signal[DataToExport]
- ROI_changed
- Type:
Signal
- Attributes:
get_actionConvenience method
has_actionConvenience method
is_action_checkedConvenience method
is_action_visibleConvenience method
roi_targetTo be implemented if necessary (Viewer1D and above)
set_action_checkedConvenience method
set_action_visibleConvenience method
toolbarConvenience property
viewer_typestr: the viewer data type see DATA_TYPES
Methods
activate_roi([activate])Activate the Roi manager using the corresponding action
Convenience function to add attributes from the view to self
move_roi_target([pos])move a specific read only ROI at the given position on the viewer
setVisible([show])convenience method to show or hide the parent widget
show_data(data, **kwargs)Entrypoint to display data into the viewer
show_data_temp(data, **kwargs)Entrypoint to display temporary data into the viewer
show_roi_target([show])Show/Hide a specific read only ROI
trigger_action(action_name)Convenience function to trigger programmatically one of the action of the related view
ROI_changed
ROI_select_signal
crosshair_clicked
crosshair_dragged
data_to_export_signal
roi_select_signal
sig_double_clicked
status_signal
- move_roi_target(pos: Iterable[float] = None, **kwargs)[source]
move a specific read only ROI at the given position on the viewer
- show_data(data: DataWithAxes, **kwargs)[source]
Entrypoint to display data into the viewer
- Parameters:
data (data_mod.DataFromPlugins)
- show_data_temp(data: DataWithAxes, **kwargs)[source]
Entrypoint to display temporary data into the viewer
No processed data signal is emitted from the viewer
- Parameters:
data (data_mod.DataFromPlugins)
- trigger_action(action_name: str)[source]
Convenience function to trigger programmatically one of the action of the related view
- ROI_changed
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
- ROI_select_signal
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
- crosshair_clicked
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
- crosshair_dragged
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
- data_to_export_signal
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 get_action
Convenience method
- property has_action
Convenience method
- property is_action_checked
Convenience method
- property is_action_visible
Convenience method
- roi_select_signal
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 roi_target: InfiniteLine | ROI
To be implemented if necessary (Viewer1D and above)
- property set_action_checked
Convenience method
- property set_action_visible
Convenience method
- sig_double_clicked
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
- status_signal
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 toolbar
Convenience property
- class pymodaq_gui.plotting.data_viewers.base.ViewersEnum(*values)[source]
Bases:
BaseEnumenum relating a given viewer with data type
- static get_viewers_enum_from_data(dwa: DataWithAxes) ViewersEnum[source]
- static get_viewers_enum_from_metadata(dim: DataDim, distribution: DataDistribution, n_nav_axes: int, n_sig_indexes: int, shape_len: int, size: int) ViewersEnum[source]
- Viewer0D = 'Data0D'
- Viewer1D = 'Data1D'
- Viewer2D = 'Data2D'
- ViewerND = 'DataND'
- ViewerSequential = 'DataSequential'