parameters: (self, confirm=True)
docstring: delete all the structures
docstring_summary: delete all the structures
docstring_tokens: delete all the structures
function: def deleteStructures(self, confirm=True):
      """delete all the structures"""
  
      #
      # iterate through structures and delete them
      #
      merge = self.merge
      if not merge:
        return
  
      rows = self.structures.rowCount()
  
      if confirm:
        if not slicer.util.confirmOkCancelDisplay("Delete %d structure volume(s)?" % rows, windowTitle='Editor'):
          return
  
      slicer.mrmlScene.SaveStateForUndo()
  
      volumeNodes = self.structureVolumes()
      for volumeNode in volumeNodes:
        slicer.mrmlScene.RemoveNode( volumeNode )
      self.updateStructures()
      EditUtil.setActiveVolumes(self.master, merge)
      self.edit(0)
function_tokens: def deleteStructures ( self , confirm = True ) : # # iterate through structures and delete them # merge = self . merge if not merge : return rows = self . structures . rowCount ( ) if confirm : if not slicer . util . confirmOkCancelDisplay ( "Delete %d structure volume(s)?" % rows , windowTitle = 'Editor' ) : return slicer . mrmlScene . SaveStateForUndo ( ) volumeNodes = self . structureVolumes ( ) for volumeNode in volumeNodes : slicer . mrmlScene . RemoveNode ( volumeNode ) self . updateStructures ( ) EditUtil . setActiveVolumes ( self . master , merge ) self . edit ( 0 )