populse_mia.user_interface.data_viewer.anatomist_2.mia_anatomist¶
Mia data viewer implementation based on Anatomist
Classes
|
A PyQt-based viewer using PyAnatomist. |
- class populse_mia.user_interface.data_viewer.anatomist_2.mia_anatomist.MiaViewer(init_global_handlers=None)[source]¶
Bases:
DataViewerA PyQt-based viewer using PyAnatomist.
This class implements a DataViewer interface and provides functionality to visualize and interact with medical imaging data through the PyAnatomist visualization library.
- :class:`MIA data viewer
<populse_mia.user_interface.data_viewer.data_viewer.DataViewer>` implementation based on PyAnatomist
Contains:
Methods:
_add_dialog_buttons: Add action buttons to the filter dialog.
_apply_preferences: Apply the settings from the preferences dialog.
_create_preferences_dialog: Create the preferences dialog.
_process_selected_documents: Process user’s document selection.
_setup_search_interface: Set up the search bar and related UI elements.
_setup_ui: Set up the user interface components and connect signals.
close: Exit
display_files: Load objects in files and display.
displayed_files: Get the list of displayed files.
filter_documents: Filter documents already loaded in the Databrowser.
preferences: Preferences for the dataviewer.
remove_files: Delete the given objects given by their file names.
reset_search_bar: Reset the rapid search bar.
screenshot: The screenshot of mia_anatomist_2.
search_str: Update the Not Defined” values in visualised documents.
set_documents: Initialise current documents in the viewer.
- _mia_viewers_count = 0¶
- __init__(init_global_handlers=None)[source]¶
Initialize the Mia viewer widget.
- Parameters:
init_global_handlers – Handlers to initialize the PyAnatomist viewer.
- _add_dialog_buttons(dialog, layout)[source]¶
Add action buttons to the filter dialog.
- Parameters:
dialog – Parent dialog.
layout – Layout to add buttons to.
- _apply_preferences(dialog)[source]¶
Apply the settings from the preferences dialog.
- Parameters:
dialog – Preferences dialog containing the user selections.
- _create_preferences_dialog(current_framerate, current_config, current_ref)[source]¶
Create the preferences dialog with all settings controls.
- Parameters:
current_framerate – Current animation frame rate.
current_config – Current display configuration (neuro/radio).
current_ref – Current referential setting.
- Returns:
(QDialog) Configured preferences dialog.
- _process_selected_documents()[source]¶
Process user’s document selection and display the selected files.
- _setup_search_interface(dialog, layout)[source]¶
Set up the search bar and related UI elements.
- Parameters:
dialog – Parent dialog for the search interface.
layout – Layout to add search components to.
- close()[source]¶
Close the viewer and properly clean up PyAnatomist resources.
If this is the last Mia viewer instance, closes PyAnatomist entirely.
- display_files(files)[source]¶
Load and display the specified files in the viewer.
- Parameters:
files – (list) List of file paths to display.
- displayed_files()[source]¶
Get the list of currently displayed files.
:Returns (list) File paths currently displayed in the viewer.
- filter_documents()[source]¶
Open a dialog to filter and select documents to display.
Allows searching and filtering documents loaded in the Databrowser and importing selected ones into the viewer.
- preferences()[source]¶
Open the preferences dialog to configure viewer settings.
Allows configuring display mode (Neuro/Radio), animation speed, and coordinate system referential.
- remove_files(files)[source]¶
Remove specified files from the viewer.
- Parameters:
files – (list) List of file paths to remove from display.
- screenshot()[source]¶
Take a screenshot of the current viewer state.
Currently displays a “Not yet implemented” message.