ClassesClasses | | Operators

create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCircle (Operator)

Name

create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCircle — Create a circle which can be modified interactively.

Signature

create_drawing_object_circle( : : Row, Column, Radius : DrawID)

Herror create_drawing_object_circle(double Row, double Column, double Radius, Hlong* DrawID)

Herror T_create_drawing_object_circle(const Htuple Row, const Htuple Column, const Htuple Radius, Htuple* DrawID)

void CreateDrawingObjectCircle(const HTuple& Row, const HTuple& Column, const HTuple& Radius, HTuple* DrawID)

void HDrawingObject::HDrawingObject(double Row, double Column, double Radius)

void HDrawingObject::CreateDrawingObjectCircle(double Row, double Column, double Radius)

static void HOperatorSet.CreateDrawingObjectCircle(HTuple row, HTuple column, HTuple radius, out HTuple drawID)

public HDrawingObject(double row, double column, double radius)

void HDrawingObject.CreateDrawingObjectCircle(double row, double column, double radius)

Description

create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCircleCreateDrawingObjectCircle creates a circular region which can be interactively modified in a HALCON window by the user. The circle is defined by the coordinates RowRowRowRowrow and ColumnColumnColumnColumncolumn of its center, and by its RadiusRadiusRadiusRadiusradius. The created circle is returned in the handle DrawIDDrawIDDrawIDDrawIDdrawID.

These parameters can be queried any time with get_drawing_object_paramsget_drawing_object_paramsGetDrawingObjectParamsGetDrawingObjectParamsGetDrawingObjectParams, as well as its corresponding HALCON object with get_drawing_object_iconicget_drawing_object_iconicGetDrawingObjectIconicGetDrawingObjectIconicGetDrawingObjectIconic.

In addition to those parameters, every drawing object has a number of parameters which determine the appearance of the object in the HALCON window. See set_drawing_object_paramsset_drawing_object_paramsSetDrawingObjectParamsSetDrawingObjectParamsSetDrawingObjectParams 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_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowAttachDrawingObjectToWindow for further details. Once attached, the circle is editable by the user through interaction within the window. There are two possible transformations for a circle object: resizing and displacement. By clicking close to the circular arc you can modify the RadiusRadiusRadiusRadiusradius of the circle. By clicking on the center, the circle can be dragged across the HALCON window.

In contrast to the operator draw_circledraw_circleDrawCircleDrawCircleDrawCircle, this interaction does not block the calling thread.

Note that since internal structures are allocated during create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCircleCreateDrawingObjectCircle and the following operators the drawing object should be explicitly freed if it is no longer needed.

Execution Information

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.

Parameters

RowRowRowRowrow (input_control)  circle.center.y HTupleHTupleHtuple (real) (double) (double) (double)

Row coordinate of the center.

Default value: 100

ColumnColumnColumnColumncolumn (input_control)  circle.center.x HTupleHTupleHtuple (real) (double) (double) (double)

Column coordinate of the center.

Default value: 100

RadiusRadiusRadiusRadiusradius (input_control)  circle.radius HTupleHTupleHtuple (real) (double) (double) (double)

Radius of the circle.

Default value: 80

DrawIDDrawIDDrawIDDrawIDdrawID (output_control)  drawing_object HDrawingObject, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the drawing object.

Result

If the parameter values are correct the operator create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCircleCreateDrawingObjectCircle returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindow

Possible Successors

attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowAttachDrawingObjectToWindow, get_drawing_object_paramsget_drawing_object_paramsGetDrawingObjectParamsGetDrawingObjectParamsGetDrawingObjectParams, get_drawing_object_iconicget_drawing_object_iconicGetDrawingObjectIconicGetDrawingObjectIconicGetDrawingObjectIconic

Alternatives

draw_circledraw_circleDrawCircleDrawCircleDrawCircle, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion, create_drawing_object_circle_sectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSector, create_drawing_object_ellipsecreate_drawing_object_ellipseCreateDrawingObjectEllipseCreateDrawingObjectEllipseCreateDrawingObjectEllipse, create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSector

See also

create_drawing_object_rectangle1create_drawing_object_rectangle1CreateDrawingObjectRectangle1CreateDrawingObjectRectangle1CreateDrawingObjectRectangle1, create_drawing_object_rectangle2create_drawing_object_rectangle2CreateDrawingObjectRectangle2CreateDrawingObjectRectangle2CreateDrawingObjectRectangle2, create_drawing_object_ellipsecreate_drawing_object_ellipseCreateDrawingObjectEllipseCreateDrawingObjectEllipseCreateDrawingObjectEllipse, create_drawing_object_circle_sectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSector, create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSector, create_drawing_object_xldcreate_drawing_object_xldCreateDrawingObjectXldCreateDrawingObjectXldCreateDrawingObjectXld

Module

Foundation


ClassesClasses | | Operators