X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FInterval.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FInterval.h;h=e2db17784e95024b13d4792699deddee1b5ed82c;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Interval.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Interval.h new file mode 100755 index 0000000..e2db177 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Interval.h @@ -0,0 +1,44 @@ +#ifndef INTERVAL_H_ +#define INTERVAL_H_ +#include "envGraph.h" +#include "Definitions.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Interval + { + public: + Interval(double min, double max); + + void setMin(double min); + void setMax(double max); + + double delta() const; + double deltaAbs() const; + + inline double getMin() const + { + return min; + } + + inline double getMax() const + { + return max; + } + + private: + double min; + double max; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/