disp_regionT_disp_regionDispRegionDispRegiondisp_region (算子)
名称
disp_regionT_disp_regionDispRegionDispRegiondisp_region — 在窗口中显示区域。
签名
描述
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region displays the regions in DispRegionsDispRegionsDispRegionsDispRegionsdispRegionsdisp_regions
in the output window. The parameters for output can be set
with the operators set_colorset_colorSetColorSetColorSetColorset_color, set_grayset_graySetGraySetGraySetGrayset_gray,
set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width, etc.
The color(s) for the display of the regions are determined with
set_colorset_colorSetColorSetColorSetColorset_color, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_grayset_graySetGraySetGraySetGrayset_gray or
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored。If more than one region is displayed and more than
one color is set, the colors are assigned in a cyclic way to the
regions.
The form of the region for output can be modified by set_paintset_paintSetPaintSetPaintSetPaintset_paint
(e.g., encompassing circle, convex hull). The command set_drawset_drawSetDrawSetDrawSetDrawset_draw
determines if the region is filled or only the boundary is drawn. If only
the boundary is drawn, the thickness of the boundary will be determined by
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width and the style by set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
DispRegionsDispRegionsDispRegionsDispRegionsdispRegionsdisp_regions (输入对象) region(-array) → objectHRegionHObjectHRegionHobject
Regions to display.
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
示例(HDevelop)
* Output with 12 colors:
set_colored(WindowHandle,12)
disp_region(SomeSegments,WindowHandle)
* Symbolic representation:
set_draw(WindowHandle,'margin')
set_color(WindowHandle,'red')
set_shape(WindowHandle,'ellipse')
disp_region(SomeSegments,WindowHandle)
* Representation of a margin with pattern:
set_draw(WindowHandle,'margin')
set_color(WindowHandle,'blue')
set_line_style(WindowHandle,[12,3])
disp_region(Segments,WindowHandle)
结果
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region 返回 2 ( H_MSG_TRUE )。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_lutset_lutSetLutSetLutSetLutset_lut,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
set_shapeset_shapeSetShapeSetShapeSetShapeset_shape,
set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style,
set_insertset_insertSetInsertSetInsertSetInsertset_insert,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_colorset_colorSetColorSetColorSetColorset_color,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width
替代
disp_objdisp_objDispObjDispObjDispObjdisp_obj,
disp_arrowdisp_arrowDispArrowDispArrowDispArrowdisp_arrow,
disp_linedisp_lineDispLineDispLineDispLinedisp_line,
disp_circledisp_circleDispCircleDispCircleDispCircledisp_circle,
disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1,
disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2,
disp_ellipsedisp_ellipseDispEllipseDispEllipseDispEllipsedisp_ellipse
另见
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_colorset_colorSetColorSetColorSetColorset_color,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_shapeset_shapeSetShapeSetShapeSetShapeset_shape,
set_paintset_paintSetPaintSetPaintSetPaintset_paint,
set_grayset_graySetGraySetGraySetGrayset_gray,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style,
set_insertset_insertSetInsertSetInsertSetInsertset_insert,
paint_regionpaint_regionPaintRegionPaintRegionPaintRegionpaint_region,
dump_windowdump_windowDumpWindowDumpWindowDumpWindowdump_window
模块
基础