From d933b431125e059868220b03df78cd408e623d2c Mon Sep 17 00:00:00 2001 From: Juan Prieto Date: Thu, 4 Mar 2010 15:09:56 +0000 Subject: [PATCH] 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 --- bbtk/src/bbcreaMaracasVisuCutModule.cxx | 8 +++++--- .../src/CutModule/kernel/CutModelManager.cxx | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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" /** -- 2.45.1