SAMPLE STROKE 3
CALL SEQUENCE
void psample_stroke3 (ws_id, stroke_dev, view_index, stroke_pos)
INPUT PARAMETERS
Pint ws_id,
Pint stroke_dev,
OUTPUT PARAMETERS
Pint *view_index,
Ppoint_list3 *stroke_pos
ARGUMENTS
- ws_id,
- workstation identifier
- stroke_dev,
- Stroke device number
- view_index,
- View index
- stroke_pos
Stroke
TYPES
typedef struct {
Pint num_points; /* number of Ppoint3s in the list */
Ppoint3 *points; /* list of points */
} Ppoint_list3;
typedef struct {
Pfloat x; /* x coordinate */
Pfloat y; /* y coordinate */
Pfloat z; /* z coordinate */
} Ppoint3;
PHIGS STATE
(PHOP, WSOP, *, *).
EFFECT
Reads a set of 3D points in WC space composing the current measure of the
active input device stroke_dev.
Example:
/* Sample stroke on workstation number 1 using device number 1 */
Pint ws_id,stroke_dev;view_index;
Ppoint points[10];
Ppoint_list stroke_pos ;
.....
ws_id = 1;
stroke_dev = 1;
stroke_pos.points = points;
psample_stroke(ws_id,stroke_dev,&view_index,&stroke_pos);
......
ERRORS
- 3
Ignoring function, function requires state (PHOP, WSOP,*,*)
- 54
- Ignoring function, the specified workstation is not open
- 61
- Ignoring function, specified workstation is neither of category INPUT nor
of category OUTIN
- 250
- Ignoring function, the specified device is not available on the specified
workstation
- 252
- Ignoring function, the function requires the input device to be in SAMPLE
mode
SEE ALSO
sample stroke , set stroke mode, initialize stroke 3, request stroke 3, get
stroke 3, await event, inquire stroke device state 3, inquire default stroke
device state 3