1 #include "bbPackRecalageTransform3DBox.h"
2 #include "bbPackRecalagePackage.h"
3 namespace bbPackRecalage
6 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,Transform3DBox)
7 BBTK_BLACK_BOX_IMPLEMENTATION(Transform3DBox,bbtk::AtomicBlackBox);
8 void Transform3DBox::Process()
10 if(!bbGetInputCenterPoint().empty())
12 // The inputs are set in the library transformer 3D
13 transformer->SetCenterPoint( bbGetInputCenterPoint() );
15 // The calculation of the transformations are made
17 // We get the results of transformer and set it as result of this box
18 bbSetOutputOut( transformer->GetResult() );
22 bbSetOutputOut( NULL );
25 void Transform3DBox::bbUserSetDefaultValues()
27 //We initialize the points with an empty vector
28 std::vector<int> nuevo(3,0);
30 bbSetInputCenterPoint(nuevo);
33 void Transform3DBox::bbUserInitializeProcessing()
35 //We initialize the transformer
36 transformer=new Transformer3D();
38 void Transform3DBox::bbUserFinalizeProcessing()
40 //We delete the transformer
44 // EO namespace bbPackRecalage