navigate.view.main_window_content.display_notebook.IntensityFrame
- class navigate.view.main_window_content.display_notebook.IntensityFrame(camera_tab: CameraTab, *args: Iterable, **kwargs: Dict[str, Any])
Bases:
Labelframe,CommonMethodsThis class is the frame that holds the intensity controls.
- __init__(camera_tab: CameraTab, *args: Iterable, **kwargs: Dict[str, Any]) → None
Initialize the IntensityFrame class.
- Parameters:
camera_tab (CameraTab) – The frame that will hold the intensity controls.
*args (tuple) – Variable length argument list.
**kwargs (dict) – Arbitrary keyword arguments.
Methods
__init__(camera_tab, *args, **kwargs)Initialize the IntensityFrame class.
configure_multichannel_controls(channels, ...)Configure compact per-channel controls for multichannel display.
Get the buttons of the popup
Return the currently selected channel in compact multichannel controls.
get_multichannel_channel_state(channel)Return current settings for one channel.
Return channel-mapped compact control state.
This function returns a dictionary of all the variables that are tied to each widget name.
This function returns the dictionary that holds the widgets.
Configure channel selector behavior for single vs overlay display mode.
set_multichannel_channel_state(channel, state)Populate controls for one channel from cached state.
set_multichannel_controls_visible(visible)Toggle between single-channel and multichannel control groups.
Attributes
- configure_multichannel_controls(channels: Iterable[str], default_luts: Iterable[str], on_change: Optional[Callable[[str, str], None]] = None) → None
Configure compact per-channel controls for multichannel display.
- get_buttons() → Dict[str, Button]
Get the buttons of the popup
This function returns the dictionary that holds the buttons. The key is the button name, value is the button.
- Returns:
buttons – Dictionary of all the buttons
- Return type:
Dict[str, ttk.Button]
- get_multichannel_active_channel() → str
Return the currently selected channel in compact multichannel controls.
- get_multichannel_channel_state(channel: str) → Dict[str, Any]
Return current settings for one channel.
- get_multichannel_widgets() → Dict[str, Dict[str, Any]]
Return channel-mapped compact control state.
- get_variables() → Dict[str, Any]
This function returns a dictionary of all the variables that are tied to each widget name.
The key is the widget name, value is the variable associated.
- Returns:
variables – The dictionary that holds the variables.
- Return type:
dict
- get_widgets() → Dict[str, Any]
This function returns the dictionary that holds the widgets.
The key is the widget name, value is the LabelInput class that has all the data.
- Returns:
widgets – The dictionary that holds the widgets.
- Return type:
dict
- set_multichannel_channel_selector_mode(overlay_mode: bool, channels: Optional[Iterable[str]] = None) → None
Configure channel selector behavior for single vs overlay display mode.
- Parameters:
overlay_mode (bool) – When True, the selector is enabled and channel names are listed. When False, the selector is disabled and set to
"All".channels (Optional[Iterable[str]]) – Optional explicit channel list. If None, uses the currently cached list.
- set_multichannel_channel_state(channel: str, state: Dict[str, Any]) → None
Populate controls for one channel from cached state.
- set_multichannel_controls_visible(visible: bool) → None
Toggle between single-channel and multichannel control groups.
- auto
The name of the autoscale flag.
- Type:
str
- autoscale
The variable that holds the autoscale flag.
- Type:
tk.BooleanVar
- color_labels
The list of LUTs for the image display.
- Type:
list
- color_values
The list of maplotlib LUT names.
- Type:
list
- inputs: Dict[str, Any]
The dictionary that holds the single-channel widgets.
- Type:
dict
- minmax
The list of min and max counts.
- Type:
list
- minmax_names
The list of min and max names.
- Type:
list
- property multichannel_color_labels
Standard ImageJ-like colors for multichannel overlays.