ClassesClassesClassesClasses | | | | Operators

disp_polygonT_disp_polygonDispPolygondisp_polygonDispPolygonDispPolygon (Operator)

Name

disp_polygonT_disp_polygonDispPolygondisp_polygonDispPolygonDispPolygon — Displays a polyline.

Signature

disp_polygon( : : WindowHandle, Row, Column : )

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

Herror disp_polygon(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)

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

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

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

void HOperatorSetX.DispPolygon(
[in] VARIANT WindowHandle, [in] VARIANT Row, [in] VARIANT Column)

void HWindowX.DispPolygon(
[in] VARIANT Row, [in] VARIANT Column)

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

void HWindow.DispPolygon(HTuple row, HTuple column)

Description

disp_polygondisp_polygonDispPolygondisp_polygonDispPolygonDispPolygon 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_colorSetColorset_colorSetColorSetColor, set_grayset_graySetGrayset_graySetGraySetGray, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth) can also be used with polylines.

Attention

The given coordinates must lie within the window.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window identifier.

RowRowRowRowRowrow (input_control)  polygon.y-array HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Row index

Default value: [16,80,80]

Suggested values: 0, 64, 128, 256, 511

Typical range of values: 0 ≤ Row Row Row Row Row row ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

ColumnColumnColumnColumnColumncolumn (input_control)  polygon.x-array HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Column index

Default value: [48,16,80]

Suggested values: 0, 64, 128, 256, 511

Typical range of values: 0 ≤ Column Column Column Column Column column ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

Example (C)

/* display a rectangle */

disp_rectangle1_margin1(Hlong 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) ;

}
  

Result

disp_polygondisp_polygonDispPolygondisp_polygonDispPolygonDispPolygon returns 2 (H_MSG_TRUE).

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_lutset_lutSetLutset_lutSetLutSetLut, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_colorset_colorSetColorset_colorSetColorSetColor, set_coloredset_coloredSetColoredset_coloredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth

Alternatives

disp_linedisp_lineDispLinedisp_lineDispLineDispLine, gen_region_polygongen_region_polygonGenRegionPolygongen_region_polygonGenRegionPolygonGenRegionPolygon, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion

See also

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow, set_colorset_colorSetColorset_colorSetColorSetColor, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi, set_insertset_insertSetInsertset_insertSetInsertSetInsert, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth

Module

Foundation


ClassesClassesClassesClasses | | | | Operators