From fa5f92050ea1adf3a6dfc48b92510b3d14f64ec0 Mon Sep 17 00:00:00 2001 From: Shai Hirsch Date: Sun, 14 Apr 2002 20:08:15 +0000 Subject: [PATCH] Changed geometric types from global to kernel (Segment_2 to R::Segment_2). Added _2 versions to geometric types. --- .../include/CGAL/Pm_straight_traits_2.h | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/Packages/Planar_map/include/CGAL/Pm_straight_traits_2.h b/Packages/Planar_map/include/CGAL/Pm_straight_traits_2.h index 6df5e538614..a08c0000169 100644 --- a/Packages/Planar_map/include/CGAL/Pm_straight_traits_2.h +++ b/Packages/Planar_map/include/CGAL/Pm_straight_traits_2.h @@ -79,15 +79,31 @@ class Pm_straight_traits_2 { public: typedef R_ R; - typedef typename R::FT FT; - typedef typename R::RT RT; - typedef Point_2 Point; - typedef Point_2 Point_2; - typedef Vector_2 Vector; - typedef Direction_2 Direction; - typedef Segment_2 Segment; - typedef Ray_2 Ray; - typedef Line_2 Line; + typedef typename R::FT FT; + typedef typename R::RT RT; + typedef typename R::Point_2 Point_2; + typedef typename R::Vector_2 Vector_2; + typedef typename R::Direction_2 Direction_2; + typedef typename R::Segment_2 Segment_2; + typedef typename R::Ray_2 Ray_2; + typedef typename R::Line_2 Line_2; + + // Obsolete, for backward compatability + typedef Point_2 Point; + typedef Vector_2 Vector; + typedef Direction_2 Direction; + typedef Segment_2 Segment; + typedef Ray_2 Ray; + typedef Line_2 Line; + + //typedef Point_2 Point; + //typedef Point_2 Point_2; + //typedef Vector_2 Vector; + //typedef Direction_2 Direction; + //typedef Segment_2 Segment; + //typedef Ray_2 Ray; + //typedef Line_2 Line; + typedef Segment X_bounded_curve; // [ - curve -> ] typedef Ray X_target_unbounded_curve; // [ - curve -> ) typedef Ray X_source_unbounded_curve; // ( - curve -> ] @@ -105,8 +121,8 @@ public: typedef Ray_2_Ray_2_pair Ray_X_source_unbounded_curve; typedef Ray_2_Ray_2_pair Ray_X_target_unbounded_curve; typedef Ray_2_Line_2_pair Ray_X_unbounded_curve; - typedef Straight_2_ X_curve; typedef Straight_2_ X_curve_2; + typedef X_curve_2 X_curve; typedef std::vector Point_container; typedef std::vector X_curve_container;