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

GPXPMR - Set Extended Polymarker Representation

GPXPMR (wsid, index, id, value)

Purpose

Use GPXPMR to set one field of the specified entry in the workstation's polymarker bundle table.

These attribute values are applied during traversal when the appropriate ASF is set to 1=BUNLDED and the current polymarker index is set to the specified entry. These attribute values can also be set individually.

Parameters

wsid -- specified by user, fullword integer

Workstation identifier.

index -- specified by user, fullword integer

Polymarker bundle table index (>=1)

id -- specified by user, fullword integer

Polymarker group identifier (1=MARKER_TYPE, 2=MARKER_SIZE_SCALE_FACTOR, 3=POLYMARKER_COLOR )

value -- specified by user, variable data

The value that may be set for each field is expressed in the data format listed below:

Group Identifier 1 - Marker type table index

A fullword integer (>=1) Specifies an index into the marker type table of the workstation. The table size and specific entries supported are workstation dependent. Use the Inquire Polymarker Facilities (GPQPMF) subroutine to determine the supported marker types on your workstation. The default marker type table for supported entries is defined with the following marker types: (1=DOT, 2=PLUS_SIGN, 3=ASTERISK, 4=CIRCLE, 5=DIAGONAL_CROSS, 6-n=ASTERISK Any entry may be changed by GPMTR except entry 3)

Group Identifier 2 - Marker size scale factor

A short floating-point number.

Group Identifier 3 - Polymarker color

Four fullwords of data with either of the following two formats:
      indexed format                        direct format
      -------------                         -------------
    0 |          1| fullword integer      0 |          2| fullword integer
      |-----------|                         |-----------|
    4 |color index| fullword integer      4 |component 1| short floating-point number
      |-----------|                         |-----------|
    8 |    ignored| fullword integer      8 |component 2| short floating-point number
      |-----------|                         |-----------|
   12 |    ignored| fullword integer     12 |component 3| short floating-point number
      -------------                         -------------

Error Codes

25
SPECIFIED WORKSTATION DOES NOT EXIST
35
WORKSTATION HAS ONLY INPUT CAPABILITIES
43
BUNDLE INDEX EXCEEDS WORKSTATION TABLE CAPACITY
60
BUNDLE INDEX VALUE < ONE
69
MARKER TYPE VALUE < ONE
70
SPECIFIED MARKER TYPE NOT AVAILABLE ON WORKSTATION
92
COLOR INDEX < ZERO
93
COLOR INDEX VALUE(S) EXCEED WORKSTATION TABLE CAPACITY
96
COLOR PARAMETER OUT OF RANGE FOR CURRENT COLOR MODEL
97
COLOR FORMAT PARAMETER IS INVALID
272
GROUP IDENTIFIER IS INVALID

Related Subroutines

GPASF
Attribute Source Flag Setting
GPCML
Set Color Model
GPPMCD
Set Polymarker Color Direct
GPPMCI
Set Polymarker Color Index
GPPMI
Set Polymarker Index
GPQXMR
Inquire Extended Polymarker Representation

RCP code

201345538 (X'0C004A02')


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