Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/12/08 12:53:35 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2008/12/11 09:50:34 $
+ Version: $Revision: 1.12 $
=========================================================================*/
/* ---------------------------------------------------------------------
- //=========================================================================
- /// Main processing method of the box.
- void AtomicBlackBox::bbBackwardUpdate( Connection::Pointer caller )
- {
- bbtkDebugMessageInc("process",3,
- "=> AtomicBlackBox::bbBackwardUpdate("
- <<(caller?caller->GetFullName():"0")<<") ["
- <<bbGetFullName()<<"]"<<std::endl);
-
- // If already executing : return
- if (bbGetExecuting())
- {
- bbtkDebugMessage("process",3,
- " -> already executing : returning"<<std::endl);
- return;
- }
-
- bbSetExecuting(true);
- bool wasExecuting = bbGlobalGetSomeBoxExecuting();
- bbGlobalSetSomeBoxExecuting(true);
-
- // Updates its inputs
- IOStatus s = bbUpdateInputs();
-
- if ( (s != UPTODATE) ||
- bbBoxProcessModeIsAlways() )
- {
- // User process
- bbProcess();
-
- // Displays the window (WxBlackbox)
- bbShowWindow(caller);
-
- // Update the I/O statuses
- bbComputePostProcessStatus();
- }
- else
- {
- bbtkDebugMessage("process",5," -> Up-to-date : nothing to do"
- <<std::endl);
- }
-
- bbtkDebugMessage("process",3,
- "<= AtomicBlackBox::bbBackwardUpdate() ["
- <<bbGetFullName()<<"]"<<std::endl);
-
- bbSetExecuting(false);
- bbGlobalSetSomeBoxExecuting(wasExecuting);
-
- return; // bbGetStatus();
-
- }
- //=========================================================================
-
//=========================================================================
Data AtomicBlackBox::bbGetOutput( const std::string &name )
{