Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SET POLYLINE COLOUR(3P+)  —  Kubota Pacfic Computer Inc. (29 February 1991)

NAME

SET POLYLINE COLOUR − create a structure element to set the polyline colour attribute

SYNOPSIS

C Syntax

void
pset_line_colr ( colour )
Pgcolr∗colour;polyline colour

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

• ANNOTATION TEXT RELATIVE (when “connected” style is in use)

• ANNOTATION TEXT RELATIVE 3 (when “connected” style is in use)

• CELL ARRAY (when minimal simulation is performed)

• CELL ARRAY 3 (when minimal simulation is performed)

C Input Parameters

colourPolyline colour. Pgcolr is defined as:

typedef struct {
Pint type;/∗ indirect, RGB, CIE, HSV, HLS ∗/
union {
   Pintind;/∗ colour table index ∗/
   struct {
Pfloatx; /∗ red, hue, etc. ∗/
Pfloaty; /∗ green, saturation, lightness, etc. ∗/
Pfloatz; /∗ blue, value, saturation, etc. ∗/
   } general;
} val;
} Pgcolr;

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 that 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 POLYLINE REPRESENTATION PLUS (3P+)
SET POLYLINE COLOUR INDEX (3P)
SET POLYLINE REPRESENTATION (3P)

September 02, 1992

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