Ets_Shape_Arc_Info_Get()
注意: 需要 OPNET Development Kit
摘要
获取圆弧的形状属性。
语法
Ets_Shape_Arc_Info_Get (arc_shape_hndl, arc_box, angle1, angel2, line_width, line_style, line_color)
| 参数 | 类型 | 说明 |
|---|---|---|
arc_shape_hndl |
EtsT_Shape_Handle |
目标圆弧形状的句柄。 |
arc_box |
EtsT_Shape_Rect * |
定义一个椭圆的矩形,目标圆弧是该椭圆的一段。 |
angle1 |
double * |
圆弧起始的角度,单位为度。 |
angle2 |
double * |
圆弧终止的角度,单位为度。 |
line_width |
int * |
线的宽度,单位为像素。 |
line_style |
EtsT_Shape_Line_Style * |
线的样式,取 EtsC_Shape_Line_Solid 或 EtsC_Shape_Line_None(不可见)。 |
line_color |
EtsT_Color * |
线的颜色。详见 Shape Colors。 |
返回类型
EtsT_Compcode
EtsC_Compcode_Success;若传入的形状句柄不是圆弧,则为 EtsC_Compcode_Failure。
头文件
ets_api_shapeset.h
详情
关于该形状各参数的详细说明,见 Ets_Shape_Arc_Create()。