From: Juan Prieto Date: Thu, 4 Mar 2010 15:09:56 +0000 (+0000) Subject: Bug found in CutModule, not setting the output as NULL in the black box X-Git-Tag: CREATOOLS.2-0-3~58 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d933b431125e059868220b03df78cd408e623d2c;p=creaMaracasVisu.git Bug found in CutModule, not setting the output as NULL in the black box To revise... In cutModuleManager, not respecting the librairies hierarchy, calling the instance of the interface from the kernel --- diff --git a/bbtk/src/bbcreaMaracasVisuCutModule.cxx b/bbtk/src/bbcreaMaracasVisuCutModule.cxx index ebcfce3..3364770 100644 --- a/bbtk/src/bbcreaMaracasVisuCutModule.cxx +++ b/bbtk/src/bbcreaMaracasVisuCutModule.cxx @@ -42,12 +42,14 @@ void CutModule::bbUserSetDefaultValues() { _mainpanel = NULL; _currentimage=NULL; -} -void CutModule::bbUserInitializeProcessing() -{ bbSetInputIn(0); bbSetInputInteractor(0); bbSetInputRenderer(0); + bbSetOutputOut(0); +} +void CutModule::bbUserInitializeProcessing() +{ + } void CutModule::bbUserFinalizeProcessing() { diff --git a/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.cxx b/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.cxx index 23fdee9..023b9d8 100644 --- a/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.cxx +++ b/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.cxx @@ -3,8 +3,8 @@ Program: wxMaracas Module: $RCSfile: CutModelManager.cxx,v $ Language: C++ -Date: $Date: 2010/02/24 13:56:08 $ -Version: $Revision: 1.7 $ +Date: $Date: 2010/03/04 15:09:57 $ +Version: $Revision: 1.8 $ Copyright: (c) 2002, 2003 License: @@ -15,6 +15,8 @@ PURPOSE. See the above copyright notice for more information. =========================================================================*/ #include "CutModelManager.h" + +//Machete #include "CutModelMainPanel.h" /**