]> Creatis software - crea.git/blob - appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithVTK.cxx
re indent
[crea.git] / appli / creaNewProject / NewProject / bbtk_mySamplePackage_PKG / src / bbmySamplePackagemySampleBoxWithVTK.cxx
1
2 #include "bbmySamplePackagemySampleBoxWithVTK.h"
3 #include "bbmySamplePackagePackage.h"
4 namespace bbmySamplePackage
5 {
6
7 BBTK_ADD_BLACK_BOX_TO_PACKAGE(mySamplePackage,mySampleBoxWithVTK)
8 BBTK_BLACK_BOX_IMPLEMENTATION(mySampleBoxWithVTK,bbtk::AtomicBlackBox);
9
10 void mySampleBoxWithVTK::Process()
11 {
12
13 // THE MAIN PROCESSING METHOD BODY
14 //   Here we simply set the input 'In' value to the output 'Out'
15 //   And print out the output value
16 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
17 //    void bbSet{Input|Output}NAME(const TYPE&)
18 //    const TYPE& bbGet{Input|Output}NAME() const 
19 //    Where :
20 //    * NAME is the name of the input/output
21 //      (the one provided in the attribute 'name' of the tag 'input')
22 //    * TYPE is the C++ type of the input/output
23 //      (the one provided in the attribute 'type' of the tag 'input')
24
25     myVtkPipeline.SetImage( bbGetInputIn() );
26     myVtkPipeline.SetThresholdBetween(  bbGetInputLower(), bbGetInputUpper() );
27     myVtkPipeline.Execute();
28     bbSetOutputOut( myVtkPipeline.GetResult() );
29   
30 }
31
32 void mySampleBoxWithVTK::bbUserSetDefaultValues()
33 {
34
35 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
36 //    Here we initialize the input 'In' to 0
37    bbSetInputIn(0);
38   
39 }
40
41 void mySampleBoxWithVTK::bbUserInitializeProcessing()
42 {
43
44 //  THE INITIALIZATION METHOD BODY :
45 //    Here does nothing 
46 //    but this is where you should allocate the internal/output pointers 
47 //    if any 
48
49   
50 }
51
52 void mySampleBoxWithVTK::bbUserFinalizeProcessing()
53 {
54
55 //  THE FINALIZATION METHOD BODY :
56 //    Here does nothing 
57 //    but this is where you should desallocate the internal/output pointers 
58 //    if any
59   
60 }
61 }
62 // EO namespace bbmySamplePackage
63
64