HALCON Reference Manual 10.0.2
Name
disp_rectangle1disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1 — Display of rectangles aligned to the coordinate axes.
static void HOperatorSet.DispRectangle1(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2)
void HWindow.DispRectangle1(HTuple row1, HTuple column1, HTuple row2, HTuple column2)
void HWindow.DispRectangle1(double row1, double column1, double row2, double column2)
disp_rectangle1disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1 displays one or several rectangles in the
output window. A rectangle is described by the upper left corner
(Row1Row1Row1Row1row1,Column1Column1Column1Column1column1) and the lower right corner
(Row2Row2Row2Row2row2,Column2Column2Column2Column2column2). If the given coordinates are not
within the boundary of the window the rectangle is clipped accordingly.
The operators used to control the display of regions
(e.g. set_colorset_colorset_colorSetColorSetColor, set_grayset_grayset_graySetGraySetGray, set_drawset_drawset_drawSetDrawSetDraw,
set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth) can also be used with rectangles. Several
rectangles can be displayed with one call by using tuple parameters.
- 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.
Row1Row1Row1Row1row1 (input_control) rectangle.origin.y(-array) → HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)
Row index of the upper left corner.
Default value: 16
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
Row1
Row1
Row1
Row1
row1
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
Column index of the upper left corner.
Default value: 16
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
Column1
Column1
Column1
Column1
column1
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
Row2Row2Row2Row2row2 (input_control) rectangle.corner.y(-array) → HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)
Row index of the lower right corner.
Default value: 48
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
Row2
Row2
Row2
Row2
row2
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
Restriction: Row2 >= Row1
Column index of the lower right corner.
Default value: 80
Suggested values: 0, 64, 128, 256, 511
Typical range of values: 0
≤
Column2
Column2
Column2
Column2
column2
≤
511 (lin)
Minimum increment: 1
Recommended increment: 10
Restriction: Column2 >= Column1
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
smallest_rectangle1(MyRegion,R1,C1,R2,C2)
disp_rectangle1(WindowHandle,R1,C1,R2,C2)
set_color(WindowHandle,"green") ;
draw_region(&MyRegion,WindowHandle) ;
smallest_rectangle1(MyRegion,&R1,&C1,&R2,&C2) ;
disp_rectangle1(WindowHandle,R1,C1,R2,C2) ;
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
smallest_rectangle1(MyRegion,R1,C1,R2,C2)
disp_rectangle1(WindowHandle,R1,C1,R2,C2)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
smallest_rectangle1(MyRegion,R1,C1,R2,C2)
disp_rectangle1(WindowHandle,R1,C1,R2,C2)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
smallest_rectangle1(MyRegion,R1,C1,R2,C2)
disp_rectangle1(WindowHandle,R1,C1,R2,C2)
disp_rectangle1disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1 returns 2 (H_MSG_TRUE).
open_windowopen_windowopen_windowOpenWindowOpenWindow,
set_rgbset_rgbset_rgbSetRgbSetRgb,
set_lutset_lutset_lutSetLutSetLut,
set_hsiset_hsiset_hsiSetHsiSetHsi,
set_drawset_drawset_drawSetDrawSetDraw,
set_colorset_colorset_colorSetColorSetColor,
set_coloredset_coloredset_coloredSetColoredSetColored,
set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth
disp_rectangle2disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2,
gen_rectangle1gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1,
disp_regiondisp_regiondisp_regionDispRegionDispRegion,
disp_linedisp_linedisp_lineDispLineDispLine,
set_shapeset_shapeset_shapeSetShapeSetShape
open_windowopen_windowopen_windowOpenWindowOpenWindow,
open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow,
set_colorset_colorset_colorSetColorSetColor,
set_drawset_drawset_drawSetDrawSetDraw,
set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth
Foundation
| HALCON Reference Manual 10.0.2 |
Copyright © 1996-2011 MVTec Software GmbH |