2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
4 #include "bbPackRecalageAddImageToVector.h"
5 #include "bbPackRecalagePackage.h"
7 namespace bbPackRecalage
10 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,AddImageToVector)
11 BBTK_BLACK_BOX_IMPLEMENTATION(AddImageToVector,bbtk::AtomicBlackBox);
13 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
15 void AddImageToVector::Process()
18 // THE MAIN PROCESSING METHOD BODY
19 // Here we simply set the input 'In' value to the output 'Out'
20 // And print out the output value
21 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
22 // void bbSet{Input|Output}NAME(const TYPE&)
23 // const TYPE& bbGet{Input|Output}NAME() const
25 // * NAME is the name of the input/output
26 // (the one provided in the attribute 'name' of the tag 'input')
27 // * TYPE is the C++ type of the input/output
28 // (the one provided in the attribute 'type' of the tag 'input')
30 // bbSetOutputOut( bbGetInputIn() );
31 // std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
32 std::vector<vtkImageData*> lstImages=bbGetInputImageVector();
33 if (bbGetInputIn0()!=NULL) { lstImages.push_back( bbGetInputIn0() ); }
34 if (bbGetInputIn1()!=NULL) { lstImages.push_back( bbGetInputIn1() ); }
35 if (bbGetInputIn2()!=NULL) { lstImages.push_back( bbGetInputIn2() ); }
36 if (bbGetInputIn3()!=NULL) { lstImages.push_back( bbGetInputIn3() ); }
37 if (bbGetInputIn4()!=NULL) { lstImages.push_back( bbGetInputIn4() ); }
38 if (bbGetInputIn5()!=NULL) { lstImages.push_back( bbGetInputIn5() ); }
39 if (bbGetInputIn6()!=NULL) { lstImages.push_back( bbGetInputIn6() ); }
40 if (bbGetInputIn7()!=NULL) { lstImages.push_back( bbGetInputIn7() ); }
41 if (bbGetInputIn8()!=NULL) { lstImages.push_back( bbGetInputIn8() ); }
42 if (bbGetInputIn9()!=NULL) { lstImages.push_back( bbGetInputIn9() ); }
43 bbSetOutputOut(lstImages);
46 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
48 void AddImageToVector::bbUserSetDefaultValues()
51 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
52 // Here we initialize the input 'In' to 0
63 std::vector<vtkImageData*> lstImages;
64 bbSetInputImageVector(lstImages);
67 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
69 void AddImageToVector::bbUserInitializeProcessing()
72 // THE INITIALIZATION METHOD BODY :
74 // but this is where you should allocate the internal/output pointers
80 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
82 void AddImageToVector::bbUserFinalizeProcessing()
85 // THE FINALIZATION METHOD BODY :
87 // but this is where you should desallocate the internal/output pointers
92 // EO namespace bbPackRecalage