]> Creatis software - bbtk.git/blob - packages/std/src/bbstdMathOperation.h
#2540 BBTK Feature New Normal - Math operation box
[bbtk.git] / packages / std / src / bbstdMathOperation.h
1 //===== 
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)
3 //===== 
4 #ifndef __bbstdMathOperation_h_INCLUDED__
5 #define __bbstdMathOperation_h_INCLUDED__
6 #include "bbstd_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 namespace bbstd
11 {
12
13 class bbstd_EXPORT MathOperation
14  : 
15    public bbtk::AtomicBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(MathOperation,bbtk::AtomicBlackBox);
18 //===== 
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)
20 //===== 
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);
26   void Process();
27
28   bool firsttime;
29   double acum;
30
31 //===== 
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)
33 //===== 
34 };
35
36 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MathOperation,bbtk::AtomicBlackBox);
37   BBTK_NAME("MathOperation");
38   BBTK_AUTHOR("InfoDev");
39   BBTK_DESCRIPTION("No Description.");
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, 10 cos In1, 11 tan In1, 12 asin In 1, 13 acos In1, 14 atan In1, 15 atan2 In1,In2 ",int,"");
44
45   BBTK_OUTPUT(MathOperation,Out,"Output",double,"");
46 BBTK_END_DESCRIBE_BLACK_BOX(MathOperation);
47 //===== 
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)
49 //===== 
50 }
51 // EO namespace bbstd
52
53 #endif // __bbstdMathOperation_h_INCLUDED__
54