]> Creatis software - bbtk.git/blob - packages/std/src/bbstdVectorRescaleSlope.h
no message
[bbtk.git] / packages / std / src / bbstdVectorRescaleSlope.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 __bbstdVectorRescaleSlope_h_INCLUDED__
5 #define __bbstdVectorRescaleSlope_h_INCLUDED__
6 #include "bbstd_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 namespace bbstd
11 {
12
13 class bbstd_EXPORT VectorRescaleSlope
14  : 
15    public bbtk::AtomicBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(VectorRescaleSlope,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(In,std::vector<double>);
22         BBTK_DECLARE_INPUT(Type,int);
23         BBTK_DECLARE_INPUT(A,double);
24         BBTK_DECLARE_INPUT(B,double);
25         BBTK_DECLARE_OUTPUT(Out,std::vector<double>);
26   BBTK_PROCESS(Process);
27   void Process();
28 //===== 
29 // 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)
30 //===== 
31 };
32
33 BBTK_BEGIN_DESCRIBE_BLACK_BOX(VectorRescaleSlope,bbtk::AtomicBlackBox);
34         BBTK_NAME("VectorRescaleSlope");
35         BBTK_AUTHOR("Info-Dev");
36         BBTK_DESCRIPTION("Rescale and slope of a vector");
37         BBTK_CATEGORY("");
38         
39         BBTK_INPUT(VectorRescaleSlope,In,"Input vector",std::vector<double>,"");
40         BBTK_INPUT(VectorRescaleSlope,Type,"type of operation: 0 (default) SlopeIntercept np=p*A+B, 1 Invert, 2 Redimension A=newMin B=newMax, 3 InvertRedimension A=newMin B=newMax",int,"");
41         BBTK_INPUT(VectorRescaleSlope,A,"(1 default) see Type description",double,"");
42         BBTK_INPUT(VectorRescaleSlope,B,"(0 default) see Type description",double,"");
43         BBTK_OUTPUT(VectorRescaleSlope,Out,"Output vector",std::vector<double>,"");
44 BBTK_END_DESCRIBE_BLACK_BOX(VectorRescaleSlope);
45 //===== 
46 // 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)
47 //===== 
48 }
49 // EO namespace bbstd
50
51 #endif // __bbstdVectorRescaleSlope_h_INCLUDED__
52