Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Segment.h
diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h
new file mode 100755 (executable)
index 0000000..11b546c
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef SEGMENT_H_\r
+#define SEGMENT_H_\r
+\r
+#define OFFSET_A 0\r
+#define OFFSET_B 1\r
+\r
+#include "Polylines.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+/**\r
+ * Segment AB\r
+ */\r
+class CBI_GRAPH Segment : public Polylines\r
+    {\r
+    public:\r
+       Segment(Title title, Apparance apparance,Point a,Point b);\r
+       virtual ~Segment();\r
+\r
+       Point getA() const;\r
+       Point getB() const;\r
+\r
+       void setA(Point a);\r
+       void setB(Point b);\r
+       void setAB(Point a,Point b);\r
+\r
+    protected :\r
+       static shared_array<Point> createTabPoint(Point a,Point b);\r
+    };\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r