]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuOpenImageDialog.cxx
11667ed9e066a6908d8881cbca356d2c6269d13c
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuOpenImageDialog.cxx
1 #include "bbcreaMaracasVisuOpenImageDialog.h"
2 #include "bbcreaMaracasVisuPackage.h"
3
4 namespace bbcreaMaracasVisu
5 {
6
7 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,OpenImageDialog)
8 BBTK_BLACK_BOX_IMPLEMENTATION(OpenImageDialog,bbtk::AtomicBlackBox);
9 void OpenImageDialog::Process()
10 {
11  
12 // THE MAIN PROCESSING METHOD BODY 
13 //   Here we simply set the input 'In' value to the output 'Out' 
14 //   And print out the output value 
15 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM : 
16 //    void bbSet{Input|Output}NAME(const TYPE&) 
17 //    const TYPE& bbGet{Input|Output}NAME() const  
18 //    Where : 
19 //    * NAME is the name of the input/output 
20 //      (the one provided in the attribute 'name' of the tag 'input') 
21 //    * TYPE is the C++ type of the input/output 
22 //      (the one provided in the attribute 'type' of the tag 'input')
23
24
25         creaMaracasVisuKernel::OpenImageDialog diag = creaMaracasVisuKernel::OpenImageDialog();
26
27
28
29     bbSetOutputOut( diag.getImageData() ); 
30     std::cout << "Output value = " <<bbGetOutputOut() << std::endl; 
31   
32 }
33 void OpenImageDialog::bbUserSetDefaultValues()
34 {
35  
36 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX  
37 //    Here we initialize the input 'In' to 0 
38   // bbSetInputIn(0); 
39   
40 }
41 void OpenImageDialog::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 void OpenImageDialog::bbUserFinalizeProcessing()
52 {
53  
54 //  THE FINALIZATION METHOD BODY : 
55 //    Here does nothing  
56 //    but this is where you should desallocate the internal/output pointers  
57 //    if any 
58   
59 }
60 }
61 // EO namespace bbcreaMaracasVisu
62
63