HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Drawing ClassesClassesClasses | | | Operators

draw_circledraw_circledraw_circleDrawCircleDrawCircle (Operator)

Name

draw_circledraw_circledraw_circleDrawCircleDrawCircle — Interactive drawing of a circle.

Signature

draw_circle( : : WindowHandle : Row, Column, Radius)

Herror draw_circle(const Hlong WindowHandle, double* Row, double* Column, double* Radius)

Herror T_draw_circle(const Htuple WindowHandle, Htuple* Row, Htuple* Column, Htuple* Radius)

Herror draw_circle(const HTuple& WindowHandle, double* Row, double* Column, double* Radius)

double HWindow::DrawCircle(HTuple* Column, HTuple* Radius) const

void HOperatorSetX.DrawCircle(
[in] VARIANT WindowHandle, [out] VARIANT* Row, [out] VARIANT* Column, [out] VARIANT* Radius)

double HWindowX.DrawCircle(
[out] double* Column, [out] double* Radius)

static void HOperatorSet.DrawCircle(HTuple windowHandle, out HTuple row, out HTuple column, out HTuple radius)

void HWindow.DrawCircle(out double row, out double column, out double radius)

Description

draw_circledraw_circledraw_circleDrawCircleDrawCircle produces the parameter for a circle created interactive by the user in the window.

To create a circle you have to press the mouse button at the location which is used as the center of that circle. While keeping the mouse button pressed, the RadiusRadiusRadiusRadiusradius's length can be modified through moving the mouse. After another mouse click in the created circle center you can move it. A clicking close to the circular arc you can modify the RadiusRadiusRadiusRadiusradius of the circle. Pressing the right mousebutton terminates the procedure. After terminating the procedure the circle is not visible in the window any longer.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window identifier.

RowRowRowRowrow (output_control)  circle.center.y HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Barycenter's row index.

ColumnColumnColumnColumncolumn (output_control)  circle.center.x HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Barycenter's column index.

RadiusRadiusRadiusRadiusradius (output_control)  circle.radius HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Circle's radius.

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,GrayCircle)
disp_image(GrayCircle,WindowHandle)

Example (C)

read_image(&Image,"monkey") ;
draw_circle(WindowHandle,&Row,&Column,&Radius) ;
gen_circle(&Circle,Row,Column,Radius) ;
reduce_domain(Image,Circle,&GrayCircle) ;
disp_image(GrayCircle,WindowHandle) ;

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,GrayCircle)
disp_image(GrayCircle,WindowHandle)

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,GrayCircle)
disp_image(GrayCircle,WindowHandle)

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,GrayCircle)
disp_image(GrayCircle,WindowHandle)

Result

draw_circledraw_circledraw_circleDrawCircleDrawCircle returns 2 (H_MSG_TRUE) if the window is valid and the needed drawing mode (see set_insertset_insertset_insertSetInsertSetInsert) is available. If necessary, an exception is raised.

Possible Predecessors

open_windowopen_windowopen_windowOpenWindowOpenWindow

Possible Successors

reduce_domainreduce_domainreduce_domainReduceDomainReduceDomain, disp_regiondisp_regiondisp_regionDispRegionDispRegion, set_coloredset_coloredset_coloredSetColoredSetColored, set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth, set_drawset_drawset_drawSetDrawSetDraw, set_insertset_insertset_insertSetInsertSetInsert

Alternatives

draw_circle_moddraw_circle_moddraw_circle_modDrawCircleModDrawCircleMod, draw_ellipsedraw_ellipsedraw_ellipseDrawEllipseDrawEllipse, draw_regiondraw_regiondraw_regionDrawRegionDrawRegion

See also

gen_circlegen_circlegen_circleGenCircleGenCircle, draw_rectangle1draw_rectangle1draw_rectangle1DrawRectangle1DrawRectangle1, draw_rectangle2draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2, draw_polygondraw_polygondraw_polygonDrawPolygonDrawPolygon, set_insertset_insertset_insertSetInsertSetInsert

Module

Foundation


Table of Contents / Graphics / Drawing ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH