3.3.1. broh5.lib.interactions
This module links user interactions to the responses of the Broh5 software.
- class broh5.lib.interactions.GuiInteraction[source]
A subclass of GuiRendering that provides specific functionalities for interacting with the GUI elements in Broh5.
This class handles user actions such as file selection, branch/leaf selection in an HDF tree, image saving, or data display; resets and updates the GUI in response to these interactions.
- current_state
Current state of the GUI: file path, HDF key, slider values, …
- Type:
tuple or None
- columns
Columns for displaying data in a table.
- Type:
list or None
- rows
Rows for displaying data in a table.
- Type:
list or None
- image
Current slice from a 3D dataset.
- Type:
np.ndarray or None
- current_slice
Information about the current slice being displayed.
- Type:
tuple or None
- data_1d_2d
Current 1D or 2D data being displayed.
- Type:
np.ndarray or None
- timer
To update the GUI in regular intervals.
- Type:
UI object
- mouse_handler(MouseEventArguments)[source]
Display the image ROI or intensity profile when clicking on the image.