RANO module

RANO Module

This module is part of a 3D Slicer extension and provides tools for Response Assessment in Neuro-Oncology (RANO) based on the RANO 2.0 guidelines. It includes functionality for segmentation, 2D measurements, response classification, and report generation.

class RANO.RANO(parent)[source]

Bases: ScriptedLoadableModule

Required class for 3D Slicer module. Uses ScriptedLoadableModule base class, available at: https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py

class RANO.RANOWidget(parent=None)[source]

Bases: ScriptedLoadableModuleWidget, VTKObservationMixin

Required class for 3D Slicer module. UI elements can be accessed as follows from the Slicer python console:

slicer.modules.RANOWidget.ui

For example, to access the text of the line edit widget:

slicer.modules.RANOWidget.ui.lineEdit.text

cleanup()[source]

Called when the application closes and the module widget is destroyed.

enter()[source]

Called each time the user opens this module.

exit()[source]

Called each time the user opens a different module.

initializeParameterNode()[source]

Ensure parameter node exists and observed.

onSceneEndClose(caller, event)[source]

Called just after the scene is closed.

Parameters:
  • caller – The object that triggered the event.

  • event – The event that occurred.

onSceneStartClose(caller, event)[source]

Called just before the scene is closed.

Parameters:
  • caller – The object that triggered the event.

  • event – The event that occurred.

setParameterNode(inputParameterNode)[source]

Set and observe parameter node. Observation is needed because when the parameter node is changed then the GUI must be updated immediately.

Parameters:

inputParameterNode – The parameter node to set.

setup()[source]
updateGUIFromParameterNode(caller=None, event=None)[source]

This method is called whenever parameter node is changed. The module GUI is updated to show the current state of the parameter node. From slicer python interface, you can access the variables like this: slicer.modules.RANOWidget.ui.radius_spinbox

Parameters:
  • caller – The object that triggered the event.

  • event – The event that occurred.

updateParameterNodeFromGUI(caller=None, event=None)[source]

This method is called when the user makes any change in the GUI. The changes are saved into the parameter node (so that they are restored when the scene is saved and loaded).

Parameters:
  • caller – The object that triggered the event.

  • event – The event that occurred.

RANO.installAndImportDependencies()[source]

Dependency handling

RANO.installExtension(extensionName)[source]