Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pinq_def_stroke_data3(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pinq_def_stroke_data3(3g)  —  Subroutines

Name

pinq_def_stroke_data3 − Returns stroke information. 

Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
 

Syntax

void pinq_def_stroke_data3 (
  Pint             wstype,       /∗ (I) Workstation type. ∗/
  Pint             dev_num,      /∗ (I) Logical input device number. ∗/
  Pstore           store,        /∗ (I) Handle to store the object.  store
                                        manages the memory referenced by
                                        ∗pets and ∗stroke_data. ∗/
  Pint            ∗error_ind,    /∗ (O) Error indicator. ∗/
  Pint            ∗max_size,     /∗ (O) Maximum input buffer size. ∗/
  Pint_list      ∗∗pets,         /∗ (O) List of PETS. ∗/
  Plimit3         ∗echo_vol,     /∗ (O) Default echo volume, in device
                                        coordinates. ∗/
  Pstroke_data3  ∗∗stroke_data   /∗ (O) Default stroke data record. ∗/
)

 

Data Structures

typedef void ∗Pstore;
typedef struct {
    Pint      num_ints;   /∗ number of Pints in the list ∗/
    Pint     ∗ints;       /∗ list of integers ∗/
} Pint_list;
typedef struct {
    Pfloat    x_min;    /∗ x minimum ∗/
    Pfloat    x_max;    /∗ x maximum ∗/
    Pfloat    y_min;    /∗ y minimum ∗/
    Pfloat    y_max;    /∗ y maximum ∗/
    Pfloat    z_min;    /∗ z minimum ∗/
    Pfloat    z_max;    /∗ z maximum ∗/
} Plimit3;
typedef struct { /∗ stroke data record ∗/
    Pint    in_buf_size;    /∗ input buffer size ∗/
    Pint    init_pos;       /∗ initial editing position ∗/
    Pfloat  x_interval;     /∗ x interval ∗/
    Pfloat  y_interval;     /∗ y interval ∗/
    Pfloat  z_interval;     /∗ z interval ∗/
    Pfloat  time_interval;  /∗ time interval ∗/
    union Pstroke3_pets {
        struct Pstroke3_pet_r1 {
            Pint     impl_dep;
        } pet_r1;
 .
 .
 .
    } pets;
} Pstroke_data3;

Because this function returns information on the default stroke data (PET 1), the data structures for the other PETs have been omitted.

Description

pinq_def_stroke_data3 queries the workstation description table and returns values for the following:

•Maximum stroke buffer size

•List of available prompt and echo types

•Default echo volume in device coordinates

•Default stroke data record

See Also

pcreate_store
pdel_store
pinit_stroke3
pinq_def_stroke_data

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026