[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPCRA2 - Circular Arc 2

GPCRA2 (center, radius, startang, endang)

Purpose

Use GPCRA2 to insert a Circular Arc 2 structure element into the open structure following the element pointer or to replace the element pointed at by the element pointer with a Circular Arc 2 structure element depending on the current edit mode.

GPCRA2 draws the arc from the starting angle (startang) to the end angle (endang) through increasing angles. The x-axis, in Modeling Coordinates (MC), serves as the origin for the measurement of angles. All angles are specified in radians. Polyline attributes are applied to this primitive.

GPCRA2 is identified as GDP 1006.

Note:

Not all GDPs are supported on all workstations. Use the Inquire List of Generalized Drawing Primitives (GPQGD) subroutine to determine the GDPs supported by an opened workstation. See also the workstation description in The graPHIGS Programming Interface: Technical Reference

Parameters

center -- specified by user, 2 short floating-point numbers (MC)

Center of arc.

radius -- specified by user, short floating-point number (MC)

Radius of arc (>=0)

startang -- specified by user, short floating-point number

Start angle for creation of arc (specified in radians)

endang -- specified by user, short floating-point number

End angle for creation of arc (specified in radians)

Error Codes

5
FUNCTION REQUIRES STATE STOP OR NROP (NOT STCL)
582
RADIUS SPECIFIED < ZERO

Related Subroutines

GPLT
Set Linetype
GPLWSC
Set Linewidth Scale Factor
GPPLCD
Set Polyline Color Direct
GPPLCI
Set Polyline Color Index
GPPLET
Set Polyline End Type
GPPLI
Set Polyline Index

RCP code

201328147 (X'0C000613')


[ Previous | Next | Contents | Glossary | Home | Search ]