ImageAnnotationToolAction

class ImageAnnotationToolAction(*values)[source]

Bases: StrEnum

Action to set the figure as the current figure (selected figure) in the annotation tool.

Methods

has_value

Check if a value is in the enum.

values

Get all values of the enum.

Attributes

SET_FIGURE

NEXT_IMAGE

PREV_IMAGE

SET_IMAGE

ZOOM_TO_FIGURE

SHOW_SUCCESS_NOTIFICATION

SHOW_WARNING_NOTIFICATION

SHOW_ERROR_NOTIFICATION

classmethod has_value(value)

Check if a value is in the enum.

Parameters:
value : str

Value to check.

Returns:

True if value is in the enum, False otherwise.

Return type:

bool

classmethod values()

Get all values of the enum.

NEXT_IMAGE = 'images/nextImage'
PREV_IMAGE = 'images/prevImage'
SET_FIGURE = 'figures/setFigure'
SET_IMAGE = 'images/setImage'
SHOW_ERROR_NOTIFICATION = 'app/showErrorNotification'
SHOW_SUCCESS_NOTIFICATION = 'app/showSuccessNotification'
SHOW_WARNING_NOTIFICATION = 'app/showWarningNotification'
ZOOM_TO_FIGURE = 'scene/zoomToObject'