+ //=========================================================================
+ /// Main processing method of the box.
+ void WxBlackBox::bbExecute(bool force)
+ {
+ bbtkDebugMessageInc("Process",1,
+ "=> WxBlackBox::bbExecute() ["
+ <<bbGetFullName()<<"]"<<std::endl);
+
+ // If the output 'Widget' is connected then
+ // we must execute the parent box
+ BlackBox::OutputConnectorMapType::const_iterator i
+ = bbGetOutputConnectorMap().find("Widget");
+
+ if ( i->second->GetConnectionVector().size() != 0 )
+ {
+ bbtkDebugMessage("Process",2,
+ "-> Output 'Widget' connected : transfering execution to parent"
+ <<std::endl);
+
+ i->second->GetConnectionVector().front().lock()
+ ->GetBlackBoxTo()->bbExecute(force);
+
+ }
+ // else call 'standard' BlackBox execution method
+ else
+ {
+ BlackBox::bbExecute(force);
+ }
+ //
+
+ bbtkDebugMessageDec("Process",1,
+ "<= WxBlackBox::bbExecute() ["
+ <<bbGetFullName()<<"]"<<std::endl);
+ }
+ //=========================================================================
+