CGAL::Qt_widget_get_circle<T>
Definition
An object of type Qt_widget_get_circle<T> creates a CGAL circle in this way: one
left click on the mouse will be the center of the circle and the
second point will be considered at the coordinates where the left
mouse button is pressed for the second time, the distance
between those 2 representing the radius of the new circle.
You can always cancel the creation process by pressing the ESC key.
The use of Qt_widget_get_circle<T> requires that the mouse tracking is
enabled for widgets attaching it.
#include <CGAL/IO/Qt_widget_get_circle.h>
Parameters
The full template declaration of Qt_widget_get_circle states one parameter:
If T is one of the CGAL kernels you don't need additional types. If
not, the parameter T has to provide this types:
Types
typedef T::Point_2
|
Point_2;
|
This should be a Point type
|
|
typedef T::Circle_2
|
|
Circle_2;
|
This should be a Circle type
|
|
typedef T::FT
|
FT;
|
This should be a Field type
|
Inherits From
Qt_widget_layer
Creation
Qt_widget_get_circle<T> getcircle ( |
const QCursor c=QCursor(Qt::crossCursor),
QObject* parent = 0,
const char* name = 0); |
|
|
c is the cursor that this layer will use when is
active. parent is the parent widget and name is the name
you give to this layer.
|