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

GET LOCATOR 3 (PHOP,WSOP,*,*)

Purpose

Use Get Locator 3 to retrieve a locator input value from the current event report. The graPHIGS API does not remove the event from the current event report until the next invocation of the Await Event subroutine call.

The view index indicates the view table entry which has a matrix that the graPHIGS API used to convert the locator point from Device Coordinates (DC) to World Coordinates (WC). This was the view with the highest input priority at the indicated screen location.

The graPHIGS API identified the device to which this value corresponds on the previous invocation of the Await Event subroutine call.

This subroutine returns the locator input from the view with the highest input priority under the cursor. View zero is the highest priority view unless modified by your application.

Language Bindings

C

pget_loc3 (view_ind, loc_pos)

Output Parameters

Pint *view_ind
View index.

Ppoint3 *loc_pos
Locator position in WC.

FORTRAN

PGTLC3 (viewi, lpx, lpy, lpz)

Output Parameters

integer viewi
View index.

real lpx
x coordinate of the locator position in WC.

real lpy
y coordinate of the locator position in WC.

real lpz
z coordinate of the locator position in WC.

Errors

3
Function Requires State (PHOP,WSOP,*,*)
259
Requested Device Class Not Current Input Report Class

Related Subroutines

  • Await Event

  • Get Locator

  • Set View Transformation Input Priority


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