Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pe_set_pseudo_colr(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pe_set_pseudo_colr(3g)  —  Subroutines

Name

pe_set_pseudo_colr − Installs a pseudo color mapping data record and assigns the given index to this mapping. 

 
Operating States: PHOP, WSOP, ∗, ∗
Digital PHIGS extension function

Syntax

void pe_set_pseudo_colr (
  Pint                       wsid,      /∗ (I) Workstation identifier ∗/
  Pint                       index,     /∗ (I) Color mapping index ∗/
  const Ppseudo_approx_rec  ∗datarec    /∗ (I) Color mapping data record ∗/
)

Data Structures

typedef struct {               /∗ pseudo color approximation  ∗/
    Pint        range;         /∗ number of colors ∗/
    Pfloat      weight[3];     /∗ weight vector ∗/
    Pint        model;         /∗ color model ∗/
    Pcolr_rep  ∗colr;          /∗ color map ∗/
} Ppseudo_approx_rec;
    typedef union {
        Prgb        rgb;       /∗ red, green, and blue color
                                  specification ∗/
        Pcieluv     cieluv;    /∗ CIELUV color specification ∗/
        Phls        hls;       /∗ hue, lightness, and saturation color
                                  specification ∗/
        Phsv        hsv;       /∗ hue, saturation, and value color
                                  specification ∗/
        Pdata       unsupp;    /∗ color in an unsupported color model ∗/
        int         impl_dep;  /∗ implementation-defined ∗/
    } Pcolr_rep;
        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;

Description

pe_set_pseudo_colr allows you to modify the entries in the installs a pseudo color mapping data record and assigns the given index to this mapping.  Use the pe_setup_pseudo_colr function to create the values in the datarec argument.  See the pe_setup_pseudo_colr function for details of the pseudo color mapping data record. 

See Also

pe_setup_pseudo_colr

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