gen_circle_contour_xldgen_circle_contour_xldGenCircleContourXldGenCircleContourXldgen_circle_contour_xld (算子)

名称

gen_circle_contour_xldgen_circle_contour_xldGenCircleContourXldGenCircleContourXldgen_circle_contour_xld — 创建与圆或圆弧对应的 XLD 轮廓。

签名

gen_circle_contour_xld( : ContCircle : Row, Column, Radius, StartPhi, EndPhi, PointOrder, Resolution : )

Herror gen_circle_contour_xld(Hobject* ContCircle, double Row, double Column, double Radius, double StartPhi, double EndPhi, const char* PointOrder, double Resolution)

Herror T_gen_circle_contour_xld(Hobject* ContCircle, const Htuple Row, const Htuple Column, const Htuple Radius, const Htuple StartPhi, const Htuple EndPhi, const Htuple PointOrder, const Htuple Resolution)

void GenCircleContourXld(HObject* ContCircle, const HTuple& Row, const HTuple& Column, const HTuple& Radius, const HTuple& StartPhi, const HTuple& EndPhi, const HTuple& PointOrder, const HTuple& Resolution)

void HXLDCont::GenCircleContourXld(const HTuple& Row, const HTuple& Column, const HTuple& Radius, const HTuple& StartPhi, const HTuple& EndPhi, const HTuple& PointOrder, double Resolution)

void HXLDCont::GenCircleContourXld(double Row, double Column, double Radius, double StartPhi, double EndPhi, const HString& PointOrder, double Resolution)

void HXLDCont::GenCircleContourXld(double Row, double Column, double Radius, double StartPhi, double EndPhi, const char* PointOrder, double Resolution)

void HXLDCont::GenCircleContourXld(double Row, double Column, double Radius, double StartPhi, double EndPhi, const wchar_t* PointOrder, double Resolution)   ( Windows only)

static void HOperatorSet.GenCircleContourXld(out HObject contCircle, HTuple row, HTuple column, HTuple radius, HTuple startPhi, HTuple endPhi, HTuple pointOrder, HTuple resolution)

void HXLDCont.GenCircleContourXld(HTuple row, HTuple column, HTuple radius, HTuple startPhi, HTuple endPhi, HTuple pointOrder, double resolution)

void HXLDCont.GenCircleContourXld(double row, double column, double radius, double startPhi, double endPhi, string pointOrder, double resolution)

def gen_circle_contour_xld(row: MaybeSequence[float], column: MaybeSequence[float], radius: MaybeSequence[float], start_phi: MaybeSequence[float], end_phi: MaybeSequence[float], point_order: MaybeSequence[str], resolution: float) -> HObject

描述

gen_circle_contour_xldgen_circle_contour_xldGenCircleContourXldGenCircleContourXldGenCircleContourXldgen_circle_contour_xld creates one or more circular arcs or closed circles. Circles are specified by their center (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn) and their RadiusRadiusRadiusRadiusradiusradius. In addition to that, circular arcs are characterized by the angle of the start point StartPhiStartPhiStartPhiStartPhistartPhistart_phi, the angle of the end point EndPhiEndPhiEndPhiEndPhiendPhiend_phi, and the PointOrderPointOrderPointOrderPointOrderpointOrderpoint_order along the boundary. The resolution of the resulting contours ContCircleContCircleContCircleContCirclecontCirclecont_circle is controlled via ResolutionResolutionResolutionResolutionresolutionresolution containing the Euclidean distance in pixel between neighboring contour points. In general, the distance between the second to last and the last point is smaller than ResolutionResolutionResolutionResolutionresolutionresolution

执行信息

参数

ContCircleContCircleContCircleContCirclecontCirclecont_circle (输出对象)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject *

Resulting contours.

RowRowRowRowrowrow (输入控制)  circle.center.y(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Row coordinate of the center of the circles or circular arcs.

默认值: 200.0

ColumnColumnColumnColumncolumncolumn (输入控制)  circle.center.x(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Column coordinate of the center of the circles or circular arcs.

默认值: 200.0

RadiusRadiusRadiusRadiusradiusradius (输入控制)  circle.radius(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Radius of the circles or circular arcs.

默认值: 100.0

限制: Radius > 0

StartPhiStartPhiStartPhiStartPhistartPhistart_phi (输入控制)  angle.rad(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Angle of the start points of the circles or circular arcs [rad].

默认值: 0.0

EndPhiEndPhiEndPhiEndPhiendPhiend_phi (输入控制)  angle.rad(-array) HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)

Angle of the end points of the circles or circular arcs [rad].

默认值: 6.28318

PointOrderPointOrderPointOrderPointOrderpointOrderpoint_order (输入控制)  string(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Point order along the circles or circular arcs.

默认值: 'positive' "positive" "positive" "positive" "positive" "positive"

值列表: 'negative'"negative""negative""negative""negative""negative", 'positive'"positive""positive""positive""positive""positive"

ResolutionResolutionResolutionResolutionresolutionresolution (输入控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Distance between neighboring contour points.

默认值: 1.0

限制: Resolution >= 0.00001

示例(HDevelop)

draw_circle (WindowHandle, Row, Column, Radius)
gen_circle_contour_xld (ContCircle, Row, Column, Radius, 0, \
                        rad(360) , 'positive', 1.0)
gen_region_contour_xld (ContCircle, Region, 'filled')

结果

gen_circle_contour_xldgen_circle_contour_xldGenCircleContourXldGenCircleContourXldGenCircleContourXldgen_circle_contour_xld returns 2 ( H_MSG_TRUE) if all parameter values are correct。如有必要,则抛出异常。

可能的前趋

draw_circledraw_circleDrawCircleDrawCircleDrawCircledraw_circle

可能的后继

disp_xlddisp_xldDispXldDispXldDispXlddisp_xld

替代

gen_ellipse_contour_xldgen_ellipse_contour_xldGenEllipseContourXldGenEllipseContourXldGenEllipseContourXldgen_ellipse_contour_xld

模块

基础