pinq_pred_pat_rep_plus(3g) — Subroutines
Name
pinq_pred_pat_rep_plus − Returns a pattern description.
Operating States: PHOP, ∗, ∗, ∗
PHIGS PLUS function
Syntax
void pinq_pred_pat_rep_plus (
Pint wstype, /∗ (I) Workstation type. ∗/
Pint index, /∗ (I) Predefined pattern index. ∗/
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 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;
Description
pinq_pred_pat_rep_plus returns a description of the specified pattern by returning the pattern dimensions and the array of color indexes that make up the pattern.
Digital PHIGS Version 4.1 does not support this function.
See Also
pcreate_store
pdel_store
pinq_pat_rep
pinq_pat_rep_plus
pinq_pred_pat_rep
pset_pat_rep
pset_pat_rep_plus