disp_arrowT_disp_arrowDispArrowDispArrowdisp_arrow (算子)
名称
disp_arrowT_disp_arrowDispArrowDispArrowdisp_arrow — 在窗口中显示箭头。
签名
void DispArrow(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& Size)
void HWindow::DispArrow(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& Size) const
void HWindow::DispArrow(double Row1, double Column1, double Row2, double Column2, double Size) const
static void HOperatorSet.DispArrow(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple size)
void HWindow.DispArrow(HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple size)
void HWindow.DispArrow(double row1, double column1, double row2, double column2, double size)
def disp_arrow(window_handle: HHandle, row_1: MaybeSequence[Union[int, float]], column_1: MaybeSequence[Union[int, float]], row_2: MaybeSequence[Union[int, float]], column_2: MaybeSequence[Union[int, float]], size: Union[int, float]) -> None
描述
disp_arrowdisp_arrowDispArrowDispArrowDispArrowdisp_arrow displays one or several arrows in the output
window. An arrow is described by the coordinates of the start
(Row1Row1Row1Row1row1row_1,Column1Column1Column1Column1column1column_1) and the end
(Row2Row2Row2Row2row2row_2,Column2Column2Column2Column2column2column_2). An arrowhead is displayed at the end
of the arrow. The size of the arrowhead is specified by the parameter
SizeSizeSizeSizesizesize. If the arrow consists of just one point (start = end)
nothing is displayed. The operators used to control the display of regions
(e.g., set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorSetColorset_color,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width) can also be used with arrows. Several arrows
can be displayed with one call by using tuple parameters. For the use of
colors with several arcs, see set_colorset_colorSetColorSetColorSetColorset_color。
注意
The start and the end of the arrows must fall within the window.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
Row1Row1Row1Row1row1row_1 (输入控制) line.begin.y(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row index of the start.
默认值:
10.0
建议值:
0.0, 64.0, 128.0, 256.0
值范围:
0.0
≤
Row1
Row1
Row1
Row1
row1
row_1
≤
511.0 (lin)
最小增量:
1.0
建议增量:
1.0
Column1Column1Column1Column1column1column_1 (输入控制) line.begin.x(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column index of the start.
默认值:
10.0
建议值:
0.0, 64.0, 128.0, 256.0
值范围:
0.0
≤
Column1
Column1
Column1
Column1
column1
column_1
≤
511.0 (lin)
最小增量:
1.0
建议增量:
1.0
Row2Row2Row2Row2row2row_2 (输入控制) line.end.y(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row index of the end.
默认值:
118.0
建议值:
0.0, 64.0, 128.0, 256.0
值范围:
0.0
≤
Row2
Row2
Row2
Row2
row2
row_2
≤
511.0 (lin)
最小增量:
1.0
建议增量:
1.0
Column2Column2Column2Column2column2column_2 (输入控制) line.end.x(-array) → HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column index of the end.
默认值:
118.0
建议值:
0.0, 64.0, 128.0, 256.0
值范围:
0.0
≤
Column2
Column2
Column2
Column2
column2
column_2
≤
511.0 (lin)
最小增量:
1.0
建议增量:
1.0
SizeSizeSizeSizesizesize (输入控制) number → HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Size of the arrowhead.
默认值:
1.0
建议值:
1.0, 2.0, 3.0, 5.0
值范围:
0.0
≤
Size
Size
Size
Size
size
size
≤
20.0 (lin)
最小增量:
1.0
建议增量:
1.0
限制:
Size > 0.0
示例(HDevelop)
set_color(WindowHandle,['red','green'])
disp_arrow(WindowHandle,[10,10],[10,10],[118,110],[118,118],1.0)
结果
disp_arrowdisp_arrowDispArrowDispArrowDispArrowdisp_arrow 返回 2 ( H_MSG_TRUE )。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_colorset_colorSetColorSetColorSetColorset_color,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi
替代
disp_linedisp_lineDispLineDispLineDispLinedisp_line,
gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygongen_region_polygon,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region
另见
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_colorset_colorSetColorSetColorSetColorset_color,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width
模块
基础