#include "bbPackRecalageCalculateVectorBox.h" #include "bbPackRecalagePackage.h" #include namespace bbPackRecalage { BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,CalculateVectorBox) BBTK_BLACK_BOX_IMPLEMENTATION(CalculateVectorBox,bbtk::AtomicBlackBox); void CalculateVectorBox::Process() { if(bbGetInputLabels1()[0].compare("") != 0) { //std::vector newX1; //newX1.push_back((float)bbGetInputPointsX1()[0]); std::cout << "Points for first vector: " << bbGetInputPointsX1()[0] << " " << bbGetInputPointsX1()[1] << std::endl; //std::vector newX2; //newX2.push_back((float)bbGetInputPointsX2()[0]); } } void CalculateVectorBox::bbUserSetDefaultValues() { // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 /* std::vector nuevo("",""); bbSetInputLabels1(nuevo);*/ } void CalculateVectorBox::bbUserInitializeProcessing() { // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers // if any } void CalculateVectorBox::bbUserFinalizeProcessing() { // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any } } // EO namespace bbPackRecalage