-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
+
#include "bbmySamplePackagemySampleBoxWithVTK.h"
#include "bbmySamplePackagePackage.h"
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()
{
// (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()
{
bbSetInputIn(0);
}
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
+
void mySampleBoxWithVTK::bbUserInitializeProcessing()
{
}
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
+
void mySampleBoxWithVTK::bbUserFinalizeProcessing()
{