navigate.controller.sub_controllers.features_popup.FeatureListGraphController
- class navigate.controller.sub_controllers.features_popup.FeatureListGraphController(feature_list_view, feature_content_view, preview_btn, palette_items=None, board_canvas=None, board_window=None, marker=None, child_popups=None, configuration_controller=None)
Bases:
object- __init__(feature_list_view, feature_content_view, preview_btn, palette_items=None, board_canvas=None, board_window=None, marker=None, child_popups=None, configuration_controller=None)
Initialize feature list window
- Parameters:
feature_list_view (frame) – feature list graph view
feature_content_view (text) – feature list content
preview_btn (button) – preview button
child_popups (list) – list of child config popup windows
Methods
__init__(feature_list_view, ...[, ...])Initialize feature list window
apply_dynamic_parameter_choices(args_name, ...)Add runtime microscope and zoom choices to feature parameter specs.
Return displayed action labels mapped to internal action values.
Return displayed autofocus calibration action labels.
Return the display label for an internal autofocus action value.
Link runtime microscope comboboxes to their dependent zoom comboboxes.
board_point(event)Return the mouse position in the horizontally scrolling board.
branch_palette_drag_motion(event)Show an insertion marker on the branch board below the pointer.
Build the feature list text
Calculate the height of the arrow image
Return channel keys from GUI channel count.
clean_feature_description(description, ...)Remove boilerplate prefixes from a feature description.
Clear the selected feature nodes.
default_microscope_choice(choices)Return the active microscope or first configured microscope.
drag_motion(event)draw_feature_list_graph([new_list_flag])Draw the feature list graph
finish_branch_palette_drag(event, name, on_click)Insert a palette feature into the branch receiving the drop.
finish_drag(event)flatten_feature_list(feature_list)Flatten the feature list
Get feature list content
get_feature_description(feature_class)Return a concise user-facing description for a feature class.
get_feature_parameter_schema(feature_class)Return schema metadata for a feature constructor.
get_feature_parameter_values(feature_class)Return constructor parameter names, values, and merged specs.
get_group_bounds(feature_index)Return the innermost parenthesis pair enclosing a feature index.
handle_chip_press(event, chip)index_at(x, y)insert_feature(index, feature_name)Insert a palette feature at its displayed position.
is_valid_grouping(start_index, end_index)Return whether a new group can be inserted without overlap.
layout_chips()Return microscope names from the loaded configuration.
Return currently loaded experiment MicroscopeState values.
move_branch_drag_window(root_x, root_y)Move the configuration-palette drag preview.
move_drag_window(root_x, root_y)move_feature(old_index, new_index)Move a feature and its structure entry to the drop position.
Return optional channel display labels mapped to saved values.
Return optional channel choices with a displayed None entry.
Render selected feature nodes using the ttk pressed state.
refresh_linked_zoom_choices(popup, ...[, ...])Refresh a zoom combobox after its microscope selection changes.
show_config_popup(idx)Show the feature configuration popup
show_marker(index)show_menu(idx[, flag])Show the popup menu
split_feature_name(feature_name)Convert a CamelCase feature class name to readable words.
Return all stage axes configured by any loaded microscope.
stage_axis_offset_spec(axis)Return a float setting spec for one stage-axis offset.
stage_axis_offset_values(value, item_schema)Return axis-keyed offset values from saved mapping or sequence input.
start_branch_palette_drag(event, name, ...)Start dragging a configuration-palette item to a branch board.
start_drag(event, name[, chip])start_palette_drag(event, name)toggle_selection(chip)Toggle a feature node in the current Shift-click selection.
update(feature_list_content)Update feature list window
Update feature content
zoom_choices(microscope_name)Return zoom names for one configured microscope.
Attributes
AUTOFOCUS_CALIBRATION_ACTION_DYNAMIC_SOURCECHANNEL_DYNAMIC_SOURCECHIP_GAPMICROSCOPE_DYNAMIC_SOURCEMICROSCOPE_STATE_DYNAMIC_SOURCESTAGE_AXIS_DYNAMIC_SOURCEZOOM_DYNAMIC_SOURCEThe list of feature names.
- apply_dynamic_parameter_choices(args_name, args_value, parameter_specs, feature=None)
Add runtime microscope and zoom choices to feature parameter specs.
- static autofocus_calibration_action_choice_values()
Return displayed action labels mapped to internal action values.
- static autofocus_calibration_action_choices()
Return displayed autofocus calibration action labels.
- static autofocus_calibration_action_display_value(action_value)
Return the display label for an internal autofocus action value.
- bind_dynamic_parameter_choices(popup)
Link runtime microscope comboboxes to their dependent zoom comboboxes.
- board_point(event)
Return the mouse position in the horizontally scrolling board.
- branch_palette_drag_motion(event)
Show an insertion marker on the branch board below the pointer.
- build_feature_list_text()
Build the feature list text
- Returns:
content – The feature list text
- Return type:
str
- calculate_arrow_image_height()
Calculate the height of the arrow image
- Returns:
image_height – The height of the arrow image
- Return type:
int
- channel_choices()
Return channel keys from GUI channel count.
- static clean_feature_description(description, feature_name)
Remove boilerplate prefixes from a feature description.
- clear_selection()
Clear the selected feature nodes.
- default_microscope_choice(choices)
Return the active microscope or first configured microscope.
- draw_feature_list_graph(new_list_flag=True)
Draw the feature list graph
- Parameters:
new_list_flag (bool, optional) – Whether the feature list is new, by default True
- finish_branch_palette_drag(event, name, on_click)
Insert a palette feature into the branch receiving the drop.
- flatten_feature_list(feature_list)
Flatten the feature list
- Parameters:
feature_list (list) – The feature list
- get_feature_content()
Get feature list content
- Returns:
content – feature list content
- Return type:
str
- static get_feature_description(feature_class)
Return a concise user-facing description for a feature class.
- static get_feature_parameter_schema(feature_class)
Return schema metadata for a feature constructor.
- get_feature_parameter_values(feature_class, feature=None)
Return constructor parameter names, values, and merged specs.
- get_group_bounds(feature_index)
Return the innermost parenthesis pair enclosing a feature index.
- insert_feature(index, feature_name)
Insert a palette feature at its displayed position.
- Parameters:
index (int) – The index of the feature.
feature_name (str) – The name of the feature to insert.
- is_valid_grouping(start_index, end_index)
Return whether a new group can be inserted without overlap.
- microscope_choices()
Return microscope names from the loaded configuration.
- microscope_state_values()
Return currently loaded experiment MicroscopeState values.
- move_branch_drag_window(root_x, root_y)
Move the configuration-palette drag preview.
- move_feature(old_index, new_index)
Move a feature and its structure entry to the drop position.
- optional_channel_choice_values()
Return optional channel display labels mapped to saved values.
- optional_channel_choices()
Return optional channel choices with a displayed None entry.
- refresh_chip_styles()
Render selected feature nodes using the ttk pressed state.
- refresh_linked_zoom_choices(popup, zoom_parameter_name, microscope_parameter_name, reset_invalid=True)
Refresh a zoom combobox after its microscope selection changes.
- show_config_popup(idx)
Show the feature configuration popup
- Parameters:
idx (int) – The index of the feature
- Returns:
func – The function to show the feature configuration popup
- Return type:
function
- show_menu(idx, flag=True)
Show the popup menu
- Parameters:
idx (int) – The index of the feature
flag (bool, optional) – Whether the feature is a decision node, by default True
- Returns:
func – The function to show the popup menu
- Return type:
function
- static split_feature_name(feature_name)
Convert a CamelCase feature class name to readable words.
- stage_axis_choices()
Return all stage axes configured by any loaded microscope.
- static stage_axis_offset_spec(axis)
Return a float setting spec for one stage-axis offset.
- static stage_axis_offset_values(value, item_schema)
Return axis-keyed offset values from saved mapping or sequence input.
- start_branch_palette_drag(event, name, branch_controllers)
Start dragging a configuration-palette item to a branch board.
- toggle_selection(chip)
Toggle a feature node in the current Shift-click selection.
- update(feature_list_content)
Update feature list window
- Parameters:
feature_list_content (list) – The feature list
- update_feature_content()
Update feature content
- zoom_choices(microscope_name)
Return zoom names for one configured microscope.
- feature_names
The list of feature names.
- Type:
list