PGTSK(3g) — Subroutines
Name
PGTSK − Returns the 2D coordinates of the points in a stroke.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function
Syntax
PGTSK (N, VIEWI, NP, PXA, PYA)
Argument Data Type Access Description
---------------------------------------------------------------------------
N Integer Read Maximum number of points
VIEWI Integer Write View index
NP Integer Write Number of points written
PXA(N), Array of Write Points in the stroke, in
PYA(N) reals world coordinates (X1, Y1,...,
X[NP], Y[NP])
---------------------------------------------------------------------------
Description
PGTSK obtains information contained in the current event report entry. If the report contains input generated by anything other than a stroke-class input device, a call to this function generates an error. (See the PWAIT function for more information about input classes and the current event report.)
The PGTSK function returns the world coordinate points and the view index of the view transformation Digital PHIGS uses to translate the normalized projection coordinate points to the world coordinate points. This function ignores the z-coordinate components and returns a two-dimensional result.
Digital PHIGS uses the current workstation transformation to translate the device coordinate points to normalized projection coordinate points. See Getting Started with DEC PHIGS for more information on view indexes.
See Also
PWAIT
PFLUSH
PGTSK3
PINSK
PRQSK
PSMSK
PSSKM
PSVTIP