]> Creatis software - crea.git/blob - appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithITK.cxx
1e2d1827233a83f154f4d30fa5504558c060aec0
[crea.git] / appli / creaNewProject / NewProject / bbtk_mySamplePackage_PKG / src / bbmySamplePackagemySampleBoxWithITK.cxx
1
2 #include "bbmySamplePackagemySampleBoxWithITK.h"
3 #include "bbmySamplePackagePackage.h"
4 namespace bbmySamplePackage
5 {
6
7 BBTK_ADD_BLACK_BOX_TO_PACKAGE(mySamplePackage,mySampleBoxWithITK)
8 BBTK_BLACK_BOX_IMPLEMENTATION(mySampleBoxWithITK,bbtk::AtomicBlackBox);
9
10 void mySampleBoxWithITK::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     bbSetOutputOut( bbGetInputIn() );
25     std::cout << "Output value = " <<bbGetOutputOut() << std::endl; 
26 }
27
28 void mySampleBoxWithITK::bbUserSetDefaultValues()
29 {
30
31 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
32 //    Here we initialize the input 'In' to 0
33    bbSetInputIn(0);
34 }
35
36 void mySampleBoxWithITK::bbUserInitializeProcessing()
37 {
38 //  THE INITIALIZATION METHOD BODY :
39 //    Here does nothing 
40 //    but this is where you should allocate the internal/output pointers 
41 //    if any 
42 }
43
44 void mySampleBoxWithITK::bbUserFinalizeProcessing()
45 {
46 //  THE FINALIZATION METHOD BODY :
47 //    Here does nothing 
48 //    but this is where you should desallocate the internal/output pointers 
49 //    if any
50   
51 }
52
53 }
54 // EO namespace bbmySamplePackage
55
56