]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageCalculateVectorBox.cxx
*** empty log message ***
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageCalculateVectorBox.cxx
1 #include "bbPackRecalageCalculateVectorBox.h"
2 #include "bbPackRecalagePackage.h"
3
4 #include <string>
5
6 namespace bbPackRecalage
7 {
8
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,CalculateVectorBox)
10 BBTK_BLACK_BOX_IMPLEMENTATION(CalculateVectorBox,bbtk::AtomicBlackBox);
11 void CalculateVectorBox::Process()
12 {
13         
14     if(bbGetInputLabels1()[0].compare("") != 0)
15         {
16                 std::vector<float> newX1;
17                 newX1.push_back((float)bbGetInputPointsX1()[0]);
18                 std::vector<float> newX2;
19                 newX2.push_back((float)bbGetInputPointsX2()[0]);
20         }
21 }
22 void CalculateVectorBox::bbUserSetDefaultValues()
23 {
24  
25 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX  
26 //    Here we initialize the input 'In' to 0 
27         /*
28         std::vector<std::string> nuevo("","");
29         bbSetInputLabels1(nuevo);*/
30 }
31 void CalculateVectorBox::bbUserInitializeProcessing()
32 {
33  
34 //  THE INITIALIZATION METHOD BODY : 
35 //    Here does nothing  
36 //    but this is where you should allocate the internal/output pointers  
37 //    if any  
38  
39   
40 }
41 void CalculateVectorBox::bbUserFinalizeProcessing()
42 {
43  
44 //  THE FINALIZATION METHOD BODY : 
45 //    Here does nothing  
46 //    but this is where you should desallocate the internal/output pointers  
47 //    if any 
48   
49 }
50 }
51 // EO namespace bbPackRecalage
52
53