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.
A
DataViewerimplementation 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 (bool) – Determines if global handlers should be initialized.
- _apply_preferences(dialog)[source]¶
Apply the settings from the preferences dialog.
- Parameters:
dialog (QDialog) – Preferences dialog containing the user selections.
- _create_preferences_dialog(current_framerate, current_config, current_ref)[source]¶
Create the preferences dialog with all settings controls.
- _process_selected_documents()[source]¶
Process user’s document selection and display the selected files.
- 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.
- 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.
- screenshot()[source]¶
Take a screenshot of the current viewer state.
Currently displays a “Not yet implemented” message.
- search_str(search_term)[source]¶
Search for documents matching the given term and update the view.
Handles special case for NOT_DEFINED_VALUE as well as normal text search. Updates the table to show only matching documents.
- Parameters:
search_term (str) – Text to search for in documents.
- set_documents(project, documents)[source]¶
Initialize the viewer with a set of documents from a project.
- Parameters:
project (populse_mia.data_manager.project.Project) – Project containing the documents.
documents (list[str]) – List of document filenames to make available.