SET POLYMARKER REPRESENTATION PLUS(3P+) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
SET POLYMARKER REPRESENTATION PLUS − use to define an extended polymarker attribute bundle on a workstation
SYNOPSIS
C Syntax
void
pset_marker_rep_plus ( ws, index, rep )
Pintws;workstation identifier
Pintindex;polymarker bundle index
Pmarker_bundle_plus∗rep; polymarker representation pointer
Required PHIGS Operating States
(PHOP, WSOP, ∗, ∗)
DESCRIPTION
Purpose
SET POLYMARKER REPRESENTATION PLUS defines an extended polymarker attribute bundle on a workstation.
C Input Parameters
wsThe identifier of the workstation.
indexThis is an index to the workstation marker bundle table.
repA pointer to a Pmarker_bundle_plus structure. Pmarker_bundle_plus is defined as:
typedef struct {
Pinttype;/∗ marker type ∗/
Pfloatsize;/∗ marker size scale factor ∗/
Pgcolrcolr;/∗ marker colour ∗/
} Pmarker_bundle_plus;
Pgcolr is defined as:
typedef struct {
Pinttype;/∗ indirect, RGB, CIE, HSV, HLS ∗/
union {
Pintind;/∗ index in workstation colour bundle table ∗/
struct {
Pfloatx;/∗ red, hue, etc. ∗/
Pfloaty;/∗ green, saturation, lightness, etc. ∗/
Pfloatz;/∗ blue, value, saturation, etc. ∗/
} general;
} val;
} Pgcolr;
rep->type is an integer value specifying a marker type; the following marker types are defined:
1PMARKER_DOTPoint (.)
2PMARKER_PLUSPlus sign (+)
3PMARKER_ASTERISKAsterisk (∗)
4PMARKER_CIRCLECircle (○)
5PMARKER_CROSSX-mark (×)
Support for marker types is workstation-dependent. The Point (.) marker type is always the smallest dot possible, regardless of the marker size scale factor value applicable. rep->size is the marker size scale factor. rep->colr is the polymarker colour, which selects a colour value from the workstation’s colour table.
Execution
In the polymarker bundle table of the workstation state list, the given index is associated with the specified parameters.
The marker size scale factor is a scale factor applied to the nominal marker size. During structure traversal, the scale factor is multiplied by the nominal marker size on a workstation. The result is mapped by the workstation to the nearest available marker size.
Polymarker colour is a general colour, either an indirect or a direct colour in a specified colour model. If an indirect colour is specified and the specified colour index is not available during structure traversal, then colour index one is used.
The extended polymarker 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 or OUTIN. Any table entry, including the predefined entries, may be redefined with this function.
When polymarkers are displayed during structure traversal, the current polymarker index in the PHIGS traversal state list refers to an entry in the extended polymarker bundle table. If the current polymarker index is not present in the extended polymarker bundle table, then polymarker index one is used. The setting of the corresponding Aspect Source Flags(ASFs) determines which aspects in the entry are used.
ERRORS
003Ignoring function, function requires state (PHOP, WSOP, ∗, ∗)
054Ignoring function, the specified workstation is not open
059Ignoring function, the specified workstation does not have output capability (that is, the workstation category is neither OUTPUT, OUTIN, nor MO)
100Ignoring function, the bundle index value is less than one
103Ignoring function, setting this bundle table entry would exceed the maximum number of entries allowed in the workstation bundle table
105Ignoring function, the specified marker type is not available on the specified workstation
110Ignoring function, the specified colour model is not available on the workstation
113Ignoring function, the colour index value is less than zero
136Ignoring function, one of the components of the colour specification is out of range
SEE ALSO
SET INDIVIDUAL ASF (3P)
INQUIRE POLYMARKER REPRESENTATION PLUS (3P+)
SET POLYMARKER REPRESENTATION (3P)
SET MARKER TYPE (3P)
SET MARKER SIZE SCALE FACTOR (3P)
SET POLYMARKER COLOUR INDEX (3P)
SET POLYMARKER COLOUR (3P+)
INQUIRE POLYMARKER FACILITIES (3P)
September 02, 1992