Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pinq_pred_colr_map_rep(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pinq_pred_colr_map_rep(3g)  —  Subroutines

Name

pinq_pred_colr_map_rep − Returns the color mapping type and color data for an index. 

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

Syntax

void pinq_pred_colr_map_rep (
  Pint             wstype,     /∗ (I) Workstation type. ∗/
  Pint             index,      /∗ (I) Predefined color mapping index. ∗/
  Pstore           store,      /∗ (I) Handle to store the object.  store
                                      manages the memory referenced by
                                      ∗rep. ∗/
  Pint            ∗error_ind,  /∗ (O) Error indicator. ∗/
  Pcolr_map_rep  ∗∗rep         /∗ (O) Color mapping representation. ∗/
)

 

Data Structures

typedef void ∗Pstore;
typedef struct {
    Pint     method;   /∗ color mapping method ∗/
    union Pcolr_map_rep_data {
        struct Pcolr_map_rep_pseudo {
            Pint            model;              /∗ color model ∗/
            Pfloat_list     weight_vector;      /∗ list of weight
                                                   vectors ∗/
            Pcolrv_list    colrs;              /∗ list of color values ∗/
        } pseudo;
        struct Pcolr_map_rep_pseudo_N {
            Pint            model;              /∗ color model ∗/
            Pfloat_set      colrs;              /∗ list of lists of color
                                                   coordinates ∗/
        } pseudo_N;
    } data;
} Pcolr_map_rep;
 
    typedef struct {
        Pint      num_floats;   /∗ number of floats in list ∗/
        Pfloat   ∗floats;       /∗ list of floats ∗/
    } Pfloat_list;
    typedef struct {
        Pint          num_colrs;   /∗ number of colors ∗/
        Pcolrv_ptr    colrs;       /∗ list of color values ∗/
    } Pcolrv_list;
        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;
    typedef struct {
        Pint           num_lists;   /∗ number of float lists ∗/
        Pfloat_list   ∗floats;      /∗ list of float lists ∗/
    } Pfloat_set;

Constants

Data Structure Constants    Constant                    Description
---------------------------------------------------------------------------
Color mapping method        PCOLR_MAP_METHOD_TRUE       Digital PHIGS
                                                        performs the
                                                        identity mapping.
                            PCOLR_MAP_METHOD_PSEUDO     Digital PHIGS
                                                        converts the colors
                                                        to a single integer
                                                        index.
                            PCOLR_MAP_METHOD_PSEUDO_N   Digital PHIGS
                                                        converts the colors
                                                        to a set of
                                                        indexes.
---------------------------------------------------------------------------

Description

pinq_pred_colr_map_rep queries the workstation description table and returns the color mapping type and color data for the specified index. 

Digital PHIGS Version 4.1 does not support this function.

See Also

pcreate_store
pdel_store
pinq_colr_map_rep
pset_colr_map_rep

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