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

GPELT - Set Edge Linetype

GPELT (edgelt)

Purpose

Use GPELT to insert a Set Edge Linetype element into the open structure following the element pointer or to replace the element pointed at by the element pointer with a Set Edge Linetype element depending on the current edit mode.

This structure element specifies an index into a workstation line type table that contains line types. The graPHIGS API uses this index to render the edges of all subsequent output primitives if the corresponding edge flag is set to 2=ON At structure traversal time, the graPHIGS API uses this line type to render the edges of output primitives when the line type of an edge aspect source flag is set to 2=INDIVIDUAL

The traversal default for edge line type is 1=SOLID_LINE

If the workstation does not support the specified index, then the edge index defaults to 1=SOLID_LINE

Parameters

edgelt -- specified by user, fullword integer

Specifies an index into the workstation's edge line type table. The table size and specific entries supported are workstation dependent. Use the Inquire Edge Facilities (GPQEF) subroutine to determine the supported edge line types on your workstation. The default edge line type table for supported entries is defined with the following line types: (1=SOLID_LINE, 2=DASHED, 3=DOTTED, 4=DASH_DOT, 5=LONG_DASH, 6=DOUBLE_DOT, 7=DASH_DOUBLE_DOT, 8-n=SOLID_LINE ) Any entry may be changed by the Set Linetype Representation (GPLTR) subroutine except entry 1.

Error Codes

5
FUNCTION REQUIRES STATE STOP OR NROP (NOT STCL)
63
LINETYPE VALUE < ONE

Related Subroutines

GPASF
Attribute Source Flag Setting
GPLTR
Set Linetype Representation
GPQER
Inquire Edge Representation
GPQLTR
Inquire Linetype Representation
GPQPER
Inquire Predefined Edge Representation
GPQXER
Inquire Extended Edge Representation
GPXER
Set Extended Edge Representation

RCP code

201328901 (X'0C000905')


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