//===== // 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) //===== #ifndef __bbstdVectorRescaleSlope_h_INCLUDED__ #define __bbstdVectorRescaleSlope_h_INCLUDED__ #include "bbstd_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" namespace bbstd { class bbstd_EXPORT VectorRescaleSlope : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(VectorRescaleSlope,bbtk::AtomicBlackBox); //===== // 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) //===== BBTK_DECLARE_INPUT(In,std::vector); BBTK_DECLARE_INPUT(Type,int); BBTK_DECLARE_INPUT(A,double); BBTK_DECLARE_INPUT(B,double); BBTK_DECLARE_OUTPUT(Out,std::vector); BBTK_PROCESS(Process); void Process(); //===== // 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) //===== }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(VectorRescaleSlope,bbtk::AtomicBlackBox); BBTK_NAME("VectorRescaleSlope"); BBTK_AUTHOR("Info-Dev"); BBTK_DESCRIPTION("Rescale and slope of a vector"); BBTK_CATEGORY(""); BBTK_INPUT(VectorRescaleSlope,In,"Input vector",std::vector,""); 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,""); BBTK_INPUT(VectorRescaleSlope,A,"(1 default) see Type description",double,""); BBTK_INPUT(VectorRescaleSlope,B,"(0 default) see Type description",double,""); BBTK_OUTPUT(VectorRescaleSlope,Out,"Output vector",std::vector,""); BBTK_END_DESCRIBE_BLACK_BOX(VectorRescaleSlope); //===== // 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) //===== } // EO namespace bbstd #endif // __bbstdVectorRescaleSlope_h_INCLUDED__