Use boost::array (and <CGAL/array.h> instead of CGAL::Triple

That code is currently not tested!
This commit is contained in:
Laurent Rineau 2008-07-28 14:11:50 +00:00
parent fc650528e4
commit 8939e4d897
2 changed files with 4 additions and 2 deletions

View File

@ -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<K::Point_2, K::FT>}
for center and radius, or a \ccc{std::pair<K::Point_2, K::Point_2>} for two points defining
the circle, or \ccc{Triple<K::Point_2, K::Point_2, K::Point_2>} for three points defining
the circle, or \ccc{boost::array<K::Point_2, 3>} for three points defining
the circle.}
\end{ccRefClass}

View File

@ -15,6 +15,8 @@
#include <CGAL/Qt/Converter.h>
#include <CGAL/Qt/GraphicsViewInput.h>
#include <CGAL/array.h>
namespace CGAL {
namespac Qt {
@ -96,7 +98,7 @@ GraphicsViewCircleInput<K>::mousePressEvent(QGraphicsSceneMouseEvent *event)
r = convert(qr);
typename K::Collinear_2 collinear;
if(! collinear(p,q,r)){
emit generate(CGAL::make_object(CGAL::Triple<Point_2, Point_2, Point_2>(p,q,r)));
emit generate(CGAL::make_object(make_array(p,q,r)));
count = 0;
}
}