From 8939e4d897f6e22d4cb989f05477b5b7a4834712 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 28 Jul 2008 14:11:50 +0000 Subject: [PATCH] Use boost::array (and instead of CGAL::Triple That code is currently not tested! --- .../doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex | 2 +- GraphicsView/include/CGAL/Qt/GraphicsViewCircleInput.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex b/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex index 82eddee38b0..d4016472658 100644 --- a/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex +++ b/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex @@ -30,7 +30,7 @@ The template parameter of \ccRefName\ must be a \cgal\ \ccc{Kernel}. \ccMethod{void generate(Object o);}{The object \ccc{o} contains a \ccc{std::pair} for center and radius, or a \ccc{std::pair} for two points defining -the circle, or \ccc{Triple} for three points defining +the circle, or \ccc{boost::array} for three points defining the circle.} \end{ccRefClass} diff --git a/GraphicsView/include/CGAL/Qt/GraphicsViewCircleInput.h b/GraphicsView/include/CGAL/Qt/GraphicsViewCircleInput.h index 5280fcc7c9a..cc6f835df40 100644 --- a/GraphicsView/include/CGAL/Qt/GraphicsViewCircleInput.h +++ b/GraphicsView/include/CGAL/Qt/GraphicsViewCircleInput.h @@ -15,6 +15,8 @@ #include #include +#include + namespace CGAL { namespac Qt { @@ -96,7 +98,7 @@ GraphicsViewCircleInput::mousePressEvent(QGraphicsSceneMouseEvent *event) r = convert(qr); typename K::Collinear_2 collinear; if(! collinear(p,q,r)){ - emit generate(CGAL::make_object(CGAL::Triple(p,q,r))); + emit generate(CGAL::make_object(make_array(p,q,r))); count = 0; } }