X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FSegment.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FSegment.h;h=11b546c12bf3a0d72c5c37a9486d883b0d7b3647;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h new file mode 100755 index 0000000..11b546c --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h @@ -0,0 +1,41 @@ +#ifndef SEGMENT_H_ +#define SEGMENT_H_ + +#define OFFSET_A 0 +#define OFFSET_B 1 + +#include "Polylines.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Segment AB + */ +class CBI_GRAPH Segment : public Polylines + { + public: + Segment(Title title, Apparance apparance,Point a,Point b); + virtual ~Segment(); + + Point getA() const; + Point getB() const; + + void setA(Point a); + void setB(Point b); + void setAB(Point a,Point b); + + protected : + static shared_array createTabPoint(Point a,Point b); + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/