~noskcaj/ubuntu/saucy/openwalnut/liberation

« back to all changes in this revision

Viewing changes to src/modules/teemGlyphs/WMTeemGlyphs.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:
258
258
                dataChanged = true;
259
259
            }
260
260
 
261
 
            boost::shared_ptr< WGridRegular3D > gridReg = boost::shared_dynamic_cast< WGridRegular3D >( m_input->getData().get()->getGrid() );
 
261
            boost::shared_ptr< WGridRegular3D > gridReg = boost::dynamic_pointer_cast< WGridRegular3D >( m_input->getData().get()->getGrid() );
262
262
            switch( m_sliceOrientationSelectionProp->get( true ).getItemIndexOfSelected( 0 ) )
263
263
            {
264
264
                case 0:
342
342
    // run through the positions in the slice and draw the glyphs
343
343
    boost::shared_ptr< GlyphGeneration > generator;
344
344
    generator = boost::shared_ptr< GlyphGeneration >(
345
 
                  new GlyphGeneration( boost::shared_dynamic_cast< WDataSetSphericalHarmonics >( m_input->getData() ),
346
 
                                       boost::shared_dynamic_cast< WDataSetScalar >( m_inputGFA->getData() ),
 
345
                  new GlyphGeneration( boost::dynamic_pointer_cast< WDataSetSphericalHarmonics >( m_input->getData() ),
 
346
                                       boost::dynamic_pointer_cast< WDataSetScalar >( m_inputGFA->getData() ),
347
347
                                       m_GFAThresholdProp->get( true ),
348
348
                                       sliceId,
349
349
                                       order,
462
462
                                                const bool& hideNegativeLobes ) :
463
463
    m_dataSet( dataSet ),
464
464
    m_dataGFA( dataGFA ),
465
 
    m_grid( boost::shared_dynamic_cast< WGridRegular3D >( dataSet->getGrid() ) ),
 
465
    m_grid( boost::dynamic_pointer_cast< WGridRegular3D >( dataSet->getGrid() ) ),
466
466
    m_thresholdGFA( thresholdGFA ),
467
467
    m_order( order ),
468
468
    m_sliceType( sliceType ),
607
607
            }
608
608
 
609
609
            // do not compute positions of vertices if GFA below threshold
610
 
            if(  m_dataGFA && boost::shared_static_cast< WDataSetSingle >( m_dataGFA )->getValueAt( posId ) < m_thresholdGFA )
 
610
            if(  m_dataGFA && boost::static_pointer_cast< WDataSetSingle >( m_dataGFA )->getValueAt( posId ) < m_thresholdGFA )
611
611
            {
612
612
                continue;
613
613
            }