disp_polygonT_disp_polygonDispPolygonDispPolygondisp_polygon (算子)

名称

disp_polygonT_disp_polygonDispPolygonDispPolygondisp_polygon — 显示多段线。

签名

disp_polygon( : : WindowHandle, Row, Column : )

Herror T_disp_polygon(const Htuple WindowHandle, const Htuple Row, const Htuple Column)

void DispPolygon(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)

void HWindow::DispPolygon(const HTuple& Row, const HTuple& Column) const

static void HOperatorSet.DispPolygon(HTuple windowHandle, HTuple row, HTuple column)

void HWindow.DispPolygon(HTuple row, HTuple column)

def disp_polygon(window_handle: HHandle, row: Sequence[Union[int, float]], column: Sequence[Union[int, float]]) -> None

描述

disp_polygondisp_polygonDispPolygonDispPolygonDispPolygondisp_polygon displays a polyline with the row coordinates RowRowRowRowrowrow and the column coordinates ColumnColumnColumnColumncolumncolumn in the output window. The parameters RowRowRowRowrowrow and ColumnColumnColumnColumncolumncolumn have to be provided as tuples. Straight lines are drawn between the given points. The start and the end of the polyline are not connected.

The operators used to control the display of regions (e.g., set_colorset_colorSetColorSetColorSetColorset_color, set_grayset_graySetGraySetGraySetGrayset_gray, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width) can also be used with polylines.

注意

The given coordinates must lie within the window.

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

RowRowRowRowrowrow (输入控制)  polygon.y-array HTupleSequence[Union[int, float]]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)

Row index

默认值: [16,80,80]

建议值: 0, 64, 128, 256, 511

值范围: 0 ≤ Row Row Row Row row row ≤ 511 (lin)

最小增量: 1

建议增量: 10

ColumnColumnColumnColumncolumncolumn (输入控制)  polygon.x-array HTupleSequence[Union[int, float]]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)

Column index

默认值: [48,16,80]

建议值: 0, 64, 128, 256, 511

值范围: 0 ≤ Column Column Column Column column column ≤ 511 (lin)

最小增量: 1

建议增量: 10

示例(C)

/* display a rectangle */

disp_rectangle1_margin1(Htuple WindowHandle,
                        Hlong Row1, long Column1,
                        Hlong Row2, long Column2)
{
  Htuple Row, Col;
  create_tuple(&Row,4);
  create_tuple(&Col,4);

  set_i(Row,Row1,0);
  set_i(Col,Column1,0);

  set_i(Row,Row1,1);
  set_i(Col,Column2,1);

  set_i(Row,Row2,2);
  set_i(Col,Column2,2);

  set_i(Row,Row2,3);
  set_i(Col,Column1,3);

  set_i(Row,Row1,4);
  set_i(Col,Column1,4);

  T_disp_polygon(WindowHandle,Row,Col);

}
  

结果

disp_polygondisp_polygonDispPolygonDispPolygonDispPolygondisp_polygon 返回 2 ( H_MSG_TRUE )。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_lutset_lutSetLutSetLutSetLutset_lut, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width

替代

disp_linedisp_lineDispLineDispLineDispLinedisp_line, gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygongen_region_polygon, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

另见

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_colorset_colorSetColorSetColorSetColorset_color, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi, set_insertset_insertSetInsertSetInsertSetInsertset_insert, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width

模块

基础