1 #include "bbPackRecalageCalculateVectorBox.h"
2 #include "bbPackRecalagePackage.h"
6 namespace bbPackRecalage
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,CalculateVectorBox)
10 BBTK_BLACK_BOX_IMPLEMENTATION(CalculateVectorBox,bbtk::AtomicBlackBox);
11 void CalculateVectorBox::Process()
13 if(!bbGetInputPointsX1().empty() && !bbGetInputPointsX2().empty())
15 //Checks that all the vector points are defined
16 if(bbGetInputPointsX1()[1] != 0 && bbGetInputPointsX2()[1] != 0)
18 //_vector->SetData(bbGetInputPointsX1(), bbGetInputPointsX2(), bbGetInputPointsY1(), bbGetInputPointsY2(), bbGetInputPointsZ1(), bbGetInputPointsZ2());
21 //bbSetOutputOrigin(_vector->GetOrigin());
22 //bbSetOutputOriginReslicer(_vector->GetOriginReslicer());
23 //bbSetOutputOutAngle(_vector->GetAngle());
27 void CalculateVectorBox::bbUserSetDefaultValues()
29 _vector = new PlanesOperations();
30 std::vector<int> nullVector;
31 bbSetInputPointsX1(nullVector);
32 bbSetInputPointsX2(nullVector);
34 void CalculateVectorBox::bbUserInitializeProcessing()
37 // THE INITIALIZATION METHOD BODY :
39 // but this is where you should allocate the internal/output pointers
44 void CalculateVectorBox::bbUserFinalizeProcessing()
47 // THE FINALIZATION METHOD BODY :
49 // but this is where you should desallocate the internal/output pointers
54 // EO namespace bbPackRecalage