]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkExecuter.cxx
#3490 Init param PolyDataToActor
[bbtk.git] / kernel / src / bbtkExecuter.cxx
index bf51fe564d3a1b644ee850f9bbc044d9b3abfa08..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);
   }
@@ -424,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>) )&&
@@ -445,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);
       }
@@ -485,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)) ;