Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

NAME

SET EDGE COLOUR − create structure element to set the current edge direct colour attribute

SYNOPSIS

C Syntax

void
pset_edge_colr ( colour )
Pgcolr∗colour;edge colour

Required PHIGS Operating States

(PHOP, ∗, STOP, ∗)

DESCRIPTION

Purpose

SET EDGE COLOUR creates a structure element to set the current edge direct colour attribute. 

When the current edge colour Aspect Source Flag (ASF) is set to INDIVIDUAL, the current value of this attribute applies to the following output primitives:

• FILL AREA SET

• FILL AREA SET 3

• FILL AREA SET 3 WITH DATA

• GENERALIZED DRAWING PRIMITIVE (Fill Area Set Primitives)

• GENERALIZED DRAWING PRIMITIVE 3 (Fill Area Set Primitives)

• NON-UNIFORM B-SPLINE SURFACE

• SET OF FILL AREA SET 3 WITH DATA

• QUADRILATERAL MESH 3 WITH DATA

• TRIANGLE STRIP 3 WITH DATA

C Input Parameters

colourEdge 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 EDGE COLOUR element with the value edge 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 EDGE COLOUR element. 

When the current edge colour ASF is set to INDIVIDUAL, filled area output primitives that follow in the structure network are drawn using the current edge colour. 

When the current edge colour ASF is set to BUNDLED, the edge colour is taken from the workstation extended representation indicated by the current edge index.  In this case, the edge colour set with SET EDGE COLOUR has no effect. 

The standard PHIGS function SET EDGE COLOUR INDEX is equivalent to calling to SET EDGE COLOUR with type INDIRECT. 

ERRORS

005Ignoring function, function requires state (PHOP, ∗, STOP, ∗)

SEE ALSO

COLOUR (7P)
SET EDGE REPRESENTATION PLUS (3P+)
SET EDGE COLOUR INDEX (3P)

September 02, 1992

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