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 __bbstdVectorRescaleSlope_h_INCLUDED__
5 #define __bbstdVectorRescaleSlope_h_INCLUDED__
6 #include "bbstd_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
13 class bbstd_EXPORT VectorRescaleSlope
15 public bbtk::AtomicBlackBox
17 BBTK_BLACK_BOX_INTERFACE(VectorRescaleSlope,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(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);
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)
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");
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);
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)
51 #endif // __bbstdVectorRescaleSlope_h_INCLUDED__