HALCON Reference Manual 10.0.2
Name
disp_circledisp_circledisp_circleDispCircleDispCircle — Displays circles in a window.
disp_circledisp_circledisp_circleDispCircleDispCircle displays one or several circles in the
output window. A circle is described by the center (RowRowRowRowrow,
ColumnColumnColumnColumncolumn) and the radius RadiusRadiusRadiusRadiusradius.
If the used coordinates are not within the window the circle is
clipped accordingly.
The operators used to control the display of regions
(e.g. set_drawset_drawset_drawSetDrawSetDraw, set_grayset_grayset_graySetGraySetGray, set_drawset_drawset_drawSetDrawSetDraw)
can also be used with circles. Several circles can be displayed with
one call by using tuple parameters. For the use of colors with
several circles, see set_colorset_colorset_colorSetColorSetColor.
The center of the circle must be within the window.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
- Processed without parallelization.
RowRowRowRowrow (input_control) circle.center.y(-array) → HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)
Row index of the center.
Default value: 64
Suggested values: 0, 64, 128, 256
Typical range of values: 0
≤
Row
Row
Row
Row
row
≤
511 (lin)
Minimum increment: 1
Recommended increment: 1
ColumnColumnColumnColumncolumn (input_control) circle.center.x(-array) → HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)
Column index of the center.
Default value: 64
Suggested values: 0, 64, 128, 256
Typical range of values: 0
≤
Column
Column
Column
Column
column
≤
511 (lin)
Minimum increment: 1
Recommended increment: 1
RadiusRadiusRadiusRadiusradius (input_control) circle.radius(-array) → HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)
Radius of the circle.
Default value: 64
Suggested values: 0, 64, 128, 256
Typical range of values: 0
≤
Radius
Radius
Radius
Radius
radius
≤
511 (lin)
Minimum increment: 1
Recommended increment: 1
Restriction: Radius > 0.0
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button = 1)
close_window(WindowHandle)
open_window(0,0,-1,-1,"root","visible","",&WindowHandle) ;
set_draw(WindowHandle,"fill") ;
set_color(WindowHandle,"white") ;
get_mbutton(WindowHandle,&Row,&Column,&Button) ;
disp_circle(WindowHandle,Row,Column,(Row + Column) mod 50) ;
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button = 1)
close_window(WindowHandle)
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button = 1)
close_window(WindowHandle)
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_draw(WindowHandle,'fill')
set_color(WindowHandle,'white')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
disp_circle(WindowHandle,Row,Column,(Row + Column) % 50)
until(Button = 1)
close_window(WindowHandle)
disp_circledisp_circledisp_circleDispCircleDispCircle returns 2 (H_MSG_TRUE).
open_windowopen_windowopen_windowOpenWindowOpenWindow,
set_drawset_drawset_drawSetDrawSetDraw,
set_colorset_colorset_colorSetColorSetColor,
set_coloredset_coloredset_coloredSetColoredSetColored,
set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth,
set_rgbset_rgbset_rgbSetRgbSetRgb,
set_hsiset_hsiset_hsiSetHsiSetHsi
disp_ellipsedisp_ellipsedisp_ellipseDispEllipseDispEllipse,
disp_regiondisp_regiondisp_regionDispRegionDispRegion,
gen_circlegen_circlegen_circleGenCircleGenCircle,
gen_ellipsegen_ellipsegen_ellipseGenEllipseGenEllipse
open_windowopen_windowopen_windowOpenWindowOpenWindow,
open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow,
set_colorset_colorset_colorSetColorSetColor,
set_drawset_drawset_drawSetDrawSetDraw,
set_rgbset_rgbset_rgbSetRgbSetRgb,
set_hsiset_hsiset_hsiSetHsiSetHsi
Foundation
| HALCON Reference Manual 10.0.2 |
Copyright © 1996-2011 MVTec Software GmbH |