2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
4 #ifndef __bbstdMathOperation_h_INCLUDED__
5 #define __bbstdMathOperation_h_INCLUDED__
6 #include "bbstd_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
13 class bbstd_EXPORT MathOperation
15 public bbtk::AtomicBlackBox
17 BBTK_BLACK_BOX_INTERFACE(MathOperation,bbtk::AtomicBlackBox);
19 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
21 BBTK_DECLARE_INPUT(In1,double);
22 BBTK_DECLARE_INPUT(In2,double);
23 BBTK_DECLARE_INPUT(Type,int);
24 BBTK_DECLARE_OUTPUT(Out,double);
25 BBTK_PROCESS(Process);
32 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
36 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MathOperation,bbtk::AtomicBlackBox);
37 BBTK_NAME("MathOperation");
38 BBTK_AUTHOR("InfoDev");
39 BBTK_DESCRIPTION("Out = In1 <operation> In2");
40 BBTK_CATEGORY("empty");
41 BBTK_INPUT(MathOperation,In1,"First input",double,"");
42 BBTK_INPUT(MathOperation,In2,"Second input",double,"");
43 BBTK_INPUT(MathOperation,Type,"Type (defalult 0): 0 adition (default), 1 sustraction In1-In2, 2 multiplication In1*In2, 3 divisiuon In1/In2, 4 sqrt In1, 5 log In1, 6 exp In1, 7 incremental int [In1..In2], 8 random int [In1..In2], 9 sin In1-rad, 10 cos In1-rad, 11 tan In1-rad, 12 asin In 1, 13 acos In1, 14 atan In1, 15 atan2 In1 In2 , 16 min, 17 max, 18 abs In1 ",int,"");
45 BBTK_OUTPUT(MathOperation,Out,"Output",double,"");
46 BBTK_END_DESCRIBE_BLACK_BOX(MathOperation);
48 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
53 #endif // __bbstdMathOperation_h_INCLUDED__