Applications/DTIAtlasFiberAnalyzer/DTIAtlasFiberAnalyzerguiwindow.cxx
/*********************************************************************************
 * Save the value of the parameters for data or analysis
 ********************************************************************************/
Save the value of the parameters for data or analysis
Save the value of the parameters for data or analysis
void DTIAtlasFiberAnalyzerguiwindow::SaveDataAction(std::string Filename)
{
    QString output ;
    if( !m_OutputFolder.empty() )
    {
        output = m_OutputFolder.c_str() ;
    }
    else
    {
        output = m_DialogDir ;
    }
    if( Filename.empty() )
    {
        QString filename = QFileDialog::getSaveFileName( this , "Save data file" , output , "Text (*.txt)" ) ;
        SaveData( filename.toStdString() , m_csvfilename , m_DataCol , m_DeformationCol , RB_HField->isChecked() , m_NameCol , m_OutputFolder ) ;
    }
    else
    {
        SaveData( output.toStdString() + "/" + Filename , m_csvfilename , m_DataCol , m_DeformationCol , RB_HField->isChecked() , m_NameCol , m_OutputFolder ) ;
    }
}
void DTIAtlasFiberAnalyzerguiwindow :: SaveDataAction ( std :: string Filename ) { QString output ; if ( ! m_OutputFolder . empty ( ) ) { output = m_OutputFolder . c_str ( ) ; } else { output = m_DialogDir ; } if ( Filename . empty ( ) ) { QString filename = QFileDialog :: getSaveFileName ( this , " " , output , " " ) ; SaveData ( filename . toStdString ( ) , m_csvfilename , m_DataCol , m_DeformationCol , RB_HField -> isChecked ( ) , m_NameCol , m_OutputFolder ) ; } else { SaveData ( output . toStdString ( ) + " " + Filename , m_csvfilename , m_DataCol , m_DeformationCol , RB_HField -> isChecked ( ) , m_NameCol , m_OutputFolder ) ; } }
Save the value of the parameters for data or analysis
Save the value of the parameters for data or analysis