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 $
=========================================================================*/
/* ---------------------------------------------------------------------
static std::set<BlackBox::WeakPointer> bbmgExecutionList;
//=========================================================================
+
BlackBox::Deleter::Deleter()
{
}
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 '"<<p
<<"' unknown. Possible values : "
<<"'0'/'P'/'p'/'Pipeline'/'pipeline' | "
<<"'1'/'A'/'a'/'Always'/'always' | "
- <<"'2'/'R'/'r'/'Reactive'/'reactive'"<<std::endl);
+ <<"'2'/'R'/'r'/'Reactive'/'reactive'"
+ // <<"'3'/'F'/'f'/'Flash'/'flash'"
+ <<std::endl);
}
//=========================================================================
if (s==UPTODATE) bbtkError("bbSetStatusAndPropagate with status UPTODATE!");
c->SetStatus(s);
+
+ // Flash reaction
+ /*
+ if (bbGetBoxProcessModeValue() == Flash)
+ {
+ this->bbExecute();
+ }
+ */
+
OutputConnectorMapType::const_iterator o;
for ( o = bbGetOutputConnectorMap().begin();
o != bbGetOutputConnectorMap().end(); ++o )
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
{
<<std::endl);
}
+ this->bbShowWidget();
+
+
bbtkDebugMessage("process",3,
"<= BlackBox::bbRecursiveExecute() ["
<<bbGetFullName()<<"]"<<std::endl);