Ets_Shape_Arc_Create()
Note: Requires OPNET Development Kit
Abstract
Creates a new arc shape.
Syntax
Ets_Shape_Arc_Create (arc_box, angle1, angle2, line_width, line_style, line_color)
| Argument | Type | Description |
|---|---|---|
arc_box |
EtsT_Shape_Rect |
A rectangle defining an ellipse of which the desired arc is a segment. See Table 26 for details on the box coordinates. |
angle1 |
double |
The angle at which the arc begins, in degrees. |
angle2 |
double |
The angle at which the arc ends, in degrees. |
line_width |
int |
The width of the line, in pixels. |
line_style |
EtsT_Shape_Line_Style |
The style of the line, either EtsC_Shape_Line_Solid or EtsC_Shape_Line_None (invisible). |
line_color |
EtsT_Color |
The color of the line. See Shape Colors for details. |
Return Type
EtsT_Shape_Handle
A handle to the new shape.
Header
ets_api_shapeset.h
Details
Creates a new arc shape. The arc is a segment of an ellipse that fits within the rectangle specified by arc_box and delimited by angle1 and angle2, as shown in Figure 6.
Figure 6: Specifying an Arc Shape

In the preceding diagram, the arc specified by arc_box, angle1, and angle2 is indicated by the thick red line. Note that the angles are measured counterclockwise from 0°.