RANO ==== .. py:module:: RANO .. autoapi-nested-parse:: 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. Classes ------- .. autoapisummary:: RANO.RANO RANO.RANOWidget Functions --------- .. autoapisummary:: RANO.installAndImportDependencies RANO.installExtension Module Contents --------------- .. py:class:: RANO(parent) Bases: :py:obj:`slicer.ScriptedLoadableModule.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 .. py:class:: RANOWidget(parent=None) Bases: :py:obj:`slicer.ScriptedLoadableModule.ScriptedLoadableModuleWidget`, :py:obj:`slicer.util.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` .. py:attribute:: ui :value: None .. py:attribute:: logic :value: None .. py:attribute:: _parameterNode :value: None .. py:attribute:: _updatingGUIFromParameterNode :value: False .. py:method:: setup() .. py:method:: cleanup() Called when the application closes and the module widget is destroyed. .. py:method:: enter() Called each time the user opens this module. .. py:method:: exit() Called each time the user opens a different module. .. py:method:: onSceneStartClose(caller, event) Called just before the scene is closed. :param caller: The object that triggered the event. :param event: The event that occurred. .. py:method:: onSceneEndClose(caller, event) Called just after the scene is closed. :param caller: The object that triggered the event. :param event: The event that occurred. .. py:method:: initializeParameterNode() Ensure parameter node exists and observed. .. py:method:: setParameterNode(inputParameterNode) Set and observe parameter node. Observation is needed because when the parameter node is changed then the GUI must be updated immediately. :param inputParameterNode: The parameter node to set. .. py:method:: updateGUIFromParameterNode(caller=None, event=None) 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 :param caller: The object that triggered the event. :param event: The event that occurred. .. py:method:: updateParameterNodeFromGUI(caller=None, event=None) 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). :param caller: The object that triggered the event. :param event: The event that occurred. .. py:function:: installAndImportDependencies() Dependency handling .. py:function:: installExtension(extensionName)