utils.ui_helper_utils module

class utils.ui_helper_utils.UIHelperMixin[source]

Bases: object

Mixin class for setting up the UI for the RANO module.

onNodeSelected(node, timepoint)[source]

Called when a node is selected in the input selector. Sets the node as the background volume for the slice views. :param node: The selected node. :type node: vtkMRMLNode :param timepoint: The timepoint for which to set the background volume. :type timepoint: str

onShowChannelButton(checked, timepoint, inputSelector)[source]

Called when the show channel button is clicked. Sets the selected node as the background volume for the slice views and makes sure that the views are aligned with the acquisition plane of the volume.

Parameters:
  • checked (bool) – Whether the button is checked or not.

  • timepoint (str) – The timepoint for which to show the channel.

  • inputSelector (qt.QComboBox) – The input selector for the channel.

static setBackgroundVolumes(node, timepoint, rotateSliceToLowestVolumeAxes=False)[source]

Set the background volumes for the slice views. :param node: The selected node. :type node: vtkMRMLNode :param timepoint: The timepoint for which to set the background volume. :type timepoint: str :param rotateSliceToLowestVolumeAxes: Whether to rotate the slice views to align with the image acquisition :type rotateSliceToLowestVolumeAxes: bool :param planes:

static setLabelVolumes(node, timepoint)[source]

Set the label volumes for the slice views. :param node: The selected node. :type node: vtkMRMLNode :param timepoint: The timepoint for which to set the label volume. :type timepoint: str

setup_add_data_box()[source]

Set up the add data box for the RANO module.

setup_auto_2D_measurements()[source]

Set up the auto 2D measurements box for the RANO module.

setup_autosegmentation_box()[source]

Set up the auto-segmentation box for the RANO module.

setup_input_box()[source]

Set up the input box for the RANO module.

setup_layout()[source]

Set up the layout for the RANO module.

setup_lesion_based_response_status_box()[source]

Set up the lesion based response status box for the RANO module.

setup_manual_2D_measurements()[source]

Set up the manual 2D measurements box for the RANO module.

setup_overall_response_status_box()[source]

Set up the overall response status box for the RANO module.

setup_test_cases()[source]

Set up the test cases for the RANO module.

update_ui_input_channel_selectors(modalities_path, timepoint)[source]

Update the input channel selectors based on the modalities.json file.