CGAL 5.2.2 - CGAL and the Qt Graphics View Framework
|
#include <CGAL/Qt/GraphicsViewCircleInput.h>
An object of type GraphicsViewCircleInput
creates a circle, defined by either center and radius, or two or three points on the circle.
A new vertex is inserted every time the left mouse button is released. The Del
key removes the last entered point. The Esc
key removes all entered points.
K | must be a model of Kernel . |
Creation | |
GraphicsViewCircleInput (QObject *p, QGraphicsScene *s, int pointsOnCircle=1) | |
Signals | |
void | generate (Object o) |
The object o contains a std::pair<K::Point_2, K::FT> for center and radius, or a std::pair<K::Point_2, K::Point_2> for two points defining the circle, or CGAL::array<K::Point_2, 3> for three points defining the circle. | |
CGAL::Qt::GraphicsViewCircleInput< K >::GraphicsViewCircleInput | ( | QObject * | p, |
QGraphicsScene * | s, | ||
int | pointsOnCircle = 1 |
||
) |
p | is a parent object. |
s | is the scene where the circle is generated. |
pointsOnCircle | is the number of points on the circle to be generated, that is the default value 1 corresponds to the case center/radius. |