[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPICD - Set Interior Color Direct

GPICD (color)

Purpose

Use GPICD to insert a Set Interior Color Direct structure element into the open structure following the element pointer or to replace the element pointed at by the element pointer with a Set Interior Color Direct structure element depending on the current edit mode.

This structure element specifies the direct color values the graPHIGS API uses to fill all following polygon definitions if the interior style is set to 1=HOLLOW and edge is 1=OFF or if the interior style is set to 2=SOLID or 4=HATCH

Face distinguish mode must be set to 2=COLOR_SURFACE_PROPERTIES for the graPHIGS API to use these values to fill the front facing portions only. If the face distinguish mode is 1=NONE , then the graPHIGS API uses these values to fill both the front facing and back facing portions of the area defining primitives.

At structure traversal time, the graPHIGS API uses these values to render the interiors when the interior color aspect source flag is set to 2=INDIVIDUAL

This attribute sets the same traversal state as the Set Interior Color Index (GPICI) subroutine. The traversal default for interior color is the content of entry 1 of the rendering color table.

Parameters

color -- specified by user, 3 short floating-point numbers

Three color components of the current structure color model in the graPHIGS API state list (0.0<=component<=1.0)

Error Codes

5
FUNCTION REQUIRES STATE STOP OR NROP (NOT STCL)
96
COLOR PARAMETER OUT OF RANGE FOR CURRENT COLOR MODEL

Related Subroutines

GPASF
Attribute Source Flag Setting
GPEF
Set Edge Flag
GPFDMO
Set Face Distinguish Mode
GPICI
Set Interior Color Index
GPQXIR
Inquire Extended Interior Representation
GPXIR
Set Extended Interior Representation

RCP code

201328905 (X'0C000909')


[ Previous | Next | Contents | Glossary | Home | Search ]