Viewer Inputs and Outputs

class pumpia.module_handling.in_outs.viewer_ios.BaseViewerIO(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 input / output 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(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.in_outs.viewer_ios.ViewerIO(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 input / output. Has the same attributes and methods as BaseViewerIO unless stated below.

class pumpia.module_handling.in_outs.viewer_ios.ArrayViewerIO(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 array viewer input / output. Has the same attributes and methods as BaseViewerIO unless stated below.

class pumpia.module_handling.in_outs.viewer_ios.MonochromeViewerIO(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 monochrome viewer input / output. Has the same attributes and methods as BaseViewerIO unless stated below.

class pumpia.module_handling.in_outs.viewer_ios.DicomViewerIO(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 input / output. Has the same attributes and methods as BaseViewerIO unless stated below.

class pumpia.module_handling.in_outs.viewer_ios.MonochromeDicomViewerIO(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 input / output for monochrome images. Has the same attributes and methods as BaseViewerIO unless stated below.