mirror of https://github.com/CGAL/cgal
Use boost::array (and <CGAL/array.h> instead of CGAL::Triple
That code is currently not tested!
This commit is contained in:
parent
fc650528e4
commit
8939e4d897
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue