X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBox.cxx;h=49321eed2d2d639e78cab3a8f556c90ae39f0d37;hb=cb74ad8d12e03d219df87c69f6caef29afee4cfc;hp=5cffb502dad9552a427eb085437c2bc9668c7f11;hpb=857e5e5bd003d20cb8bc4539b6fca4ca9d50929c;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index 5cffb50..49321ee 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBox.cxx,v $ Language: C++ -Date: $Date: 2008/05/15 08:02:36 $ -Version: $Revision: 1.19 $ +Date: $Date: 2008/07/24 14:37:05 $ +Version: $Revision: 1.23 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See doc/license.txt or @@ -90,11 +90,12 @@ namespace bbtk //========================================================================= BlackBox::BlackBox(const std::string &name) - : bbmName(name), - bbmStatus(MODIFIED), - bbmBoxProcessMode("Pipeline"), - bbmParent() - + : + bbmStatus(MODIFIED), + bbmName(name), + bbmBoxProcessMode("Pipeline"), + bbmParent() + { bbtkDebugMessage("object",4,"==> BlackBox::BlackBox(\"" < BlackBox::bbExecute() [" <bbSetStatus(MODIFIED); bbGlobalAddToExecutionList( GetThisPointer() ); } + /* else if ( bbGetStatus() == MODIFIED ) //! this->bbIsUptodate()) { bbtkDebugMessage("modified",2,"-> Already modified"< Status set to modified"<first); @@ -1166,13 +1168,6 @@ namespace bbtk } - //========================================================================= - // Static members initialization -/*EED - bool BlackBox::bbmgSomeBoxExecuting = false; - bool BlackBox::bbmgFreezeExecution = false; - std::set BlackBox::bbmgExecutionList; -*/ //========================================================================= //========================================================================= @@ -1183,6 +1178,16 @@ namespace bbtk } //========================================================================= + void BlackBox::bbUserOnShowWidget(std::string nameInput) + { + bbtk::BlackBoxInputConnector *cc; + cc = this->bbGetInputConnectorMap().find( nameInput.c_str() )->second; + if (cc->GetConnection()!=NULL) + { + cc->GetConnection()->GetBlackBoxFrom()->bbUserOnShow(); + } + } + } // EO namespace bbtk