SET POLYLINE COLOUR(3P+) — MISC. REFERENCE MANUAL PAGES
NAME
SET POLYLINE COLOUR − create a structure element to set the polyline colour attribute
SYNOPSIS
C Syntax
void
psetlinecolour ( colour )
Pgcolr∗colour;polyline colour
FORTRAN Syntax
SUBROUTINE psplco ( COLMOD, ICOLR, COLR )
INTEGERCOLMODcolour model
INTEGERICOLRcolour table index
REALCOLR(3)colour triple
Required PHIGS Operating States
(PHOP, ∗, STOP, ∗)
DESCRIPTION
Purpose
SET POLYLINE COLOUR creates a structure element to set the polyline colour attribute.
When the current polyline colour Aspect Source Flag (ASF) is set to INDIVIDUAL, the current value of this attribute applies to the following output primitives:
• POLYLINE
• POLYLINE 3
• POLYLINE SET 3 WITH DATA
• NON-UNIFORM B-SPLINE CURVE
This is a SunPHIGS Extension function based on PHIGS+ and is not part of the PHIGS standard.
C Input Parameters
All of the following data types are predefined in phigs.h.
colourPolyline colour. Pgcolr is defined as:
typedef struct {
Pint type;/∗ indirect, RGB, CIE, HSV, HLS ∗/
union {
Pintindex;/∗ colour table index ∗/
struct {
Pfloatx;/∗ red, hue, etc. ∗/
Pfloaty;/∗ green, saturation, lightness, etc. ∗/
Pfloatz;/∗ blue, value, saturation, etc. ∗/
} general;
} val;
} Pgcolr;
FORTRAN Input Parameters
All of the following data types are predefined in phigs77.h.
COLMOD
The colour model. The predefined values are:
0PINDIRColour Index Specified
1PRGBRed, Green, and Blue
2PCIECIE Colour Model
3PHSVHue, Saturation, and Value
4PHLSHue, Lightness, and Saturation
ICOLR
An integer index into the workstation colour table for determining the polyline colour. This value is only used if COLMOD is equal to PINDIR.
COLR(3)
An array of reals containing the polyline colour. This array is unused if COLMOD is equal to PINDIR.
COLR(1) = Red, Hue, etc.
COLR(2) = Green, Saturation, Lightness, etc.
COLR(3) = Blue, Value, Saturation, etc.
Execution
Depending on the edit mode, a SET POLYLINE COLOUR element with the value polyline colour in the specified colour model is inserted into the open structure after the element pointer or replaces the element pointed at by the element pointer. The element pointer is then updated to point to this SET POLYLINE COLOUR element.
When the current polyline colour ASF is set to INDIVIDUAL, linear curve output primitives, which follow in the structure network are drawn using the current polyline colour.
When the current polyline colour ASF is set to BUNDLED, the polyline colour is taken from the workstation extended representation indicated by the current polyline index. In this case, the polyline colour set with SET POLYLINE COLOUR has no effect.
The standard PHIGS function SET POLYLINE COLOUR INDEX is equivalent to calling to SET POLYLINE COLOUR with type INDIRECT.
ERRORS
005Ignoring function, function requires state (PHOP, ∗, STOP, ∗)
SEE ALSO
COLOUR (7P)
SET INDIVIDUAL ASF (3P)
INQUIRE EXTENDED POLYLINE REPRESENTATION (3P+)
SET POLYLINE COLOUR INDEX (3P)
Sun Release 4.0 — Last change: 28 July 1989