Detect when new vtkMRMLScalarVolumeNode with DICOM data has been added

bruce
Wed, 06 Apr 2022 05:24:42 +0000
Support

Hello,
I am writing a ScriptedLoadableModule that includes a custom table of all nodes loaded directly from DICOM data (along with custom information relating to these nodes). The table is populated based on whether DICOM appears in the node attributes.
I am struggling to trigger a refresh of this table when the user has loaded a new DICOM dataset through the DICOM module and then switches back to my custom module. Is there an event I can observe to detect when the DICOM node is fully loaded or when my module is back in focus (in the module pane)? The slicer.mrmlScene.nodeAddedEvent fires with the additional node but it appears to do so before the node attributes are populated.
Thanks

2 posts - 2 participants