Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/02/08 10:05:38 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/03/06 09:23:43 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
//=========================================================================
+
//=========================================================================
void WxBlackBoxWindow::bbShow()
{
}
//=========================================================================
+ //=========================================================================
+ /// 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()
+ ->GetBlackBoxTo()->bbExecute(force);
+
+ }
+ // else call 'standard' BlackBox execution method
+ else
+ {
+ BlackBox::bbExecute(force);
+ }
+ //
+
+ bbtkDebugMessageDec("Process",1,
+ "<= WxBlackBox::bbExecute() ["
+ <<bbGetFullName()<<"]"<<std::endl);
+ }
+ //=========================================================================
//==================================================================
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.h,v $
Language: C++
- Date: $Date: 2008/02/08 10:05:38 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/03/06 09:23:43 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void bbInitAttributes();
+ protected :
+ /// Main processing method of the box. Overloaded to handle windows inclusion : if the output Widget is connected then the execution is transfered to the box to which it is connected (the container window must be created and displayed - this box will be also executed by the normal pipeline recursion mechanism)
+ virtual void bbExecute(bool force = false);
};
//=================================================================