#NEWLINE# @ staticmethod #NEWLINE# def setActiveVolumeId( volumeId , labelmapId = None ) : #NEWLINE# #INDENT# selectionNode = slicer . app . applicationLogic ( ) . GetSelectionNode ( ) #NEWLINE# if ( ( volumeId is not None ) and ( labelmapId != '' ) ) : #NEWLINE# #INDENT# selectionNode . SetReferenceActiveVolumeID ( volumeId ) #NEWLINE# #UNINDENT# if ( ( labelmapId is not None ) and ( labelmapId != '' ) ) : #NEWLINE# #INDENT# selectionNode . SetReferenceActiveLabelVolumeID ( labelmapId ) #NEWLINE# #UNINDENT# slicer . app . applicationLogic ( ) . PropagateVolumeSelection ( 0 )