Change name of insert_curve and insert_curves to insert in demo

This commit is contained in:
Ophir Setter 2007-08-23 14:31:08 +00:00
parent 821b9fba55
commit 0eecc28533
2 changed files with 6 additions and 6 deletions

View File

@ -312,7 +312,7 @@ void MyWindow::load( const QString& filename , bool clear_flag )
Conic_reader<Conic_traits> reader;
std::list<Arr_conic_2> curve_list;
reader.read_data(filename, std::back_inserter(curve_list), w_demo->bbox);
CGAL::insert_curves (*(w_demo_p->m_curves_arr), curve_list.begin(), curve_list.end());
CGAL::insert (*(w_demo_p->m_curves_arr), curve_list.begin(), curve_list.end());
}
else if (w_demo->traits_type == POLYLINE_TRAITS)
@ -351,7 +351,7 @@ void MyWindow::load( const QString& filename , bool clear_flag )
pol_list.push_back(curve);
}
CGAL::insert_curves(*(w_demo_p->m_curves_arr), pol_list.begin(), pol_list.end());
CGAL::insert(*(w_demo_p->m_curves_arr), pol_list.begin(), pol_list.end());
}
else if (w_demo->traits_type == SEGMENT_TRAITS)
@ -384,7 +384,7 @@ void MyWindow::load( const QString& filename , bool clear_flag )
seg_list.push_back(curve);
}
CGAL::insert_curves(*(w_demo_p->m_curves_arr), seg_list.begin(), seg_list.end());
CGAL::insert(*(w_demo_p->m_curves_arr), seg_list.begin(), seg_list.end());
}
w_demo->set_window(w_demo->bbox.xmin() , w_demo->bbox.xmax() ,
w_demo->bbox.ymin() , w_demo->bbox.ymax());

View File

@ -1757,7 +1757,7 @@ public:
Arr_seg_point_2 source(coord_source.x(), coord_source.y());
Arr_seg_point_2 target(coord_target.x(), coord_target.y());
Arr_seg_2 seg (source, target);
CGAL::insert_curve(*(w->m_curves_arr), seg);
CGAL::insert(*(w->m_curves_arr), seg);
CGAL::Bbox_2 curve_bbox = seg.bbox();
w->bbox = w->bbox + curve_bbox;
}
@ -2238,7 +2238,7 @@ private:
void get_polyline(Qt_widget_demo_tab<Polyline_tab_traits> * w)
{
Arr_pol_2 pol (points.begin(), points.end());
CGAL::insert_curve(*(w->m_curves_arr), pol);
CGAL::insert(*(w->m_curves_arr), pol);
CGAL::Bbox_2 curve_bbox = pol.bbox();
w->bbox = w->bbox + curve_bbox;
}
@ -2750,7 +2750,7 @@ public:
break;
}
CGAL::insert_curve(*(w->m_curves_arr), cv);
CGAL::insert(*(w->m_curves_arr), cv);
CGAL::Bbox_2 curve_bbox = cv.bbox();
w->bbox = w->bbox + curve_bbox;
w->active = false;