+++ /dev/null
-#include "bbPackRecalageTransform3DBox.h"
-#include "bbPackRecalagePackage.h"
-namespace bbPackRecalage
-{
-
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,Transform3DBox)
-BBTK_BLACK_BOX_IMPLEMENTATION(Transform3DBox,bbtk::AtomicBlackBox);
-void Transform3DBox::Process()
-{
- if(!bbGetInputCenterPoint().empty())
- {
- // The inputs are set in the library transformer 3D
- transformer->SetCenterPoint( bbGetInputCenterPoint() );
-
- // The calculation of the transformations are made
- transformer->Run();
- // We get the results of transformer and set it as result of this box
- bbSetOutputOut( transformer->GetResult() );
- }
- else
- {
- bbSetOutputOut( NULL );
- }
-}
-void Transform3DBox::bbUserSetDefaultValues()
-{
- //We initialize the points with an empty vector
- std::vector<int> nuevo(3,0);
- nuevo.push_back(0);
- bbSetInputCenterPoint(nuevo);
- bbSetOutputOut(NULL);
-}
-void Transform3DBox::bbUserInitializeProcessing()
-{
- //We initialize the transformer
- transformer=new Transformer3D();
-}
-void Transform3DBox::bbUserFinalizeProcessing()
-{
- //We delete the transformer
- delete transformer;
-}
-}
-// EO namespace bbPackRecalage
\ No newline at end of file