pycat.central_manager#

Central Manager Module for PyCAT

This module defines the CentralManager class, which acts as the central coordinating class for PyCAT. The CentralManager integrates various components such as file input/output, data management, and user interface elements. It initializes and manages interactions between different parts of the application, including UI components for basic functions, analysis methods, and a menu manager, facilitating a cohesive user experience.

It could also be used to relay changes in the program if an observer pattern is implemented in the future.

Author#

Christian Neureuter, GitHub: cneureuter

Date#

4-20-2024

class CentralManager(viewer)[source]#

Bases: object

Acts as the central coordinating class for PyCAT, integrating various components such as file input/output, data management, and user interface elements within a napari viewer context.

The CentralManager initializes and manages interactions between different parts of the application, including UI components for basic functions, analysis methods, and a menu manager, facilitating a cohesive user experience.

viewer#

The napari viewer instance used for visualizing images and annotations.

Type:

napari.Viewer

file_io#

An instance of FileIOClass responsible for handling file input and output operations.

Type:

FileIOClass

active_data_class#

The current data class instance that holds and manages the application’s data.

Type:

BaseDataClass

toolbox_functions_ui#

UI component for basic application functionalities.

Type:

ToolboxFunctionsUI

analysis_methods_ui#

UI component for executing specific analysis methods.

Type:

AnalysisMethodsUI

menu_manager#

Manages the application’s menu system within the napari viewer.

Type:

MenuManager

__init__(viewer)[source]#

Initializes the CentralManager with a napari viewer instance and sets up the application’s file IO, data management, and UI components.

Parameters:

viewer (napari.Viewer) – The napari viewer instance to be used by the application.

set_active_data_class(data_class)[source]#

Sets the active data class instance, allowing for dynamic changes in data management strategies or structures during the application’s runtime.

Parameters:

data_class (BaseDataClass or derived class instance) – An instance of BaseDataClass or a subclass thereof to be used as the new active data class.