Applications/DTIAtlasFiberAnalyzer/DTIAtlasFiberAnalyzerguiwindow.cxx
/************************************************************************************
 * setFibers : Fill the m_Fibers string vector with selected fiber's names
 ************************************************************************************/
setFibers : Fill the m_Fibers string vector with selected fiber's names
setFibers : Fill the m_Fibers string vector with selected fiber ' s names
void DTIAtlasFiberAnalyzerguiwindow::setFibers()
{
    std::string fiber;
    m_Fibers.clear();
    for(unsigned int j=0; j<m_CSV->getColSize(0); j++)
    {
        if(ExtensionofFile((*m_CSV->getData())[0][j]).compare("fvp")==0)
        {
            fiber=takeoffExtension((*m_CSV->getData())[0][j]);
            m_Fibers.push_back(fiber);
        }
    }
    sort(m_Fibers.begin(), m_Fibers.end());
}
void DTIAtlasFiberAnalyzerguiwindow :: setFibers ( ) { std :: string fiber ; m_Fibers . clear ( ) ; for ( unsigned int j = 0 ; j < m_CSV -> getColSize ( 0 ) ; j ++ ) { if ( ExtensionofFile ( ( * m_CSV -> getData ( ) ) [ 0 ] [ j ] ) . compare ( " " ) == 0 ) { fiber = takeoffExtension ( ( * m_CSV -> getData ( ) ) [ 0 ] [ j ] ) ; m_Fibers . push_back ( fiber ) ; } } sort ( m_Fibers . begin ( ) , m_Fibers . end ( ) ) ; }
setFibers : Fill the m_Fibers string vector with selected fiber's names
setFibers : Fill the m_Fibers string vector with selected fiber ' s names