I want make a button for something,I need to delete current volume in my button signal slot.how can i do that?
Do you mean a single volume or the whole scene?
For the scene you can call
slicer.mrmlScene.Clear()
For a single node you can call
slicer.mrmlScene.RemoveNode(volumeNode)
Thank you for reply. i got done.But i want to ask new question that can i pick a volume which is i wanted in mutiple volumes situation ?if yes,Please teach me
oh,i got one more question,which is that i want to export a segmentation to files with nifit format.
I have readed the developer guide ,But still don’t know how should i do.