MarkerSelectionFull

Module for MarkerSelectionFull

../../../_images/marker_selection_full.png
class pcdswidgets.imaging.common.marker_selection_full.MarkerSelectionFull(*args, **kwargs)[source]

Interactive marker overlay widget for EPICS area-detector cameras.

Provides click-to-place, visibility toggle, and style/thickness controls for up to 4 point-of-interest markers overlaid on a PyDMImageView.

Positions are synced to EPICS via PyDMSpinboxes.

after_set_macro(macro_name, value)[source]

Hook for additional actions to take when a macro is set.

This exists so you can extend this behavior without overriding set_macro, which could otherwise make it easy to break the widget.

So, you override after_set_macro instead and define what you’d like to change after specific values are updated.

Note that this runs after all built-in effects of set_macro.

get_all_marker_states() → dict[source]

Return every marker’s state, keyed by marker number as a string, for persistence.

get_marker_state(marker_number: int) → dict[source]

Return marker_number’s (1-4) full visual state, for persistence.

get_view_saver_properties() → dict[source]

Resolved ViewSaver getter/setter pairs for this widget’s saved state.

getter returns a QSettings-storable value setter accepts and applies raw stored value

Connect this marker widget to a parent’s PyDMImageView.

Called by the parent widget at adoption time. Attaches marker overlay items to the ViewBox, and - if the parent also carries a secondary_image_view - mirrors the same markers onto it too, click-to-place included, offset live via secondary_roi_plugin (see _link_secondary_view).

set_all_marker_states(states: dict) → None[source]

Apply states produced by get_all_marker_states().

set_marker_state(marker_number: int, state: dict) → None[source]

Apply a previously-saved marker_state to marker_number (1-4).