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

GPDPL3 - Disjoint Polyline 3

GPDPL3 (npoint, width, pointlist, mdarray)

Purpose

Use GPDPL3 to create a three-dimensional, disjoint polyline element and insert it into the open structure following the element pointer or to replace the element pointed at by the element pointer with a three-dimensional, disjoint polyline element depending on the current edit mode.

This structure element defines multiple three-dimensional polylines. Each polyline consists of three-dimensional points (x, y, z) in Modelling Coordinate (MC) space that the graPHIGS API connects by straight lines starting with the first point in the list and ending with the last point in the list.

If the application specifies less than two points, then the graPHIGS API does not generate any output for that list. If the application specifies two contiguous points as the same point, then the graPHIGS API generates a point of one pixel in size.

The move/draw indicators (mdarray) specify the action required to go from one corresponding point to the next; that is, whether to draw or move to the next point.

Polyline attributes are applied to this primitive.

GPDPL3 is identified as GDP 1003.

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

npoint -- specified by user, fullword integer

Number of points (>=0)

width -- specified by user, fullword integer

Number of fullwords between subsequent x values (>=3)

pointlist -- specified by user, array of short floating-point numbers (MC)

Array of points specified in row order. The input array contains a list of points in which subsequent x values are separated by width fullwords.

mdarray -- specified by user, array of fullword integers

Move/draw indicators (1=MOVE, 2=DRAW ) The last entry of this array is disregarded.

Error Codes

5
FUNCTION REQUIRES STATE STOP OR NROP (NOT STCL)
100
NUMBER OF POINTS < ZERO
555
MOVE/DRAW INDICATOR IS INVALID
557
WIDTH PARAMETER < MINIMUM ALLOWED

Related Subroutines

GPPLD3
Polyline Set 3 With Data
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

201328144 (X'0C000610')


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