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

INQUIRE STROKE DEVICE STATE 3 (PHOP,WSOP,*,*)

Purpose

Use Inquire Stroke Device State 3 to inquire the current state of the specified stroke device on the specified workstation. Returned values of type SET or REALIZED may be specified.

The graPHIGS API returns the current values for the specified device.

If the information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the information is unavailable, then the values returned in the output parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:

3
Function Requires State (PHOP,WSOP,*,*)
54
Specified Workstation Is Not Open
61
Specified Workstation Is Not Of Category Input Or Outin
250
Specified Device Not Available On Workstation

Language Bindings

C

pinq_stroke_st3 (ws_id, stroke_num, type, store, err_ind, op_mode, echo_switch, init_view_ind, init_stroke, prompt_echo, echo_vol, stroke_data)

Input Parameters

Pint ws_id
Workstation identifier.

Pint stroke_num
Stroke device number (>=1).

Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).

Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*)) subroutine for details on how the graPHIGS API uses this parameter on inquiries.

Output Parameters

Pint *err_ind
Error indicator.

Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).

Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).

Pint *init_view_ind
Initial view index.

Ppoint_list3 **init_stroke
Initial stroke in WC. The memory referenced by *init_stroke is managed by the parameter store.

Pint *prompt_echo
Prompt and echo type.

Plimit3 *echo_vol
Echo volume in DC.

Pstroke_data3 **stroke_data
Data record. The memory referenced by *stroke_data is managed by the parameter store.

FORTRAN

PQSKS (wkid, skdnr, type, n, mldr, errind, mode, esw, iviewi, np, ipxa, ipya, ipza, pet, evol, ldr, datrec)

Input Parameters

integer wkid
Workstation identifier.

integer skdnr
Stroke device number (>=1).

integer type
Type of returned values (0=PSET, 1=PREALI).

integer n
Maximum number of points (>=0).

integer mldr
Dimension of the data record array (>=0).

Output Parameters

integer errind
Error indicator.

integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).

integer esw
Echo switch (0=PNECHO, 1=PECHO).

integer iviewi
Initial view index.

integer np
Number of points.

real ipxa(n)
x coordinates of the initial stroke in WC.

real ipya(n)
y coordinates of the initial stroke in WC.

real ipza(n)
z coordinates of the initial stroke in WC.

integer pet
Prompt and echo type.

real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).

integer ldr
Number of array elements used in the data record.

character*80 datrec(mldr)
Data record.

Errors

None

Related Subroutines

  • Initialize Stroke

  • Initialize Stroke 3

  • Inquire Default Stroke Device Data

  • Inquire Default Stroke Device Data 3

  • Inquire Stroke Device State


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