#ifndef __bbPackRecalageCalculateVectorBox_h_INCLUDED__ #define __bbPackRecalageCalculateVectorBox_h_INCLUDED__ #include "bbPackRecalage_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" namespace bbPackRecalage { class bbPackRecalage_EXPORT CalculateVectorBox : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(CalculateVectorBox,bbtk::AtomicBlackBox); BBTK_DECLARE_INPUT(PointsX1,std::vector); BBTK_DECLARE_INPUT(PointsX2,std::vector); BBTK_DECLARE_INPUT(PointsY1,std::vector); BBTK_DECLARE_INPUT(PointsY2,std::vector); BBTK_DECLARE_INPUT(PointsZ1,std::vector); BBTK_DECLARE_INPUT(PointsZ2,std::vector); BBTK_DECLARE_INPUT(Labels1,std::vector); BBTK_DECLARE_INPUT(Labels2,std::vector); BBTK_DECLARE_OUTPUT(OutX,int); BBTK_DECLARE_OUTPUT(OutY,int); BBTK_DECLARE_OUTPUT(OutZ,int); BBTK_DECLARE_OUTPUT(OutScaleX,int); BBTK_DECLARE_OUTPUT(OutScaleY,int); BBTK_DECLARE_OUTPUT(OutScaleZ,int); BBTK_DECLARE_OUTPUT(OutAngle,double); BBTK_PROCESS(Process); void Process(); }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(CalculateVectorBox,bbtk::AtomicBlackBox); BBTK_NAME("CalculateVectorBox"); BBTK_AUTHOR("jn.trillos44@uniandes.edu.co"); BBTK_DESCRIPTION("Box for calculating the cross and point multiplications of 2 vectors"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(CalculateVectorBox,PointsX1,"List of points in X for the first vector",std::vector,""); BBTK_INPUT(CalculateVectorBox,PointsX2,"List of points in X for the second vector",std::vector,""); BBTK_INPUT(CalculateVectorBox,PointsY1,"List of points in Y for the first vector",std::vector,""); BBTK_INPUT(CalculateVectorBox,PointsY2,"List of points in Y for the second vector",std::vector,""); BBTK_INPUT(CalculateVectorBox,PointsZ1,"List of points in Z for the first vector",std::vector,""); BBTK_INPUT(CalculateVectorBox,PointsZ2,"List of points in Z for the second vector",std::vector,""); BBTK_INPUT(CalculateVectorBox,Labels1,"Labels of the points for the first vector",std::vector,""); BBTK_INPUT(CalculateVectorBox,Labels2,"Labels of the points for the second vector",std::vector,""); BBTK_OUTPUT(CalculateVectorBox,OutX,"Point in X for the cross multiplication",int,""); BBTK_OUTPUT(CalculateVectorBox,OutY,"Point in Y for the cross multiplication",int,""); BBTK_OUTPUT(CalculateVectorBox,OutZ,"Point in Z for the cross multiplication",int,""); BBTK_OUTPUT(CalculateVectorBox,OutScaleX,"Difference in scale for X for the cross multiplication",int,""); BBTK_OUTPUT(CalculateVectorBox,OutScaleY,"Difference in scale for Y for the cross multiplication",int,""); BBTK_OUTPUT(CalculateVectorBox,OutScaleZ,"Difference in scale for Z for the cross multiplication",int,""); BBTK_OUTPUT(CalculateVectorBox,OutAngle,"Angle that represents the dot multiplication",double,""); BBTK_END_DESCRIBE_BLACK_BOX(CalculateVectorBox); } // EO namespace bbPackRecalage #endif // __bbPackRecalageCalculateVectorBox_h_INCLUDED__