X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBox.cxx;h=8be7d01d0e3a283d659957fcf63f6284a8dbb7ba;hb=a35973b128a2f7130b619a2a11a35cfd418b21b6;hp=803e554ce0971f89ed7e21c73dfc2f5741a6fbea;hpb=f20c3308a0d420bbc81089fad47108fa4f25aa17;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index 803e554..8be7d01 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBox.cxx,v $ Language: C++ - Date: $Date: 2009/02/27 11:20:25 $ - Version: $Revision: 1.39 $ + Date: $Date: 2009/03/30 14:42:16 $ + Version: $Revision: 1.41 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -54,6 +54,7 @@ namespace bbtk static std::set bbmgExecutionList; //========================================================================= + BlackBox::Deleter::Deleter() { } @@ -382,11 +383,18 @@ namespace bbtk if ( (p == "2") || (p == "R") || (p == "r") || (p == "Reactive") || (p == "reactive") ) return Reactive; + /* + if ( (p == "3") || + (p == "F") || (p == "f") || + (p == "Flash") || (p == "flash") ) return Flash; + */ bbtkError(bbGetFullName()<<" : BoxProcessMode value '"<

SetStatus(s); + + // Flash reaction + /* + if (bbGetBoxProcessModeValue() == Flash) + { + this->bbExecute(); + } + */ + OutputConnectorMapType::const_iterator o; for ( o = bbGetOutputConnectorMap().begin(); o != bbGetOutputConnectorMap().end(); ++o ) @@ -754,21 +771,23 @@ namespace bbtk bool wasExecuting = bbGlobalGetSomeBoxExecuting(); bbGlobalSetSomeBoxExecuting(true); + this->bbCreateWidget(); + // Updates its inputs IOStatus s = bbUpdateInputs(); if ( (s != UPTODATE) || bbBoxProcessModeIsAlways() ) { - // Displays the window (WxBlackbox) - // bbShowWindow(caller); + // Displays the window (WxBlackbox) + // bbShowWindow(caller); - // Actual processing (virtual) - this->bbProcess(); + // Actual processing (virtual) + this->bbProcess(); - // Update the I/O statuses - bbComputePostProcessStatus(); + // Update the I/O statuses + bbComputePostProcessStatus(); } else { @@ -790,6 +809,9 @@ namespace bbtk <bbShowWidget(); + + bbtkDebugMessage("process",3, "<= BlackBox::bbRecursiveExecute() [" <