Commit b65dda88 authored by Alexander Wiebel's avatar Alexander Wiebel

[ADD #289] added very simple progress indication

parent b4d91118
...@@ -101,10 +101,15 @@ void WMFiberDisplay::moduleMain() ...@@ -101,10 +101,15 @@ void WMFiberDisplay::moduleMain()
if( m_dataset->size() != 0 ) // incase of an empty fiber dataset nothing is to display if( m_dataset->size() != 0 ) // incase of an empty fiber dataset nothing is to display
{ {
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->removeChild( m_osgNode.get() ); boost::shared_ptr< WProgress > progress = boost::shared_ptr< WProgress >( new WProgress( "Fiber Display", 2 ) );
m_progress->addSubProgress( progress );
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->removeChild( m_osgNode.get() );
++*progress;
WKernel::getRunningKernel()->getRoiManager()->addFiberDataset( m_dataset ); WKernel::getRunningKernel()->getRoiManager()->addFiberDataset( m_dataset );
++*progress;
create(); create();
progress->finish();
} }
else else
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment