From 3143943a5befc9b72fb4fec14969b43cedd32c14 Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Fri, 22 Apr 2016 18:00:23 -0500 Subject: [PATCH] ... --- lib/cpPipelineEditor/BaseQtMainWindow.cxx | 1 + lib/cpPlugins/Object.cxx | 1 + lib/cpPlugins/ProcessObject.cxx | 8 ++++++-- plugins/cpPluginsWidgets/SeedWidget.cxx | 2 -- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/cpPipelineEditor/BaseQtMainWindow.cxx b/lib/cpPipelineEditor/BaseQtMainWindow.cxx index b600c0e..0bd8621 100644 --- a/lib/cpPipelineEditor/BaseQtMainWindow.cxx +++ b/lib/cpPipelineEditor/BaseQtMainWindow.cxx @@ -56,6 +56,7 @@ BaseQtMainWindow( // Prepare workspace this->m_Workspace.SetInterface( &( this->m_Interface ) ); + this->m_Workspace.PrintExecutionOn( ); } // ------------------------------------------------------------------------- diff --git a/lib/cpPlugins/Object.cxx b/lib/cpPlugins/Object.cxx index ed43822..054321c 100644 --- a/lib/cpPlugins/Object.cxx +++ b/lib/cpPlugins/Object.cxx @@ -51,6 +51,7 @@ Modified( ) const vtkObject* v = const_cast< vtkObject* >( this->GetVTK< vtkObject >( ) ); if( i != NULL ) i->Modified( ); if( v != NULL ) v->Modified( ); + this->Superclass::Modified( ); } // ------------------------------------------------------------------------- diff --git a/lib/cpPlugins/ProcessObject.cxx b/lib/cpPlugins/ProcessObject.cxx index 29e14f8..590de5d 100644 --- a/lib/cpPlugins/ProcessObject.cxx +++ b/lib/cpPlugins/ProcessObject.cxx @@ -240,15 +240,17 @@ Update( ) // Current update if( this->m_LastExecutionTime < this->GetMTime( ) || need_to_update ) { + /* if( this->m_PrintExecution && this->m_PrintExecutionStream != NULL ) { + */ *( this->m_PrintExecutionStream ) << "cpPlugins: Updating \"" << this->GetClassCategory( ) << ":" << this->GetClassName( ) << "\"... "; this->m_PrintExecutionStream->flush( ); - } // fi + // } // fi auto t_start = cpPlugins_CHRONO; this->_GenerateData( ); @@ -256,14 +258,16 @@ Update( ) this->m_LastExecutionSpan = long( t_end - t_start ); this->m_LastExecutionTime = this->GetMTime( ); + /* if( this->m_PrintExecution && this->m_PrintExecutionStream != NULL ) { + */ *( this->m_PrintExecutionStream ) << "done in " << double( this->m_LastExecutionSpan ) / double( 1000 ) << " s." << std::endl; - } // fi + // } // fi } // fi } diff --git a/plugins/cpPluginsWidgets/SeedWidget.cxx b/plugins/cpPluginsWidgets/SeedWidget.cxx index 0d4c57d..8ee5abf 100644 --- a/plugins/cpPluginsWidgets/SeedWidget.cxx +++ b/plugins/cpPluginsWidgets/SeedWidget.cxx @@ -90,10 +90,8 @@ cpPluginsWidgets::SeedWidget:: void cpPluginsWidgets::SeedWidget:: _GenerateData( ) { - std::cout << "seeds" << std::endl; if( this->m_Configured ) { - std::cout << "ok" << std::endl; auto points = this->_CreateVTK< vtkPoints >( ); for( auto wIt = this->m_Widgets.begin( ); -- 2.47.1