~noskcaj/ubuntu/saucy/openwalnut/liberation

« back to all changes in this revision

Viewing changes to src/modules/deterministicFTMori/WMDeterministicFTMori.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-05-24 03:12:03 UTC
  • Revision ID: package-import@ubuntu.com-20130524031203-l5g1lzm1vd83fupi
Tags: 1.3.1+hg5849-1ubuntu1
Cherrypick boost1.53 pointer cast fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
            // if there are no new eigenvectors or datasets,
167
167
            // restart the tracking, as there are changes to the parameters
168
168
            resetTracking();
169
 
            boost::shared_ptr< WGridRegular3D > g( boost::shared_dynamic_cast< WGridRegular3D >( m_eigenField->getGrid() ) );
 
169
            boost::shared_ptr< WGridRegular3D > g( boost::dynamic_pointer_cast< WGridRegular3D >( m_eigenField->getGrid() ) );
170
170
            std::size_t todo = ( g->getNbCoordsX() - 2 ) * ( g->getNbCoordsY() - 2 ) * ( g->getNbCoordsZ() - 2 );
171
171
            resetProgress( todo );
172
172
            m_trackingPool->run();
317
317
    WAssert( ds, "" );
318
318
    WAssert( ds->getGrid(), "" );
319
319
    WAssert( ds->getValueSet(), "" );
320
 
    boost::shared_ptr< WGridRegular3D > g = boost::shared_dynamic_cast< WGridRegular3D >( ds->getGrid() );
 
320
    boost::shared_ptr< WGridRegular3D > g = boost::dynamic_pointer_cast< WGridRegular3D >( ds->getGrid() );
321
321
    int i = g->getVoxelNum( j.first );
322
322
    WAssert( i != -1, "" );
323
 
    boost::shared_ptr< WValueSet< double > > vs = boost::shared_dynamic_cast< WValueSet< double > >( ds->getValueSet() );
 
323
    boost::shared_ptr< WValueSet< double > > vs = boost::dynamic_pointer_cast< WValueSet< double > >( ds->getValueSet() );
324
324
    WAssert( vs, "" );
325
325
    if( vs->rawData()[ 4 * i + 3 ] < m_currentMinFA )
326
326
    {