Retrieve the segmentation and source volume from Segment Editor (segmentEditorWidget)


I embedded the segmentEditorWidget from the Segment Editor module into my custom-made module. Now I want to retrieve the vtkMRMLScalarVolumeNode from the sourceVolumeNodeSelector; and the vtkMRMLSegmentationNode from segmentationNodeSelector (selection made by the user).

Normally, I have a component of the style: self.ui.inputSegmentationSelector.currentNode() but I can’t find the access to the object in the UI in segmentEditorWidget.

Thank you!