Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Segment.h
1 #ifndef SEGMENT_H_
2 #define SEGMENT_H_
3
4 #define OFFSET_A 0
5 #define OFFSET_B 1
6
7 #include "Polylines.h"
8
9 /*----------------------------------------------------------------------*\
10 |* Declaration *|
11 \*---------------------------------------------------------------------*/
12
13 /*--------------------------------------*\
14 |* Public *|
15 \*-------------------------------------*/
16
17 /**
18 * Segment AB
19 */
20 class CBI_GRAPH Segment : public Polylines
21 {
22 public:
23 Segment(Title title, Apparance apparance,Point a,Point b);
24 virtual ~Segment();
25
26 Point getA() const;
27 Point getB() const;
28
29 void setA(Point a);
30 void setB(Point b);
31 void setAB(Point a,Point b);
32
33 protected :
34 static shared_array<Point> createTabPoint(Point a,Point b);
35 };
36
37 #endif
38
39 /*----------------------------------------------------------------------*\
40 |* End *|
41 \*---------------------------------------------------------------------*/