X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FCurveParametric.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FCurveParametric.h;h=3f3e70eb33c99667bcac615bd7ce9c5d438b2f74;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveParametric.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveParametric.h new file mode 100755 index 0000000..3f3e70e --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveParametric.h @@ -0,0 +1,63 @@ +#ifndef CURVE_PARAMETRIC_H +#define CURVE_PARAMETRIC_H + +#include "Figure.h" +#include "Point.h" +#include "Interval.h" +#include + +#include "shared_array.h" +//#include +//using boost::shared_array; + +//in c++14 = std::shared_ptr sp( new int[10], std::default_delete() ); + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Courbe de param�tre landa + */ +class CBI_GRAPH CurveParametric: public Figure + { + public: + CurveParametric(Title title, Apparance apparance); + + virtual ~CurveParametric(); + + virtual Domaine computeDomaine(const Domaine& graphDomaine) const; + + virtual void accept(FigureVisitor_I* ptrVisitor); + + /** + * Return a new TabPoints of size getNbPoints() + * Delete car pas trouver d'equivalence a boost dans la stl + */ + virtual shared_array getTabPoints() const; + + virtual int getNbPoints() const = 0; + + virtual Interval getIntervalLanda() const =0; + + /** + * landa in intervalLand + */ + virtual float x(double landa) const=0; + + + /** + * landa in intervalLand + */ + virtual float y(double landa) const=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/