create_drawing_object_ellipse — Create an ellipse which can be modified interactively.
create_drawing_object_ellipse creates an ellipse which can be
modified interactively in a HALCON window by the user. The ellipse is defined
by the coordinates of its center point,
the lengths of its respective half axis,
Radius2, and its orientation
The parameters can be queried with
as well as its corresponding HALCON object with
In addition to those parameters, every drawing object has a number of
parameters which determine the appearance of the object in the HALCON window.
set_drawing_object_params for details on the number and meaning
of those parameters.
In order to enable the interactive modification with the drawing object, the
object must be attached to an existing window. See
attach_drawing_object_to_window for further details.
Once attached, the ellipse is editable by the user through interaction
with the window.
There are three possible transformations for an ellipse object:
resizing, displacement and rotation.
The ellipse can be resized by clicking close to the vertex handles.
The orientation and thus the rotation of the ellipse can be modified by
dragging on a vertex of the first half axis. The ellipse can be moved in
the HALCON window by dragging the center.
In contrast to the operator
draw_ellipse, this interaction does not
block the calling thread.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
Row index of the center.
Default value: 200
Column index of the center.
Default value: 200
Orientation of the first half axis in radians.
Default value: 0
First half axis.
Default value: 100
Second half axis.
Default value: 60
Handle of the drawing object.
If the parameter values are correct the operator
create_drawing_object_ellipse returns the value 2 (H_MSG_TRUE).
Otherwise an exception is raised.