navigate.controller.sub_controllers.camera_settings.AdvancedCameraSettingController
- class navigate.controller.sub_controllers.camera_settings.AdvancedCameraSettingController(popup: AdvancedCameraSettingPopup, parent_controller: Controller, *args, **kwargs)
Bases:
objectController for the Advanced Camera Settings popup.
- __init__(popup: AdvancedCameraSettingPopup, parent_controller: Controller, *args, **kwargs) → None
Initialize the AdvancedCameraSettingController class.
- Parameters:
popup (AdvancedCameraSettingPopup) – The popup window for advanced camera settings
parent_controller (Controller) – The parent controller that manages this popup
*args – Variable length argument list
**kwargs – Arbitrary keyword arguments
Methods
__init__(popup, parent_controller, *args, ...)Initialize the AdvancedCameraSettingController class.
Close the popup window.
flip_axis(axis)Flip the camera axis in the configuration.
Refresh the camera cooling temperature display.
Save the current camera settings to the configuration file.
set_cooling_state(*args)Set the cooling state based on the dropdown selection.
showup()This function will let the popup window show in front.
update_microscope(*args[, in_initialization])Update the microscope configuration when the microscope is changed.
update_temperature(temperature)Update the temperature display in the popup.
Attributes
Popup window for the camera settings.
Controller for the local configuration.
The current microscope name.
Camera configuration dictionary for the current microscope.
Event for refreshing temperature button.
- close_popup() → None
Close the popup window.
- flip_axis(axis: str) → None
Flip the camera axis in the configuration.
- Parameters:
axis (str) – The axis to flip, e.g., ‘x’ or ‘y’.
- refresh_temperature() → None
Refresh the camera cooling temperature display.
- save_camera_settings() → None
Save the current camera settings to the configuration file.
- set_cooling_state(*args) → None
Set the cooling state based on the dropdown selection.
- showup()
This function will let the popup window show in front.
- update_microscope(*args, in_initialization: Optional[bool] = False) → None
Update the microscope configuration when the microscope is changed.
- Parameters:
in_initialization (bool, optional) – If True, this method is called during initialization and does not save the previous camera settings.
- update_temperature(temperature: float) → None
Update the temperature display in the popup.
- Parameters:
temperature (float) – The current camera temperature.
- camera_dict
Camera configuration dictionary for the current microscope.
- Type:
dict
- current_microscope
The current microscope name.
- Type:
str
- local_config_controller
Controller for the local configuration.
- Type:
- refresh_temperature_event
Event for refreshing temperature button.
- Type:
event