Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pinq_pat_rep_plus(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pinq_pat_rep_plus(3g)  —  Subroutines

Name

pinq_pat_rep_plus − Returns the values associated with a pattern index value. 

Operating States: PHOP, WSOP, ∗, ∗
PHIGS PLUS function

Syntax

void pinq_pat_rep_plus (
  Pint              wsid,       /∗ (I) Workstation identifier. ∗/
  Pint              index,      /∗ (I) Pattern index. ∗/
  Pinq_type         type,       /∗ (I) Type of returned values. ∗/
  Pstore            store,      /∗ (I) Handle to store the object.  store
                                       manages the memory referenced by
                                       ∗rep. ∗/
  Pint             ∗error_ind,  /∗ (O) Error indicator. ∗/
  Ppat_rep_plus   ∗∗rep         /∗ (O) Pattern representation. ∗/
)

 

Data Structures

typedef enum {
    PINQ_SET,        /∗ Use the exact state list values. ∗/
    PINQ_REALIZED    /∗ Use the values approximated by the graphics
                        handler. ∗/
} Pinq_type;
typedef void ∗Pstore;
typedef struct {
    Pint            colr_type;     /∗ color type ∗/
    Pcolrv_array    colrs;         /∗ array of color values ∗/
} Ppat_rep_plus;
    typedef struct {
        Pint_size     dims;    /∗ color value array dimensions ∗/
        Pcolrv_ptr    colrs;   /∗ array of color values ∗/
    } Pcolrv_array;
        typedef struct {
            Pint     size_x;    /∗ x size ∗/
            Pint     size_y;    /∗ y size ∗/
        } Pint_size;
        typedef union {
            Pint            ∗colr_inds;   /∗ pointer to color indexes ∗/
            Pcolr_rep_ptr    colr_reps;   /∗ pointer to color
                                             representations ∗/
        } Pcolrv_ptr;
            typedef union {
                Prgb     ∗rgb;      /∗ pointer to RGB color values ∗/
                Pcieluv  ∗cieluv;   /∗ pointer to CIELUV color values ∗/
                Phls     ∗hls;      /∗ pointer to HLS color values ∗/
                Phsv     ∗hsv;      /∗ pointer to HSV color values ∗/
                Pdata    ∗unsupp;   /∗ pointer to unsupported color
                                       values ∗/
            } Pcolr_rep_ptr;
 
                typedef struct {
                    Pfloat    red;     /∗ red intensity ∗/
                    Pfloat    green;   /∗ green intensity ∗/
                    Pfloat    blue;    /∗ blue intensity ∗/
                } Prgb;
                typedef struct {
                    Pfloat    cieluv_x;      /∗ x coefficient ∗/
                    Pfloat    cieluv_y;      /∗ y coefficient ∗/
                    Pfloat    cieluv_y_lum;  /∗ y luminance ∗/
                } Pcieluv;
                typedef struct {
                    Pfloat    hue;         /∗ hue ∗/
                    Pfloat    lightness;   /∗ lightness ∗/
                    Pfloat    satur;       /∗ saturation ∗/
                } Phls;
                typedef struct {
                    Pfloat    hue;      /∗ hue ∗/
                    Pfloat    satur;    /∗ saturation ∗/
                    Pfloat    value;    /∗ value ∗/
                } Phsv;
                typedef struct {
                    size_t    size;     /∗ size of data ∗/
                    void     ∗data;     /∗ pointer to the data ∗/
                } Pdata;

Constants

Data Structure Constants     Constant         Description
---------------------------------------------------------------------------
Color types                  PCOLR_INDIRECT   Indirect (indexed) color
                             PCOLR_RGB        Direct specification of red,
                                              green, and blue
                             PCOLR_CIELUV     Direct specification in the
                                              format of the Commission
                                              Internationale de l’Eclairage
                             PCOLR_HSV        Direct specification of hue,
                                              saturation, and value
                             PCOLR_HLS        Direct specification of hue,
                                              lightness, and saturation
---------------------------------------------------------------------------

 

Description

pinq_pat_rep_plus returns the values associated with the given pattern index value. 

Digital PHIGS Version 4.1 does not support this function.

See Also

pcreate_store
pdel_store
pinq_list_pat_inds
pinq_pat_rep
pinq_pred_pat_rep
pinq_pred_pat_rep_plus
pset_pat_rep
pset_pat_rep_plus

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