disp_ellipseT_disp_ellipseDispEllipseDispEllipsedisp_ellipse (算子)

名称

disp_ellipseT_disp_ellipseDispEllipseDispEllipsedisp_ellipse — 显示椭圆。

签名

disp_ellipse( : : WindowHandle, CenterRow, CenterCol, Phi, Radius1, Radius2 : )

Herror T_disp_ellipse(const Htuple WindowHandle, const Htuple CenterRow, const Htuple CenterCol, const Htuple Phi, const Htuple Radius1, const Htuple Radius2)

void DispEllipse(const HTuple& WindowHandle, const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Radius1, const HTuple& Radius2)

void HWindow::DispEllipse(const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Radius1, const HTuple& Radius2) const

void HWindow::DispEllipse(Hlong CenterRow, Hlong CenterCol, double Phi, double Radius1, double Radius2) const

static void HOperatorSet.DispEllipse(HTuple windowHandle, HTuple centerRow, HTuple centerCol, HTuple phi, HTuple radius1, HTuple radius2)

void HWindow.DispEllipse(HTuple centerRow, HTuple centerCol, HTuple phi, HTuple radius1, HTuple radius2)

void HWindow.DispEllipse(int centerRow, int centerCol, double phi, double radius1, double radius2)

def disp_ellipse(window_handle: HHandle, center_row: MaybeSequence[int], center_col: MaybeSequence[int], phi: MaybeSequence[Union[int, float]], radius_1: MaybeSequence[Union[int, float]], radius_2: MaybeSequence[Union[int, float]]) -> None

描述

disp_ellipsedisp_ellipseDispEllipseDispEllipseDispEllipsedisp_ellipse displays one or several ellipses in the output window. An ellipse is described by the center (CenterRowCenterRowCenterRowCenterRowcenterRowcenter_row, CenterColCenterColCenterColCenterColcenterColcenter_col), the orientation PhiPhiPhiPhiphiphi (in radians) and the radii of the major and the minor axis (Radius1Radius1Radius1Radius1radius1radius_1 and Radius2Radius2Radius2Radius2radius2radius_2).

The operators used to control the display of regions (e.g., set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_grayset_graySetGraySetGraySetGrayset_gray, set_drawset_drawSetDrawSetDrawSetDrawset_draw) can also be used with ellipses. Several ellipses can be displayed with one call by using tuple parameters. For the use of colors with several ellipses, see set_colorset_colorSetColorSetColorSetColorset_color

注意

The center of the ellipse must be within the window.

执行信息

参数

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

窗口句柄。

CenterRowCenterRowCenterRowCenterRowcenterRowcenter_row (输入控制)  ellipse.center.y(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row index of center.

默认值: 64

建议值: 0, 64, 128, 256

值范围: 0 ≤ CenterRow CenterRow CenterRow CenterRow centerRow center_row ≤ 511 (lin)

最小增量: 1

建议增量: 10

CenterColCenterColCenterColCenterColcenterColcenter_col (输入控制)  ellipse.center.x(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of center.

默认值: 64

建议值: 0, 64, 128, 256

值范围: 0 ≤ CenterCol CenterCol CenterCol CenterCol centerCol center_col ≤ 511 (lin)

最小增量: 1

建议增量: 10

PhiPhiPhiPhiphiphi (输入控制)  ellipse.angle.rad(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Orientation of the ellipse in radians

默认值: 0.0

建议值: 0.0, 0.785398, 1.570796, 3.1415926, 6.283185

值范围: 0.0 ≤ Phi Phi Phi Phi phi phi ≤ 6.283185 (lin)

最小增量: 0.01

建议增量: 0.1

Radius1Radius1Radius1Radius1radius1radius_1 (输入控制)  ellipse.radius1(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Radius of major axis.

默认值: 24.0

建议值: 0.0, 64.0, 128.0, 256.0

值范围: 0.0 ≤ Radius1 Radius1 Radius1 Radius1 radius1 radius_1 ≤ 511.0 (lin)

最小增量: 1.0

建议增量: 10.0

Radius2Radius2Radius2Radius2radius2radius_2 (输入控制)  ellipse.radius2(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Radius of minor axis.

默认值: 14.0

建议值: 0.0, 64.0, 128.0, 256.0

值范围: 0.0 ≤ Radius2 Radius2 Radius2 Radius2 radius2 radius_2 ≤ 511.0 (lin)

最小增量: 1.0

建议增量: 10.0

示例(HDevelop)

set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)

示例(C)

set_color(WindowHandle,"red");
T_draw_region(&MyRegion,WindowHandle);
elliptic_axis(MyRegion,&Ra,&Rb,&Phi);
area_center(MyRegion,NULL,&Row,&Column);
T_disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb);

示例(HDevelop)

set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)

示例(HDevelop)

set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)

示例(HDevelop)

set_color(WindowHandle,'red')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_ellipse(WindowHandle,Row,Column,Phi,Ra,Rb)

结果

disp_ellipsedisp_ellipseDispEllipseDispEllipseDispEllipsedisp_ellipse 返回 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, elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxiselliptic_axis, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center

替代

disp_circledisp_circleDispCircleDispCircleDispCircledisp_circle, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipsegen_ellipse, gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle

另见

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_colorset_colorSetColorSetColorSetColorset_color, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width

模块

基础