]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkExecuter.cxx
#3490 Init param PolyDataToActor
[bbtk.git] / kernel / src / bbtkExecuter.cxx
index d20ed655310e3b8dece8b01ec28ca197c055d5c1..79380c4271072db6ca5671156e5cecdfae5ca706 100644 (file)
@@ -82,7 +82,9 @@ namespace bbtk
     // We have to "lock" the smart pointer because the factory
     // only keeps a weak pointer on the executer
     // -> this would auto-destroy !!
+       
     mFactory->SetExecuter(MakePointer(this,true));
+
     Reset();
     bbtkDebugMessage("object",2,"<== Executer()" <<std::endl);
   }
@@ -132,6 +134,7 @@ namespace bbtk
 #if(USE_WXWIDGETS)
     Wx::ProcessPendingEvents();
 #endif
+
  
     // Create user package
     Package::Pointer p =
@@ -423,7 +426,7 @@ namespace bbtk
                       const std::string &input,
                       const std::string &value)
   {
-    BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
+      BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
     // Looks for the adaptor
 
     if ( ( b->bbGetInputType(input) != typeid(bbtk::any<bbtk::thing>) )&&
@@ -444,9 +447,7 @@ namespace bbtk
          a->bbExecute();
          b->bbSetInput(input,a->bbGetOutput("Out"));
         //         a->Delete();
-      }
-    else 
-      {
+      } else {
       std::string v(value);
       b->bbSetInput(input,v);
       }
@@ -484,9 +485,7 @@ namespace bbtk
        //b->bbSetInput(input,a->bbGetOutput("Out"));
        //        a->bbDelete();
         return r;
-      }
-    else
-      {
+      } else  {
        b->bbExecute();
        return b->bbGetOutput(output).unsafe_get<std::string>();
        // std::string v = *((std::string*)b->bbGetOutput(output)) ;