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

GPQPK - Inquire Pick Device State

GPQPK (wsid, device, type, inlen, exlen, pathlen, length, errind, mode, echosw, inclen, incl, exclen, excl, depth, pickpath, echo, area, datalen, data, order)

Note:

This subroutine is a Workstation State List (WSL) inquiry. For an overview, see "WSL Inquiries"

Purpose

Use GPQPK to inquire the current state of the specified pick device attached to a specified workstation.

If the inquired information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the error indicator is 533 (an output parameter is not large enough for all the requested data), then the values up to the length specified are returned. If the inquired information is unavailable, then the error indicator (errind) contains an error number indicating the reason, and the values returned in the output parameters are unpredictable.

Parameters

wsid -- specified by user, fullword integer

Workstation identifier.

device -- specified by user, fullword integer

Pick device number.

type -- specified by user, fullword integer

Type of returned values (1=SET )

inlen -- specified by user, fullword integer

Length of inclusion filter array provided by the application for the graPHIGS API to return the corresponding data (>=0)

exlen -- specified by user, fullword integer

Length of exclusion filter array provided by the application for the graPHIGS API to return the corresponding data (>=0)

pathlen -- specified by user, fullword integer

Length of initial pick path array provided by the application for the graPHIGS API to return the corresponding data.

length -- specified by user, fullword integer

Length of pick data record array provided by the application for the graPHIGS API to return the corresponding data.

errind -- returned by the graPHIGS API, fullword integer

Error indicator. If the error indicator is zero, the request has been completed. Otherwise, one of the following errors exists:
25
SPECIFIED WORKSTATION DOES NOT EXIST
37
WORKSTATION IS NOT OF CATEGORY OUTIN
140
DEVICE NUMBER < ONE OR DEVICE NOT AVAILABLE
509
DATA LENGTH VALUE < ZERO OR REQUIRED LENGTH
533
INQUIRY DATA EXCEEDS AREA. OUTPUT TRUNCATED
534
TYPE VALUE IS INVALID

mode -- returned by the graPHIGS API, fullword integer

Current operating mode (1=REQUEST, 2=SAMPLE, 3=EVENT, 4=APPLICATION_DEFINED ) The graPHIGS API only returns a mode of 4=APPLICATION_DEFINED if the application set the device mode using the Set Input Device State (GPIDMO) subroutine and the mode does not emulate Request, Sample or Event mode.

echosw -- returned by the graPHIGS API, fullword integer

Current echo switch (1=NOECHO, 2=ECHO )

inclen -- returned by the graPHIGS API, fullword integer

Current inclusion pick filter length.

incl -- returned by the graPHIGS API, array of fullword integers

Current inclusion pick filter.

exclen -- returned by the graPHIGS API, fullword integer

Current exclusion pick filter length.

excl -- returned by the graPHIGS API, array of fullword integers

Current exclusion pick filter.

depth -- returned by the graPHIGS API, fullword integer

Current initial pick path depth.

pickpath -- returned by the graPHIGS API, array of fullword integers

Current initial pick path.

The pickpath array contains a list of pickpath entries in row order. Each entry is a triplet consisting of a structure identifier, pick identifier, and element number.

echo -- returned by the graPHIGS API, fullword integer

Current prompt/echo type.

area -- returned by the graPHIGS API, 6 short floating-point numbers (DC)

Current echo area (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax)

datalen -- returned by the graPHIGS API, fullword integer

Current pick data record length.

data -- returned by the graPHIGS API, variable length data

Current pick data record.

order -- returned by the graPHIGS API, fullword integer

Current pick path order (1=TOP_FIRST, 2=BOTTOM_FIRST )

Error Codes

None

Related Subroutines

GPIDMO
Set Input Device Mode
GPINPK
Initialize Pick
GPQDPK
Inquire Default Pick Device Data
GPQNCN
Inquire Number of Available Class Names

RCP code

201338883 (X'0C003003')


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