Viewer Inputs and Outputs

class pumpia.module_handling.fields.viewer_fields.BaseViewerField(row: int, column: int, *, allow_drag_drop: bool = True, allow_drawing_rois: bool = True, allow_changing_rois: bool = True, validation_command: Callable[[BaseImageSet], bool] | None = None, main: bool = False)

Base class for viewer field handling.

Parameters:
  • row (int) – The row position of the viewer.

  • column (int) – The column position of the viewer.

  • allow_drag_drop (bool, optional) – Whether to allow drag and drop (default is True).

  • allow_drawing_rois (bool, optional) – Whether to allow drawing ROIs (default is True).

  • validation_command (Callable[[BaseImageSet], bool], optional) – The validation command (default is None).

  • main (bool, optional) – Whether the viewer is the main viewer of the module/collection (default is False).

row
Type:

int

column
Type:

int

allow_drag_drop
Type:

bool

allow_drawing_rois
Type:

bool

validation_command
Type:

Callable[[BaseImageSet], bool] | None

main
Type:

bool

class pumpia.module_handling.fields.viewer_fields.ViewerField(row: int, column: int, *, allow_drag_drop: bool = True, allow_drawing_rois: bool = True, allow_changing_rois: bool = True, validation_command: Callable[[BaseImageSet], bool] | None = None, main: bool = False)

Represents a viewer field with no restrictions on what can be shows. Has the same attributes and methods as BaseViewerField unless stated below.

class pumpia.module_handling.fields.viewer_fields.ArrayViewerField(row: int, column: int, *, allow_drag_drop: bool = True, allow_drawing_rois: bool = True, allow_changing_rois: bool = True, validation_command: Callable[[BaseImageSet], bool] | None = None, main: bool = False)

Represents an viewer field for viewing images that can be stored as an array. Has the same attributes and methods as BaseViewerField unless stated below.

class pumpia.module_handling.fields.viewer_fields.MonochromeViewerField(row: int, column: int, *, allow_drag_drop: bool = True, allow_drawing_rois: bool = True, allow_changing_rois: bool = True, validation_command: Callable[[BaseImageSet], bool] | None = None, main: bool = False)

Represents a viewer field for viewing monochrome images that can be stored as an array. Has the same attributes and methods as BaseViewerField unless stated below.

class pumpia.module_handling.fields.viewer_fields.DicomViewerField(row: int, column: int, *, allow_drag_drop: bool = True, allow_drawing_rois: bool = True, allow_changing_rois: bool = True, validation_command: Callable[[BaseImageSet], bool] | None = None, main: bool = False)

Represents a viewer field for viewing DICOM images. Has the same attributes and methods as BaseViewerField unless stated below.

class pumpia.module_handling.fields.viewer_fields.MonochromeDicomViewerField(row: int, column: int, *, allow_drag_drop: bool = True, allow_drawing_rois: bool = True, allow_changing_rois: bool = True, validation_command: Callable[[BaseImageSet], bool] | None = None, main: bool = False)

Represents a DICOM viewer field for viewing monochrome DICOM images. Has the same attributes and methods as BaseViewerField unless stated below.