PSMSK(3g) — Subroutines
Name
PSMSK − Returns the 2D coordinates of the points in a stroke from the stroke-class logical input device specified.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function
Syntax
PSMSK (WKID, SKDNR, N, VIEWI, NP, PXA, PYA)
Argument Data Type Access Description
---------------------------------------------------------------------------
WKID Integer Read Workstation identifier
SKDNR Integer Read Stroke device number
N Integer Read Maximum number of points to return
VIEWI Integer Write View index
NP Integer Write Number of the points returned
PXA(N), PYA(N) Real Write Points in the stroke, in world
coordinates (X1, Y1, ... , X[NP],
Y(NP])
---------------------------------------------------------------------------
Description
PSMSK takes the current measure of the stroke-class logical input device specified by the device number and the workstation identifier, and 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 about view indexes.
If you generate a stroke that contains more points than the number of components in the stroke buffer, you can obtain the additional input through repeated calls to PSMSK. To establish a stroke buffer size, call the PINSK function.
See Also
PGTSK
PINSK
PQSKS
PRQSK
PSMSK3
PSSKM
PSVTIP