#NEWLINE# def saveCurrentSeedsToXML( self ) : #NEWLINE# #INDENT# ' Save the current selected seed to a GeometryTopologyData object that will be\n        stored in the Results folder of the module, with the preffix _seedEvaluation.xml\n        ' #NEWLINE# dirPath = os . path . join ( SlicerUtil . getModuleFolder ( self . moduleName ) , 'Results' ) #NEWLINE# Util . create_directory ( dirPath ) #NEWLINE# filePath = os . path . join ( dirPath , ( self . logic . currentVolume . GetName ( ) + '_seedEvaluation.xml' ) ) #NEWLINE# geom = GeometryTopologyData ( ) #NEWLINE# geom . coordinate_system = GeometryTopologyData . LPS #NEWLINE# fidNode = self . logic . getCurrentFiducialsNode ( ) #NEWLINE# for i in range ( fidNode . GetNumberOfMarkups ( ) ) : #NEWLINE# #INDENT# if fidNode . GetNthFiducialVisibility ( i ) : #NEWLINE# #INDENT# coords = [ 0 , 0 , 0 ] #NEWLINE# fidNode . GetNthFiducialPosition ( coords , coords ) #NEWLINE# coords = Util . ras_to_lps ( coords ) #NEWLINE# descr = None #NEWLINE# if ( self . lesionTypeRadioButtonGroup . checkedId ( ) == 1 ) : #NEWLINE# #INDENT# descr = 'Nodule' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . lesionTypeRadioButtonGroup . checkedId ( ) == 2 ) : #NEWLINE# #INDENT# descr = 'Tumor' #NEWLINE# #UNINDENT# #UNINDENT# geom . add_point ( Point ( 0 , 86 , 0 , coords , descr ) ) #NEWLINE# #UNINDENT# #UNINDENT# geom . to_xml_file ( filePath ) #NEWLINE# qt . QMessageBox . information ( slicer . util . mainWindow ( ) , 'Data saved' , ( 'The data were saved successfully in ' + filePath ) )