]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageCalculateVectorBox.cxx
v2
[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::cout << "Points for first vector: " << bbGetInputPointsX1()[0] << " " << bbGetInputPointsX1()[1] << std::endl;
19                 //std::vector<float> newX2;
20                 //newX2.push_back((float)bbGetInputPointsX2()[0]);
21         }
22 }
23 void CalculateVectorBox::bbUserSetDefaultValues()
24 {
25  
26 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX  
27 //    Here we initialize the input 'In' to 0 
28         /*
29         std::vector<std::string> nuevo("","");
30         bbSetInputLabels1(nuevo);*/
31 }
32 void CalculateVectorBox::bbUserInitializeProcessing()
33 {
34  
35 //  THE INITIALIZATION METHOD BODY : 
36 //    Here does nothing  
37 //    but this is where you should allocate the internal/output pointers  
38 //    if any  
39  
40   
41 }
42 void CalculateVectorBox::bbUserFinalizeProcessing()
43 {
44  
45 //  THE FINALIZATION METHOD BODY : 
46 //    Here does nothing  
47 //    but this is where you should desallocate the internal/output pointers  
48 //    if any 
49   
50 }
51 }
52 // EO namespace bbPackRecalage
53
54