Applications/DTIAtlasFiberAnalyzer/DTIAtlasFiberAnalyzerguiwindow.cxx
/*********************************************************************************
 * Transform the QTable item from a row on a std::string
 ********************************************************************************/
Transform the QTable item from a row on a std::string
Transform the QTable item from a row on a std :: string
std::string DTIAtlasFiberAnalyzerguiwindow::LineItemsToString(int row)
{
    QString qs;
    std::string line;
    for(int i=0;i<CSVtable->columnCount();i++)
    {
        if(i!= CSVtable->columnCount() -1)
        {
            if(CSVtable->item(row,i)!= 0)
            {
                qs = (CSVtable->item(row,i))->text();
                line+= qs.toStdString();
            }
            else
            {
                line+= "no";
            }
            line+= ",";
        }
        else
        {
            if(CSVtable->item(row,i)!= 0)
            {
                qs = (CSVtable->item(row,i))->text();
                line+= qs.toStdString();
            }
            else
            {
                line+= "no";
            }
        }
    }
    return line;
}
std :: string DTIAtlasFiberAnalyzerguiwindow :: LineItemsToString ( int row ) { QString qs ; std :: string line ; for ( int i = 0 ; i < CSVtable -> columnCount ( ) ; i ++ ) { if ( i != CSVtable -> columnCount ( ) - 1 ) { if ( CSVtable -> item ( row , i ) != 0 ) { qs = ( CSVtable -> item ( row , i ) ) -> text ( ) ; line += qs . toStdString ( ) ; } else { line += " " ; } line += " " ; } else { if ( CSVtable -> item ( row , i ) != 0 ) { qs = ( CSVtable -> item ( row , i ) ) -> text ( ) ; line += qs . toStdString ( ) ; } else { line += " " ; } } } return line ; }
Transform the QTable item from a row on a std::string
Transform the QTable item from a row on a std :: string
/* Copy each item in the std::string separate by a coma */ // Put the coma