Applications/DTIAtlasFiberAnalyzer/DTIAtlasFiberAnalyzerguiwindow.cxx
/*********************************************************************************
 * load file for deformation field and put it in the Qtable
 ********************************************************************************/
load file for deformation field and put it in the Qtable
load file for deformation field and put it in the Qtable
void DTIAtlasFiberAnalyzerguiwindow::BrowserDeformationField(int row)
{
    QString filename,type;
    filename = QFileDialog::getOpenFileName(this, "Open Deformation Field", m_DialogDir ) ;
    SetNewDialogDirFromFileName( filename ) ;
    if(m_debug)
    {
        std::cout<<"Filename : "<< (filename.toStdString()).c_str() <<std::endl;
    }
    if(filename !=NULL)
    {
        PutDataonQTable(row,m_DeformationCol,filename.toStdString());
    }
    else if(m_debug)
    {
        std::cout<<"Error : filename is NULL."<<std::endl;
    }
}
void DTIAtlasFiberAnalyzerguiwindow :: BrowserDeformationField ( int row ) { QString filename , type ; filename = QFileDialog :: getOpenFileName ( this , " " , m_DialogDir ) ; SetNewDialogDirFromFileName ( filename ) ; if ( m_debug ) { std :: cout << " " << ( filename . toStdString ( ) ) . c_str ( ) << std :: endl ; } if ( filename != NULL ) { PutDataonQTable ( row , m_DeformationCol , filename . toStdString ( ) ) ; } else if ( m_debug ) { std :: cout << " " << std :: endl ; } }
load file for deformation field and put it in the Qtable
load file for deformation field and put it in the Qtable
/* Keep the value if cancel */