]> Creatis software - crea.git/blobdiff - appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithVTK.cxx
change to CMakeLists.txt when configuring files
[crea.git] / appli / creaNewProject / NewProject / bbtk_mySamplePackage_PKG / src / bbmySamplePackagemySampleBoxWithVTK.cxx
index b2d91e3ced268f5377cd48f4228cae9151b09d3d..087608ea59434dc64e071d7add57c67799ceca0d 100644 (file)
@@ -1,6 +1,4 @@
-//===== 
-// Don't edit this file. This file is generated from xml description.. 
-//===== 
+
 #include "bbmySamplePackagemySampleBoxWithVTK.h"
 #include "bbmySamplePackagePackage.h"
 namespace bbmySamplePackage
@@ -8,9 +6,7 @@ namespace bbmySamplePackage
 
 BBTK_ADD_BLACK_BOX_TO_PACKAGE(mySamplePackage,mySampleBoxWithVTK)
 BBTK_BLACK_BOX_IMPLEMENTATION(mySampleBoxWithVTK,bbtk::AtomicBlackBox);
-//===== 
-// Don't edit this file. This file is generated from xml description.. 
-//===== 
+
 void mySampleBoxWithVTK::Process()
 {
 
@@ -25,13 +21,14 @@ void mySampleBoxWithVTK::Process()
 //      (the one provided in the attribute 'name' of the tag 'input')
 //    * TYPE is the C++ type of the input/output
 //      (the one provided in the attribute 'type' of the tag 'input')
-    bbSetOutputOut( bbGetInputIn() );
-    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
+
+    myVtkPipeline.SetImage( bbGetInputIn() );
+    myVtkPipeline.SetThresholdBetween(  bbGetInputLower(), bbGetInputUpper() );
+    myVtkPipeline.Execute();
+    bbSetOutputOut( myVtkPipeline.GetResult() );
   
 }
-//===== 
-// Don't edit this file. This file is generated from xml description.. 
-//===== 
+
 void mySampleBoxWithVTK::bbUserSetDefaultValues()
 {
 
@@ -40,9 +37,7 @@ void mySampleBoxWithVTK::bbUserSetDefaultValues()
    bbSetInputIn(0);
   
 }
-//===== 
-// Don't edit this file. This file is generated from xml description.. 
-//===== 
+
 void mySampleBoxWithVTK::bbUserInitializeProcessing()
 {
 
@@ -53,9 +48,7 @@ void mySampleBoxWithVTK::bbUserInitializeProcessing()
 
   
 }
-//===== 
-// Don't edit this file. This file is generated from xml description.. 
-//===== 
+
 void mySampleBoxWithVTK::bbUserFinalizeProcessing()
 {