Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pset_int_rep_plus(3g)  —  Subroutines

Name

pset_int_rep_plus − Modifies the entries in the extended interior bundle table. 

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

Syntax

void pset_int_rep_plus (
  Pint                      wsid,    /∗ (I) Workstation identifier ∗/
  Pint                      index,   /∗ (I) Interior index ∗/
  const Pint_bundle_plus   ∗rep      /∗ (I) Extended interior
                                            representation ∗/
)

Data Structures

typedef struct {
    Pint_style   style;         /∗ interior style ∗/
    Pint         style_ind;     /∗ interior style index ∗/
    Pgcolr       colr;          /∗ interior color ∗/
    Pint         shad_method;   /∗ shading method ∗/
} Pint_bundle_plus;
    typedef enum {
        PSTYLE_HOLLOW,   /∗ Hollow interior.  This is the default value. ∗/
        PSTYLE_SOLID,    /∗ Solid interior. ∗/
        PSTYLE_PAT,      /∗ Patterned interior. ∗/
        PSTYLE_HATCH,    /∗ Hatched interior. ∗/
        PSTYLE_EMPTY     /∗ Empty interior. ∗/
    } Pint_style;
    typedef struct {
        Pint     colr_type;   /∗ color type ∗/
        Pcolrv   colr_value;  /∗ color value ∗/
    } Pgcolr;
        typedef union {
            Pint         colr_ind;    /∗ color index ∗/
            Pcolr_rep    colr_rep;    /∗ color representation ∗/
        } Pcolrv;
            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;

Constants

Data Structure Constants     Constant             Description
---------------------------------------------------------------------------
Shading methods              PINT_SHAD_METHOD_    No interpolation,
                             NONE                 constant shading
                             PINT_SHAD_METHOD_    Linear interpolation of
                             COLR                 color
                             PINT_SHAD_METHOD_    Interpolation of color
                             DATA                 for the WITH DATA
                                                  primitives
                             PINT_SHAD_METHOD_    Interpolation of color
                             DATA_DOT             based on dot products
                             PINT_SHAD_METHOD_    Interpolation of color
                             DATA_NORM            based on normals
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

pset_int_rep_plus allows you to modify the entries in the extended interior bundle table in the workstation state list by defining a new index.  The extended interior bundle table in the workstation state list has predefined entries taken from the workstation description table.  A number of these entries are predefined for every workstation of category OUTPUT and OUTIN. You can redefine any table entry using this function, including predefined entries. 

When Digital PHIGS displays area-defining primitives during structure traversal, the current interior index in the PHIGS traversal state list refers to an entry in the extended interior bundle table.  If the current interior index is not present in the extended interior bundle table, Digital PHIGS uses interior index 1.  The setting of the corresponding aspect source flags determines which of the aspects in an entry Digital PHIGS uses. 

During structure traversal, if the current interior index does not exist in the extended table, Digital PHIGS uses interior index 1. 

See Also

pfill_area
pfill_area3
pfill_area_set
pfill_area_set3
pfill_area_set_data
pfill_area_set3_data
pe_fill_area_set_wshape
pe_fill_area_set3_wshape
pinq_int_rep
pnon_uniform_b_spline_surf3
pquad_mesh3_data
pset_indiv_asf
pset_int_colr_ind
pset_int_ind
pset_int_style
pset_int_style_ind
pset_of_fill_area_sets3_data
ptri_strip3_data

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