INITIALIZE STROKE
CALL SEQUENCE
void pinit_stroke(
Pint ws_id, /* workstation identifier */
Pint stroke_dev, /* stroke device number */
Pint init_view_index, /* initial view index */
const Ppoint_list *init_stroke_pos, /* initial stroke position */
Pint pet, /* prompt and echo type */
const Plimit *echo_volume, /* echo volume */
const Pstroke_data *stroke_data_rec /* data record */
)
TYPES
typedef struct {
Pint num_points; /* number of Ppoints in the list */
Ppoint *points; /* list of points */
} Ppoint_list;
typedef struct {
Pfloat x_min; /* minimum x */
Pfloat x_max; /* maximum x */
Pfloat y_min; /* minimum y */
Pfloat y_max; /* maximum y */
} Plimit;
typedef struct {
Pint in_buf_size; /* input buffer size */
Pint init_pos; /* initial editing position */
Pfloat x_interval; /* x interval */
Pfloat y_interval; /* y interval */
Pfloat time_interval; /* time interval */
union Pstroke_pets {
struct Pstroke_pet_r1 {
int impl_dep;
} pet_r1;
struct Pstroke_pet_r2 {
int impl_dep;
} pet_r2;
struct Pstroke_pet_r3 {
Pmarker_attrs marker_attrs; /* marker attributes */
} pet_r3;
struct Pstroke_pet_r4 {
Pline_attrs line_attrs; /* polyline attributes */
} pet_r4;
int impl_dep;
} pets;
} Pstroke_data;
typedef struct {
Pfloat x; /* x coordinate */
Pfloat y; /* y coordinate */
} Ppoint;
PHIGS STATE
(PHOP, WSOP, *, *).
EFFECT
Restricts the 3D initialize stroke function to 2D.
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
- 251
- Ignoring function, the function requires the input device to be in REQUEST
mode
- 254
- Ignoring function, invalid echo area volume: XMIN>>=XMAX,
YMIN>>=YMAX or ZMIN>>ZMAX
- 255
- Ignoring function, one of the echo area volume boundary points is outside
the range of the device
- 253
- Ignoring function, the specified prompt echo type is not available on the
specified workstation
- 260
- Ignoring function, one of the fields within the input device data record is
in error
- 261
- Ignoring function, initial value is invalid
- 262
- Ignoring function, number of points in the initial stroke is greater than
the buffer size
- 114
- Ignoring function, the view index value is less than zero
SEE ALSO
initialize stroke 3, set stroke mode, request stroke, sample stroke, get
stroke, inquire stroke device state, inquire default stroke device state,
inquire number of available logical input devices