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



Use Request Stroke 3 to have the graPHIGS API execute a request to the specified stroke device.

A status of NONE means that a break action occurred. Otherwise, the graPHIGS API returns a status of OK together with a sequence of World Coordinate (WC) points and the view table index which has a matrix that the graPHIGS API used to convert the stroke locations from Device Coordinates (DC) to World Coordinates. The graPHIGS API sets these values according to the current measure of the stroke device.

This subroutine returns the stroke input from the view with the highest input priority that contains all the points. View zero is the highest priority view unless modified by your application.

Language Bindings


preq_stroke3 (ws_id, stroke_num, in_status, view_ind, stroke)

Input Parameters

Pint ws_id
Workstation identifier.

Pint stroke_num
Stroke device number (>=1).

Output Parameters

Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK).

Pint *view_ind
View index.

Ppoint_list3 *stroke
Requested stroke point list. The application must allocate the memory for the point list returned. The Initialize Stroke 3 subroutine specifies the maximum size of the returned stroke point list. The Inquire Default Stroke Device Data subroutine returns the maximum size of a stroke point list supported by the workstation.


PRQSK3 (wkid, skdnr, n, stat, viewi, np, pxa, pya, pza)

Input Parameters

integer wkid
Workstation identifier.

integer skdnr
Stroke device number (>=1).

integer n
Dimension of arrays for stroke points.

Output Parameters

integer stat
Input status (0=PNONE, 1=POK).

integer viewi
View index (>=0).

integer np
Number of points.

real pxa (n)
x coordinates of points in the stroke in WC.

real pya (n)
y coordinates of points in the stroke in WC.

real pza (n)
z coordinates of points in the stroke in WC.


Function Requires State (PHOP,WSOP,*,*)
Specified Workstation Is Not Open
Specified Workstation Is Not Of Category Input Or Outin
Specified Device Not Available On Workstation
Function Requires Input Device To Be In Request Mode

Related Subroutines

  • Initialize Stroke 3

  • Inquire Number Of Available Logical Input Devices

  • Set Stroke Mode

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