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

Chapter 6. Workstation Table Settings

When your application open a workstation, the graPHIGS API automatically creates workstation tables to describe the workstation. Each workstation table has default settings. Use the subroutines in this section to modify some of the table entries according to your application's specifications.

Most workstation table indexes begin with 1. The following exceptions begin with 0:

Some table entries may not be modified.

The subroutines in this section do not create structure elements or modify structure content. The changed table values only take effect after you update the workstation. The application may inquire the default table settings by issuing the appropriate inquiry programming calls. For a listing of the default tables for each supported workstation type, see The graPHIGS Programming Interface: Technical Reference.

SET COLOR MODEL (PHOP,WSOP,*,*)

Purpose

Use Set Color Model to set the current color model for the specified workstation to the given color model. Possible color models include: 1=RGB, 2=CIELUV, and 3=HSV. The CMY color model is supported via GPxxxx subroutines.

Use this subroutine to specify a color model. The graPHIGS API uses this color model to interpret the color parameters for color definition and inquiries pertaining to the specified workstation.

Language Bindings

C

pset_colr_model (ws_id, colr_model)

Input Parameters

Pint ws_id
Workstation identifier.

Pint colr_model
Color model (1=PMODEL_RGB, 2=PMODEL_CIELUV, 3=PMODEL_HSV).

FORTRAN

PSCMD (wkid, cmodel)

Input Parameters

integer wkid
Workstation identifier.

integer cmodel
Color model (1=PRGB, 2=PCIE, 3=PHSV).

Errors

3
Function Requires State (PHOP,WSOP,*,*)
54
Specified Workstation Is Not Open
59
Specified Workstation Does Not Have Output Capability
110
Specified Color Model Not Available On Workstation

Related Subroutines

  • Inquire Color Model


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