Phigsisosubs
Phigsisosubs
SC33-8140-03
SC33-8140-03
Note
Before using this information and the product it supports, read the information in “Notices,” on page 529.
Chapter 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Calling Conventions for ISO PHIGS Subroutines . . . . . . . . . . . . . . . . . . . . . 1
graPHIGS API Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Subroutine Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Reference Manual Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Contents v
GET LOCATOR 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 154
GET PICK (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
GET STRING (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . . 156
GET STROKE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . . 157
GET STROKE 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 158
GET VALUATOR (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 159
INITIALIZE CHOICE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 160
INITIALIZE CHOICE 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 162
INITIALIZE LOCATOR (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 164
INITIALIZE LOCATOR 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . 166
INITIALIZE PICK (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 168
INITIALIZE PICK 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 171
INITIALIZE STRING (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 173
INITIALIZE STRING 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 175
INITIALIZE STROKE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 178
INITIALIZE STROKE 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 180
INITIALIZE VALUATOR (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 183
INITIALIZE VALUATOR 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . 184
REQUEST CHOICE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 186
REQUEST LOCATOR (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 187
REQUEST LOCATOR 3 (PHOP,WSOP,*,*). . . . . . . . . . . . . . . . . . . . . . . 189
REQUEST PICK (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 190
REQUEST STRING (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 192
REQUEST STROKE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 193
REQUEST STROKE 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 195
REQUEST VALUATOR (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 196
SAMPLE CHOICE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 198
SAMPLE LOCATOR (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 199
SAMPLE LOCATOR 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 200
SAMPLE PICK (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . . 201
SAMPLE STRING (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 203
SAMPLE STROKE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 204
SAMPLE STROKE 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 205
SAMPLE VALUATOR (PHOP,WSOP,*,*). . . . . . . . . . . . . . . . . . . . . . . . 207
SET CHOICE MODE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 208
SET LOCATOR MODE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 209
SET PICK FILTER (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 210
SET PICK MODE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 211
SET STRING MODE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . . 213
SET STROKE MODE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . . 214
SET VALUATOR MODE (PHOP,WSOP,*,*). . . . . . . . . . . . . . . . . . . . . . . 215
Contents vii
INQUIRE EDGE FACILITIES (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . . . 313
INQUIRE EDGE REPRESENTATION (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . 315
INQUIRE EDIT MODE (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . . . . . 316
INQUIRE ELEMENT CONTENT (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . . 317
INQUIRE ELEMENT POINTER (PHOP,*,STOP,*) . . . . . . . . . . . . . . . . . . . . 320
INQUIRE ELEMENT TYPE AND SIZE (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . 320
INQUIRE ERROR HANDLING MODE (PHOP,*,*,*). . . . . . . . . . . . . . . . . . . . 322
INQUIRE GENERALIZED DRAWING PRIMITIVE (PHOP,*,*,*) . . . . . . . . . . . . . . . 323
INQUIRE GENERALIZED DRAWING PRIMITIVE 3 (PHOP,*,*,*). . . . . . . . . . . . . . . 325
INQUIRE GENERALIZED STRUCTURE ELEMENT FACILITIES (PHOP,*,*,*) . . . . . . . . . . 326
INQUIRE HIGHLIGHTING FILTER (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . 327
INQUIRE HLHSR IDENTIFIER FACILITIES (PHOP,*,*,*). . . . . . . . . . . . . . . . . . 329
INQUIRE HLHSR MODE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . . . 330
INQUIRE HLHSR MODE FACILITIES (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . 331
INQUIRE INPUT QUEUE OVERFLOW (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . 333
INQUIRE INTERIOR FACILITIES (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . 334
INQUIRE INTERIOR REPRESENTATION (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . 336
INQUIRE INVISIBILITY FILTER (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . 337
INQUIRE LIST OF AVAILABLE GENERALIZED DRAWING PRIMITIVES (PHOP,*,*,*) . . . . . . . 338
INQUIRE LIST OF AVAILABLE GENERALIZED DRAWING PRIMITIVES 3 (PHOP,*,*,*) . . . . . . 340
INQUIRE LIST OF AVAILABLE GENERALIZED STRUCTURE ELEMENTS (PHOP,*,*,*) . . . . . . 341
INQUIRE LIST OF AVAILABLE WORKSTATION TYPES (PHOP,*,*,*) . . . . . . . . . . . . . 342
INQUIRE LIST OF COLOR INDICES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . 343
INQUIRE LIST OF EDGE INDICES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . 345
INQUIRE LIST OF INTERIOR INDICES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . 346
INQUIRE LIST OF PATTERN INDICES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . 347
INQUIRE LIST OF POLYLINE INDICES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . 348
INQUIRE LIST OF POLYMARKER INDICES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . 350
INQUIRE LIST OF TEXT INDICES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . 351
INQUIRE LIST OF VIEW INDICES (PHOP,WSOP,*,*). . . . . . . . . . . . . . . . . . . 352
INQUIRE LOCATOR DEVICE STATE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . 353
INQUIRE LOCATOR DEVICE STATE 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . 355
INQUIRE MODELING CLIPPING FACILITIES (PHOP,*,*,*) . . . . . . . . . . . . . . . . . 358
INQUIRE MORE SIMULTANEOUS EVENTS (PHOP,*,*,*) . . . . . . . . . . . . . . . . . 359
INQUIRE NUMBER OF AVAILABLE LOGICAL INPUT DEVICES (PHOP,*,*,*) . . . . . . . . . . 360
INQUIRE NUMBER OF DISPLAY PRIORITIES SUPPORTED (PHOP,*,*,*) . . . . . . . . . . . 361
INQUIRE OPEN STRUCTURE (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . . 362
INQUIRE PATHS TO ANCESTORS (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . 363
INQUIRE PATHS TO DESCENDANTS (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . 365
INQUIRE PATTERN FACILITIES (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . 367
INQUIRE PATTERN REPRESENTATION (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . 368
INQUIRE PHIGS FACILITIES (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . . . 369
INQUIRE PICK DEVICE STATE (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . . 371
INQUIRE PICK DEVICE STATE 3 (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . . 374
INQUIRE POLYLINE FACILITIES (PHOP,*,*,*) . . . . . . . . . . . . . . . . . . . . . 376
INQUIRE POLYLINE REPRESENTATION (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . 378
INQUIRE POLYMARKER FACILITIES (PHOP,*,*,*). . . . . . . . . . . . . . . . . . . . 379
INQUIRE POLYMARKER REPRESENTATION (PHOP,WSOP,*,*) . . . . . . . . . . . . . . 381
INQUIRE POSTED STRUCTURES (PHOP,WSOP,*,*) . . . . . . . . . . . . . . . . . . 382
INQUIRE PREDEFINED COLOR REPRESENTATION (PHOP,*,*,*). . . . . . . . . . . . . . 383
INQUIRE PREDEFINED EDGE REPRESENTATION (PHOP,*,*,*) . . . . . . . . . . . . . . 385
INQUIRE PREDEFINED INTERIOR REPRESENTATION (PHOP,*,*,*) . . . . . . . . . . . . 386
INQUIRE PREDEFINED PATTERN REPRESENTATION (PHOP,*,*,*) . . . . . . . . . . . . . 388
INQUIRE PREDEFINED POLYLINE REPRESENTATION (PHOP,*,*,*) . . . . . . . . . . . . 389
INQUIRE PREDEFINED POLYMARKER REPRESENTATION (PHOP,*,*,*) . . . . . . . . . . . 391
INQUIRE PREDEFINED TEXT REPRESENTATION (PHOP,*,*,*) . . . . . . . . . . . . . . 392
Chapter 22. Implementation Errors and graPHIGS API Messages for ISO PHIGS-Defined Errors 517
Chapter 23. graPHIGS API Extensions and Compatibility with the ISO PHIGS Standard . . . . 521
graPHIGS API Extensions to the ISO PHIGS Standard . . . . . . . . . . . . . . . . . . 521
Compatibility between graPHIGS API Extensions and the ISO PHIGS Standard . . . . . . . . . 521
Chapter 24. graPHIGS API Deviations from the ISO PHIGS Standard . . . . . . . . . . . 527
Unsupported Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
Structure Building . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
Color Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
Traversal Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
Contents ix
Appendix. Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 530
Highlighting
The following highlighting conventions are used in this book:
Bold Identifies commands, subroutines, keywords, files, structures, directories, and other items
whose names are predefined by the system. Also identifies graphical objects such as
buttons, labels, and icons that the user selects.
Italics Identifies parameters whose actual names or values are to be supplied by the user.
Monospace Identifies examples of specific data values, examples of text similar to what you might see
displayed, examples of portions of program code similar to what you might write as a
programmer, messages from the system, or information you should actually type.
ISO 9000
ISO 9000 registered quality systems were used in the development and manufacturing of this product.
Related Publications
The following books contain information on graPHIGS API products:
v The graPHIGS Programming Interface: Subroutine Reference
v The graPHIGS Programming Interface: Technical Reference
v The graPHIGS Programming Interface: Understanding Concepts
Note: For more information, see The graPHIGS Programming Interface: Understanding Concepts.
Chapter 1. Introduction 3
4 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
Chapter 2. Control Subroutines
The control subroutines allow your application to have access to and control over the graphical resources
available when using the graPHIGS API*.
When an application opens the graPHIGS API, a nucleus, which is the collection of resources available to
your application, is connected to your application. When connected, you can open, update, or close
workstation resources.
Also invoke these subroutines to affect the timing of update operations and to explicitly control the update
and redraw operations on a workstation.
Use Close PHIGS to terminate all graPHIGS API processing for this application process. This subroutine
function detaches all attached resources created by the application and disconnects all nuclei connected to
the application. Close PHIGS closes files and releases system resources, such as storage and locks.
Close PHIGS sets the graPHIGS system state to graPHIGS Closed (PHCL). Reopen the graPHIGS API by
invoking the Open PHIGS subroutine.
Language Bindings
pclose_phigs();
FORTRAN
PCLPH
Errors
4 FUNCTION REQUIRES STATE (PHOP,WSCL,STCL,ARCL)
Related Subroutines
v Open PHIGS
Use Close Workstation to close the specified workstation. The workstation updates automatically before
closing.
This subroutine function releases the workstation state list and deletes the workstation’s identifier from the
set of opened workstations in the graPHIGS API state list. Additionally, it flushes the input queue of all
events from all input devices on that workstation, and releases the connection to the workstation. If no
workstation remains open, the workstation state is set to Workstation Closed (WSCL).
© Copyright IBM Corp. 1994, 2002 5
Close Workstation clears the workstation. For workstations that keep a local copy of the structure store,
the graPHIGS API frees the structure storage at this time.
Language Bindings
pclose_ws(ws_id);
Input Parameters
Pint ws_id
Workstation identifier.
FORTRAN
pcwlk(wkid)
Input Parameters
integer wkid
Workstation identifier.
Errors
3 FUNCTION REQUIRES STATE (PHOP,WSOP,*,*)
54 SPECIFIED WORKSTATION IS NOT OPEN
256 WARNING, INPUT QUEUE HAS OVERFLOWED
Related Subroutines
v Open Workstation.
v Inquire Set of Open Workstations.
MESSAGE (PHOP,WSOP,*,*)
Purpose
The message text appears in the lower left corner of the workstation viewport and the graPHIGS API clips
the message text to this viewport.
Deferral state settings do not affect the message. The message remains displayed until removed by
another message. Clear the message by calling Message with a length of zero.
The appearance (size and color) of the message text is workstation dependent. The graPHIGS API uses
the workstation’s primary character set to convert the text if necessary.
For more details, refer to the specificc device-support information in The graPHIGS Programming
Interface: Technical Reference.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier
const char *message
Message string to be displayed.
FORTRAN
Input Parameters
integer wkid
Workstation identifier
character*(*) mess
Message string to be displayed.
FORTRAN Subset
Input Parameters
integer wkid
Workstation identifier
integer lstr
Length of the message string in characters.
character*(*) mess
Message string to be displayed.
Errors
3 FUNCTION REQUIRES STATE (PHOP,WSOP,*,*)
54 SPECIFIED WORKSTATION IS NOT OPEN
Related Subroutines
None
Use Open PHIGS to open and initialize the graPHIGS API. Open PHIGS makes all the graPHIGS API
subroutines available. Call Open PHIGS before invoking most other graPHIGS API subroutines.
The External Defaults File (EDF) allows the application to modify the graPHIGS API system and
workstation defaults. See The graPHIGS Programming Interface: Technical Reference, ″Defaults and
Nicknames,″ for contents and formats of the External Defaults File (EDF).
When your application issues this Open PHIGS subroutine, the graPHIGS API implicitly connects to a
private nucleus, unless the EDF explicitly controls the connection to a specified nucleus. For your
application to use the 6090 workstation, you must indicate it by using the DEFNUC default in the External
Defaults File (EDF).
With Open PHIGS you cannot suppress nucleus creation via the External Defaults File (EDF).
The error file parameter determines the target for logged error messages.
To determine if the Open PHIGS subroutine was successful, use the Inquire System State Value
subroutine.
See The graPHIGS Programming Interface: Technical Reference, ″Defaults and Nicknames,″ for contents
and formats of the External Defaults File (EDF).
Language Bindings
Input Parameters
const char *err_file
Name of the error file. This parameter determines the target for logged error messages. Handling
of error messages varies depending on the error file character string and the environment (where
0<character string<=80). This parameter looks like a Unix file descriptor which consists of a
[path]/filename[extension]. Path is the route of directories through the file system on an AIX
system. Path is optional and ignored for MVS and VM. An example of a fullfile descriptor:
/phigs/errors/appl1
where:
v path = /phigs which says go from the root directory to directory phigs
v filename
v extension = .appl1
The following rules apply to the name depending on which system the shell is running in:
AIX If you did not specify the path, then the graPHIGS API uses the default directory at the
time of the execution of the subroutine.
MVS, MVS/XA
v filename - You must supply a filename. If you specify the extension, then as the
filename you must specify the member name within a partition data set. If you do not
specify the extension, then as the filename you must specify the DD-name of the
partition data set.
FORTRAN
Input Parameters
integer errfil
Name of the error file. This parameter determines the target for logged error messages.
(0=console, 1=afmerror). Handling of error messages varies depending on the error file and the
environment.
If the error file identifier has a value of 0:
AIX Messages are sent to stderr
MVS Messages are logged to the console.
VM Messages are logged to the console.
If the error file identifier has a value of 0:
AIX Filename afmerror.
MVS AFMERROR is the DDNAME of the dataset.
VM Filename AFMERROR and filetype AFMPELOG.
integer bufa
Amount of units of memory available for buffer area. The graPHIGS API ignores this parameter.
Errors
1 FUNCTION REQUIRES STATE (PHCL, WSCL, STCL, ARCL)
450 SPECIFIED ERROR FILE IS INVALID
Related Subroutines
v Close PHIGS
v Inquire System State Value
Use Open Workstation to open and initialize a specified workstation. This subroutine function sets the
workstation state value to Workstation Open (WSOP). The graPHIGS API requests the operating system
to establish the specified connection. This subroutine function allocates and initializes the Workstation
The graPHIGS API External Defaults File (EDF) allows the application to denote, indirectly, the actual
values of both the workstation type and the connection identifier. For more information, see The graPHIGS
Programming Interface: Technical Reference, “Defaults and Nicknames,” for contents and formats of the
External Defaults File (EDF).
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
const void *conn_id
Connection identifier indicates the physical device to be opened. See The graPHIGS Programming
Interface: Technical Reference for valid connection identifiers. The connection identifier is a pointer
to a character string.
Pint ws_type
One of the graPHIGS API supported workstation types (1=6090, 2=5080, 3=GDDM, 4=GDF,
5=CGM, 6=X, 8=XSOFT, 9=XPEX, 10=IMAGE). See The graPHIGS Programming Interface;
Technical Reference, for explanations of these workstation types.
FORTRAN
integer wkid
Workstation identifier.
integer conid
Connection identifier indicates the physical device to be opened. Select any integer value between
1 and 99999999 for a connection identifier. An association between this integer and a valid
connection string is then made via an EDF (External Defaults File). (See The graPHIGS
Programming Interface: Technical Reference for valid connection strings and explanations of the
EDF file).
For example, the connection identifier of ’*’ is attained if the EDF contains the line:
AFMMNICK CONNID=99, TOCONNID=*
None
Related Subroutines
Use Redraw All Structures to redraw all structures on the specified workstation.
When your application invokes this subroutine, the graPHIGS API executes all the actions in the sequence
outlined below:
1. The graPHIGS API executes all deferred actions for the specified workstation without an intermediate
clearing of the display surface
2. If the control flag is set to CONDITIONALLY, and only if the Display Surface Empty entry in the
Workstation State List (WSL) is set to NOTEMPTY, then the graPHIGS API clears the display surface.
If the control flag is set to ALWAYS, then the graPHIGS API clears the display surface regardless of
the setting of the Display Surface Empty entry. At the conclusion of this step, the graPHIGS API sets
the entry in the WSL to EMPTY.
3. If the view orientation matrix, view mapping matrix, view clipping limits, x to y clipping indicator, back
clipping indicator, or the front clipping indicator have changed for any view, then the graPHIGS API
assigns the current entries in the Workstation State List (WSL) to the corresponding values from the
requested entries. The Transformation Update State is set to NOTPENDING.
4. If the Hidden Line/Hidden Surface Removal (HLHSR) mode has changed, then the graPHIGS API
assigns the current WSL entry to the corresponding value from the requested entry. The HLHSR
Update State is set to NOTPENDING.
5. Finally the graPHIGS API retraverses all structures posted to this workstation. If the set of structures
associated with this workstation is not empty, retraversal usually sets the Display Surface Empty entry
in the WSL to NOTEMPTY. The graPHIGS API sets the state of visual representation in the WSL to
CORRECT.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier
Pctrl_flag ctrl_flag
Control flag (0=PFLAG_COND, 1=PFLAG_ALWAYS).
FORTRAN
Input Parameters
Errors
3 FUNCTION REQUIRES STATE (PHOP,WSOP,*,*)
54 SPECIFIED WORKSTATION IS NOT OPEN
59 SPECIFIED WORKSTATION DOES NOT HAVE OUTPUT CAPABILITY
Related Subroutines
v Update Workstation
Use Set Display Update State to set the deferral state and modification mode for the specified workstation
state list.
Possible deferral modes include: AS SOON AS POSSIBLE, BEFORE NEXT INTERACTION GLOBALLY,
BEFORE NEXT INTERACTION LOCALLY, AT SOME TIME,and WAIT. Possible modification modes
include: NO IMMEDIATE VISUAL EFFECTS, UPDATE WITHOUT REGENERATION, and USE QUICK
UPDATE METHOD.
These settings determine when pending updates are processed for display on a workstation and how the
workstation performs the modifications. For an explanation of the abbreviations and modes, see The
graPHIGS Programming Interface: Understanding Concepts. For specific workstation information, see the
section on “General Output Facilities” in The graPHIGS Programming Interface: Technical Reference.
Quick update methods are discussed in The graPHIGS Programming Interface: Writing Applications.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pdefer_mode def_mode
Deferral mode (0=PDEFER_ASAP, 1=PDEFER_BNIG, 2=PDEFER_BNIL, 3=PDEFER_ASTI,
4=PDEFER_WAIT).
Pmod_mode mod_mode
Modification mode (0=PMODE_NIVE, 1=PMODE_UWOR, 2=PMODE_UQUM).
FORTRAN
Input Parameters
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Related Subroutines
v Inquire Display Update State
v Inquire Default Display Update State
UPDATE WORKSTATION(PHOP,WSOP,*,*)
Purpose
This subroutine function executes all deferred actions for the specified workstation without intermediate
clearing of the display surface. If the regeneration flag is set to PERFORM and the state of visual
representation in the Workstation State List (WSL) is DEFERRED or SIMULATED, then the graPHIGS API
executes all the actions in the sequence outlined below:
1. If the Display Surface Empty entry in the Workstation State List (WSL) is set to NOTEMPTY, then the
graPHIGS API clears the display surface. At the conclusion of this step (Step 1), the graPHIGS API
sets the entry to EMPTY.
2. If the view orientation matrix, view mapping matrix, view clipping limits, x to y clipping indicator, back
clipping indicator, or the front clipping indicator have changed for any view, then the graPHIGS API
assigns the current entries in the Workstation State List (WSL) to the corresponding values from the
requested entries. The Transformation Update State is set to NOTPENDING.
3. If the Hidden Line/Hidden Surface Removal (HLHSR) mode has changed, then the graPHIGS API
assigns the current WSL entry to the corresponding value from the requested entry. The HLHSR
Update State is set to NOTPENDING.
4. The graPHIGS API re-displays all structures posted to this workstation. Usually, this action sets the
Display Surface Empty entry in the WSL to NOTEMPTY.
5. The state of visual representation is set to CORRECT in the WSL. If the state of visual representation
in the Workstation State List (WSL) is DEFERRED or SIMULATED and the regeneration flag is set to
PERFORM, then this subroutine is functionally equivalent to the Redraw All Structures subroutine.
When the regeneration flag is set to POSTPONE, the device sends the pending update information without
forcing a retraversal if possible. This function is workstation dependent.
Language Bindings
FORTRAN
PUWK(WKID, REGFL)
Input Parameters
INTEGER WKID
Workstation identifier.
INTEGER REGFL
Regeneration flag (0=PPOSTP, 1=PPERFO).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Related Subroutines
v Inquire Display Update State
For all two-dimensional output primitive subroutines, the z coordinate is assumed to equal zero by default.
If a specified workstation does not support a requested output primitive in a structure, then the graPHIGS
API updates only the element number in the graPHIGS traversal state list.
Note: When the application inserts an element into the open structure following the element pointer,
the pointer updates to that element.
Use Annotation Text Relative to insert a two-dimensional Annotation Text Relative 2 structure element into
the open structure following the element pointer or replace the element pointed at by the element pointer
with an Annotation Text Relative 2 structure element, depending on the current edit mode.
During structure traversal, this element annotates the specified reference point according to the annotation
style in the traversal state list. The specified annotation offset determines the position of the annotation
string. The annotation string defines the origin of a local text coordinate system relative to a specified
reference point after transformation to Normalized Projection Coordinates (NPC). The text plane is always
parallel to the x., y plane (z= transformed location) in NPC. If the resulting text position is outside the
usable NPC space [0,1]x[0,1]x[0,1], then the graPHIGS API may clip part or all of the string.
The graPHIGS API positions and renders the text string in the local coordinate system according to the
annotation text attributes in the traversal state list. If the graPHIGS API clips the specified reference point
to NPC during structure traversal, then no representation for this primitive is displayed. If the graPHIGS
API does not clip the reference point, then the graPHIGS API clips the displayed representation according
to the rules for the corresponding primitive type (e.g., text, polyline, etc.).
The graPHIGS API treats control characters in a character string as undefined characters and displays the
default for the character set. This default for the character set is the default character in the graPHIGS API
character set file. For U.S. English, this is the hyphen character (EBCDIC X’60’, ASCII X’2D’).
If the annotation style attribute entry in the PHIGS traversal state list is set to LEAD LINE, then after
transformation the graPHIGS API draws a single line segment from the specified reference point to the
origin of the local text coordinate system using the polyline attributes in the PHIGS traversal state list.
Language Bindings
Input Parameters
const Ppoint *ref_pt
Reference point in MC.
FORTRAN
Input Parameters
real rpx
x coordinate of the reference location, in MC, that is to be annotated.
real rpy
y coordinate of the reference location, in MC, that is to be annotated.
real apx
x component of the annotation offset in NPC. Determines the position of the annotation character
string (x component).
real apy
y component of the annotation offset in NPC. Determines the position of the annotation character
string (y component).
character*(*) chars
Annotation character string to be displayed.
FORTRAN Subset
Input Parameters
real rpx
x coordinate of the reference location, in MC, that is to be annotated.
real rpy
y coordinate of the reference location, in MC, that is to be annotated.
real apx
xcomponent of the annotation offset in NPC. Determines the position of the annotation character
string (xcomponent).
real apy
ycomponent of the annotation offset in NPC. Determines the position of the annotation character
string (ycomponent).
integer lstr
Length of string in characters.
character*80 chars
Annotation character string to be displayed.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Annotation Style
Use Annotation Text Relative 3 to insert an Annotation Text Relative 3 structure element into the open
structure following the element pointer or replace the element pointed at by the element pointer with an
Annotation Text Relative 3 structure element, depending on the current edit mode.
During structure traversal, this element annotates the specified reference point according to the annotation
style in the traversal state list. The specified annotation offset determines the position of the annotation
string. The annotation string defines the origin of a local text coordinate system relative to the specified
reference point after transformation to Normalized Projection Coordinates (NPC). The text plane is always
parallel to the x., y plane in NPC. If the resulting text position is outside the usable NPC space
[0,1]x[0,1]x[0,1], then the graPHIGS API may clip part or all of the string.
The graPHIGS API positions and renders the text string in the local coordinate system according to the
annotation text attributes in the traversal state list. If the graPHIGS API clips the specified reference point
to NPC during structure traversal, then no representation for this primitive is displayed. If the graPHIGS
API does not clip the specified reference point, then the graPHIGS API clips the displayed representation
according to the rules for the corresponding primitive type (e.g., text, polyline, etc.).
The graPHIGS API treats control characters in a character string as undefined characters and displays the
default for the character set. This default for the character set is the default character in the graPHIGS API
character set file. For U.S. English, this is the hyphen character (EBCDIC X’60’, ASCII X’2D’).
If the annotation style attribute entry in the PHIGS traversal state list is set to LEAD LINE, then after
transformation the graPHIGS API draws a single line segment from the specified reference point to the
origin of the local text coordinate system using the polyline attributes in the PHIGS traversal state list.
Language Bindings
Input Parameters
const Ppoint3 *ref_pt
Reference point in MC.
const Pvec3 *offset
Annotation offset in NPC. Determines the position of the annotation character string.
const char *char_string
Annotation character string to be displayed.
FORTRAN
Input Parameters
real rpx
x coordinate of the reference location, in MC, that is to be annotated.
real rpy
y coordinate of the reference location, in MC, that is to be annotated.
FORTRAN Subset
Input Parameters
real rpx
x coordinate of the reference location, in MC, that is to be annotated.
real rpy
y coordinate of the reference location, in MC, that is to be annotated.
real rpz
z coordinate of the reference location, in MC, that is to be annotated.
real apx
xcomponent of the annotation offset in NPC. Determines the position of the annotation character
string (xcomponent).
real apy
ycomponent of the annotation offset in NPC. Determines the position of the annotation character
string (ycomponent).
real apz
z component of the annotation offset in NPC. Determines the position of the annotation character
string (z component).
integer lstr
Length of string in characters.
character*80 chars
Annotation character string to be displayed.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Annotation Style
This structure element defines a two-dimensional array of cells with individual colors. The primitive is
defined by two points, P and Q, which define a rectangle aligned with the modeling coordinate axes. This
rectangle is conceptually divided into a grid of DX by DY cells. Each cell has a width of |PX-QX|/DX, and a
height of |PY-QY|/DY, where (PX,PY) are the coordinates of the corner point P, and (QX,QY) are the
coordinates of the corner point Q. The color of each cell is specified by the index of the corresponding
element of the color index array. The color indexes are mapped into the two-dimensional cell array on a
row-wise basis starting at corner (PX,PY) and proceeding to corner Q and so on. If an index is not present
in the color table on a workstation, then the graPHIGS API uses an index value of 1 on that workstation.
When the graPHIGS API encounters an element of this type, it does a minimal simulation by drawing the
transformed boundaries of the cell rectangle using polyline color, a line width value of 1, and a line type of
SOLID.
Language Bindings
Input Parameters
const Prect *rect
Cell rectangle in MC.
const Ppat_rep *colr_array
Color array.
FORTRAN
PCA (px, py, qx, qy, dimx, dimy, isc, isr, dx, dy, colia)
Input Parameters
real px
x coordinate of the point P in MC.
real py
y coordinate of the point P in MC.
real qx
x coordinate of the point Q in MC.
real qy
y coordinate of the point Q in MC.
integer dimx
x dimension of COLIA which contains the cell array.
integer dimy
y dimension of COLIA which contains the cell array.
integer isc
Index of the start column of the cell array within COLIA.
integer isr
Index of the start row of the cell array within COLIA.
Errors
5 Function Requires State (PHOP,*,STOP,*)
117 One Dimension Of Color Index Array < Zero
113 Color Index Value < ZERO
Related Subroutines
v Set Polyline Color Index
Use Cell Array 3 to create a three-dimensional cell array primitive, and insert it into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Cell Array 3
structure element, depending on the current edit mode.
This structure element defines a two-dimensional array of cells with individual colors. The plane in which
the Cell Array 3 primitive lies is defined by three points, P, Q, and R, given in modeling coordinates (MC).
A parallelogram is defined by the points P, Q, and R, and (QX+RX-PX, QY+RY-PY, QZ+RZ-PZ). This
parallelogram is conceptually divided into a grid of DX by DY cells, where DX and DY are the dimensions
of the color index array. The color of each cell is specified by the index of the corresponding element of
the color index array. The color indexes are mapped from the two-dimensional cell array on a row-wise
basis starting at corner P and proceeding to corner Q and so on. If an index is not present in the color
table on a workstation, then the graPHIGS API uses an index value of 1 on that workstation.
When the graPHIGS API encounters an element of this type, it does a minimal simulation by drawing the
transformed boundaries of the cell parallelogram using polyline color, a line width value of 1, and a line
type of SOLID.
Language Bindings
Input Parameters
const Pparal *paral
Cell parallelogram in MC.
const Ppat_rep *colr_array
Color array.
FORTRAN
PCA3 (cpxa, cpya, cpza, dimx, dimy, isc, isr, dx, dy, colia)
Errors
5 Function Requires State (PHOP,*,STOP,*)
117 One Dimension Of Color Index Array < Zero
113 Color Index Value < ZERO
Related Subroutines
v Set Polyline Color Index
Use Fill Area to specify a two-dimensional fill area primitive with the z coordinate assumed to be zero, and
insert it into the open structure following the element pointer or replace the element pointed at by the
element pointer with a Fill Area structure element, depending on the current edit mode.
This structure element defines the boundary of a contour which may be hollow or filled with a uniform
color, a pattern, or a hatch style. The graPHIGS API displays the boundary of the primitive without an
edge.
The graPHIGS API places all points specified in the x-y plane. The graPHIGS API applies interior
attributes to this primitive.
Language Bindings
pfill_area (point_list)
Input Parameters
const Ppoint_list *point_list
List of points in MC.
FORTRAN
Input Parameters
integer n
Number of points.
real pxa(n)
x coordinates of points in MC.
real pya(n)
y coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Interior Style
v Set Interior Style Index
v Set Interior Representation
v Set Interior Index
v Set Interior Color Index
Use Fill Area 3 to specify a three-dimensional fill area 3 primitive element and insert it into the open
structure following the element pointer or replace the element pointed at by the element pointer with a Fill
Area 3 structure element, depending on the current edit mode.
This structure element defines the boundary of a contour which may be hollow or filled with a uniform
color, a pattern, or a hatch style. The graPHIGS API displays the boundary of the primitive without an
edge.
All points specified must lie in the same plane, but the graPHIGS API does not check to verify this. The
system behavior is undefined when the points are not coplanar.
Language Bindings
pfill_area3 (point_list)
Input Parameters
const Ppoint_list3 *point_list
List of points in MC.
FORTRAN
Input Parameters
integer n
Number of points.
real pxa (n)
x coordinates of points in MC.
real pya (n)
y coordinates of points in MC.
real pza (n)
z coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Interior Style
v Set Interior Style Index
v Set Interior Representation
v Set Interior Index
v Set Interior Color Index
Use Fill Area Set to specify a two-dimensional fill area set primitive with the z coordinate assumed to be
zero, and insert it into the open structure following the element pointer or replace the element pointed at
by the element pointer with a Fill Area Set structure element, depending on the current edit mode.
This structure element defines the boundary of contours which may be hollow or filled with a uniform color,
a pattern, or a hatch style. Each list of points defines a subarea and each subarea is implicitly closed. The
graPHIGS API displays the boundary of the primitive with an edge.
The graPHIGS API places all points specified in the x-y plane. The graPHIGS API applies interior and
edge attributes to this primitive.
Language Bindings
pfill_area_set (point_list)
Input Parameters
const Ppoint_list_list *point_list_list
List of point lists in MC.
FORTRAN
Input Parameters
integer npl
Number of point lists.
integer ixa(npl)
Array of end indexes for the point lists.
real pxa (*)
x coordinates of points in MC.
real pya (*)
y coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Interior Style
v Set Interior Style Index
v Set Interior Representation
v Set Interior Index
v Set Interior Color Index
v Set Edgewidth Scale Factor
v Set Edgetype
v Set Edge Color Index
v Set Edge Index
Use Fill Area Set 3 to specify a three-dimensional fill area set primitive element and insert it into the open
structure following the element pointer or replace the element pointed at by the element pointer with a Fill
Area Set 3 structure element, depending on the current edit mode.
This structure element defines the boundary of contours which may be hollow or filled with a uniform color,
a pattern, or a hatch style. Each list of points defines a subarea and each subarea is implicitly closed. The
graPHIGS API displays the boundary of the primitive with an edge.
The graPHIGS API applies interior and edge attributes to this primitive.
Language Bindings
pfill_area_set3 (point_list_list)
Input Parameters
const Ppoint_list_list3 *point_list_list
List of point lists in MC.
FORTRAN
Input Parameters
integer npl
Number of point lists.
integer ixa(npl)
Array of end indexes for the point lists.
real pxa (*)
x coordinates of points in MC.
real pya (*)
y coordinates of points in MC.
real pza (*)
z coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Interior Style
v Set Interior Style Index
v Set Interior Representation
v Set Interior Index
v Set Interior Color Index
v Set Edgewidth Scale Factor
v Set Edgetype
v Set Edge Color Index
v Set Edge Index
There are no GDP identifiers currently defined by the graPHIGS API. Therefore, when the graPHIGS API
encounters this type of element, it does not display the primitive nor does it generate an error. However,
GDPs are available through the GPxxxx subroutines. See The graPHIGS Programming Interface:
Subroutine Reference for details.
Language Bindings
Input Parameters
const Ppoint_list *point_list
List of points.
Pint gdp_id
GDP identifier.
const Pgdp_data *gdp_data
GDP data record.
FORTRAN
Input Parameters
integer n
Number of points (>=0).
real pxa (*)
x coordinates of points in MC.
real pya (*)
y coordinates of points in MC.
integer primid
GDP identifier.
integer ldr
Dimension of the GDP data record array.
character*80 datrec(ldr)
GDP data record.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Generalized Drawing Primitive 3 to specify a three-dimensional generalized drawing primitive (GDP 3)
element and insert it into the open structure following the element pointer or replace the element pointed
at by the element pointer with a Generalized Drawing Primitive 3 structure element, depending on the
current edit mode.
There are no GDP 3 identifiers currently defined by the graPHIGS API. Therefore, when the graPHIGS API
encounters this type of element, it does not display the primitive nor does it generate an error. However,
GDPs are available through the GPxxxx subroutines. See The graPHIGS Programming Interface:
Subroutine Reference for details.
Language Bindings
Input Parameters
const Ppoint_list3 *point_list
List of points.
Pint gdp3_id
GDP 3 identifier.
const Pgdp_data3 *gdp_data
GDP 3 data record.
FORTRAN
Input Parameters
integer n
Number of points (>=0).
real pxa (*)
x coordinates of points in MC.
real pya (*)
y coordinates of points in MC.
real pza (*)
z coordinates of points in MC.
integer primid
GDP 3 identifier.
integer ldr
Dimension of the GDP 3 data record array.
character*80 datrec(ldr)
GDP 3 data record.
Errors
Related Subroutines
v None
POLYLINE (PHOP,*,STOP,*)
Purpose
Use Polyline to create a two-dimensional polyline element and insert it into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Polyline structure element,
depending on the current edit mode.
This structure element defines a list of two-dimensional points (x, y) (the z coordinate is assumed to be
zero) that the graPHIGS API is to connect by straight lines starting with the first point and ending with the
last point.
If the application specifies one or less points, then no output is generated. If two contiguous points are the
same point, then the graPHIGS API generates a point of one pixel in size.
Language Bindings
ppolyline (point_list)
Input Parameters
const Ppoint_list *point_list
List of points in MC.
FORTRAN
Input Parameters
integer n
Number of points (>=0).
real pxa (n)
x coordinates of points in MC.
real pya (n)
y coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Linetype
v Set Linewidth Scale Factor
v Set Polyline Index
Use Polyline 3 to create a three-dimensional polyline element and insert it into the open structure following
the element pointer or replace the element pointed at by the element pointer with a Polyline 3 structure
element, depending on the current edit mode.
This structure element defines a list of three-dimensional points (x, y, z) that the graPHIGS API is to
connect by straight lines starting with the first point and ending with the last point.
If the application specifies one or less points, then no output is generated. If two contiguous points are the
same point, then the graPHIGS API generates a point of one pixel in size.
Language Bindings
ppolyline3 (point_list)
Input Parameters
const Ppoint_list3 *point_list
List of points in MC.
FORTRAN
Input Parameters
integer n
Number of points (>=0).
real pxa (n)
x coordinates of points in MC.
real pya (n)
y coordinates of points in MC.
real pza (n)
z coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Linetype
v Set Linewidth Scale Factor
v Set Polyline Color Index
v Set Polyline Index
Use Polymarker to create a two-dimensional polymarker element and insert it into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Polymarker
structure element, depending on the current edit mode.
This structure element defines a list of two-dimensional points (x, y) that the graPHIGS API identifies by
markers and renders in Device Coordinate (DC) space parallel to the display surface.
Language Bindings
ppolymarker (point_list)
Input Parameters
const Ppoint_list *point_list
List of points in MC.
FORTRAN
Input Parameters
integer n
Number of points (>=0).
real pxa (n)
x coordinate of points in MC.
real pya (n)
y coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Marker Type
v Set Marker Size Scale Factor
v Set Polymarker Color Index
v Set Polymarker Index
POLYMARKER 3 (PHOP,*,STOP,*)
Purpose
This structure element defines a list of three-dimensional points (x, y, z) that the graPHIGS API identifies
by markers and renders in Device Coordinate (DC) space parallel to the display surface.
Language Bindings
ppolymarker3 (point_list)
Input Parameters
const Ppoint_list3 *point_list
List of points in MC.
FORTRAN
Input Parameters
integer n
Number of points (>=0).
real pxa (n)
x coordinates of points in MC.
real pya (n)
y coordinates of points in MC.
real pza (n)
z coordinates of points in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Marker Type
v Set Marker Size Scale Factor
v Set Polymarker Color Index
v Set Polymarker Index
TEXT (PHOP,*,STOP,*)
Purpose
Use Text to insert a two-dimensional, geometric text element into the open structure following the element
pointer or replace the element pointed at by the element pointer with a Text structure element, depending
on the current edit mode.
The graPHIGS API treats control characters in a character string as undefined characters and displays the
default for the character set. This default for the character set is the default character in the graPHIGS API
character set file. For U.S. English, this is the hyphen character (EBCDIC X’60’, ASCII X’2D’).
Language Bindings
Input Parameters
const Ppoint *text_pos
Text position in MC.
const char *char_string
Character string.
FORTRAN
Input Parameters
real px
x coordinate of text position in MC.
real py
y coordinate of text position in MC.
character*(*) chars
Text to be displayed.
FORTRAN Subset
Input Parameters
real px
x coordinate of text position in MC.
real py
y coordinate of text position in MC.
integer lstr
Length of text string in bytes (>=0).
character*80 chars
Text to be displayed.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
TEXT 3 (PHOP,*,STOP,*)
Purpose
Use Text 3 to insert a three-dimensional, geometric text element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Text 3 structure element,
depending on the current edit mode.
This structure element specifies a string of geometric text that the graPHIGS API draws on the plane
defined by the specified text position and reference vectors.
Two vector definitions orient a local coordinate system, within which the text is positioned. The two
reference vectors and the text position define the plane in which the text is drawn. The first vector defines
the xaxis of the local coordinate system. The second reference vector defines the half plane of the text in
which the positive yaxis lies. The directions specified by Character Up Vector and Text Path attributes are
relative to this coordinate system.
If the direction vectors fail to define a local coordinate system (i.e., one of the vectors is zero in length or
the vectors are parallel), then the graPHIGS API stores the values (1,0,0) and (0,1,0) in the element.
The graPHIGS API treats control characters in a character string as undefined characters and displays the
default for the character set. This default for the character set is the default character in the graPHIGS API
character set file. For U.S. English, this is the hyphen character (EBCDIC X’60’, ASCII X’2D’).
Language Bindings
Input Parameters
const Ppoint3 *text_pos
Text position in MC.
const Pvec3 text_dir[2]
Text direction vectors in MC.
const char *char_string
Character string to be displayed.
Input Parameters
real px
x coordinate of text position in MC.
real py
y coordinate of text position in MC.
real pz
z coordinate of text position in MC.
real tdx(2)
x coordinates of the text direction vectors in MC.
real tdy(2)
y coordinates of the text direction vectors in MC.
real tdz(2)
z coordinates of the text direction vectors in MC.
character*(*) chars
Character string to be displayed.
FORTRAN Subset
Input Parameters
real px
x coordinate of text position in MC.
real py
y coordinate of text position in MC.
real pz
z coordinate of text position in MC.
real tdx(2)
x coordinates of the text direction vectors in MC.
real tdy(2)
y coordinates of the text direction vectors in MC.
real tdz(2)
z coordinates of the text direction vectors in MC.
integer lstr
Length of text string in bytes (>=0).
character*80 chars
Character string to be displayed.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Text Facilities
34 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
v Set Character Expansion Factor
v Set Character Height
v Set Character Spacing
v Set Character Up Vector
v Set Text Alignment
v Set Text Color Index
v Set Text Font
v Set Text Index
v Set Text Path
v Set Text Precision
This group of subroutines creates structure elements and requires that the structure state is Structure
Open (STOP). When the graPHIGS API encounters the elements in this section at structure traversal time,
it modifies the current traversal time registers.
Your application can specify some attribute values directly through a structure element or indirectly by
using an index to a bundle table in the Workstation State List (WSL). During structure traversal, the current
Attribute Source Flag (ASF) setting determines whether the graPHIGS API draws a primitive using an
individual or bundled value of an attribute. For a complete discussion of attributes, see The graPHIGS
Programming Interface: Understanding Concepts.
For attribute values supported on a specific workstation, use the appropriate Inquiry programming
subroutines or see The graPHIGS Programming Interface: Technical Reference.
Use Add Names to Set to insert an Add Names to Set structure element into the open structure following
the element pointer or replace the element pointed at by the element pointer with an Add Names to Set
structure element, depending on the current edit mode.
During structure traversal, this structure element adds the specified class names to the current class set.
The traversal default is a null name set.
Class names let an application control the eligibility of a primitive for pickability (detectability), highlighting,
and invisibility by associating the primitive with a class set.
When the graPHIGS API encounters a primitive during structure traversal, the primitive belongs to the
classes contained in the current class set. If the workstation does not support a specified name, then the
graPHIGS API ignores the name and the name has no affect on the primitive.
Also use names to create inclusion and exclusion filters for the specified workstation. The graPHIGS API
uses these filters in conjunction with the class set traversal state to determine whether pickability,
highlighting, and visibility apply. The filters act independently of each other. During structure traversal, the
graPHIGS API compares the current class set to the current filters.
For a complete discussion of class names and filters, see The graPHIGS Programming Interface:
Understanding Concepts.
Language Bindings
padd_names_set(names)
Input Parameters
const Pint_list *names
Name set to be added.
PADS(n, namset)
Input Parameters
integer n
Number of names in the set.
integer namset(n)
Name set to be added.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire PHIGS Facilities
v Remove Names From Set
v Set Highlighting Filter
v Set Invisibility Filter
v Set Pick Filter
Use Remove Names from Set to insert a Remove Names from Set structure element into the open
structure following the element pointer or replace the element pointed at by the element pointer with a
Remove Names from Set structure element, depending on the current edit mode.
The class set traversal state consists of a list of class names. During structure traversal, this structure
element removes one or more names from the list but does not completely replace the traversal state as
other attributes do.
Class names let an application control the eligibility of a primitive for pickability (detectability), highlighting,
and invisibility by associating the primitive with a class set. The child structures inherit the effects of adding
a class name to or removing a class name from the current class set.
When the graPHIGS API encounters a primitive during structure traversal, it uses the list of class names in
the class set to determine the pickability (detectability), highlighting, and invisibility aspects. If the
workstation does not support a specified name, then the graPHIGS API ignores the name and the name
has no effect on the primitive.
Also use class names to create inclusion and exclusion filters for the specified workstation. The graPHIGS
API uses these filters in conjunction with the class set traversal state to determine whether pickability,
highlighting, and visibility apply. The filters act independently of each other. During structure traversal, the
graPHIGS API compares the current class set to the current filters. When root structure traversal begins,
the current class set is null.
For a complete discussion of class names and filters, see The graPHIGS Programming Interface:
Understanding Concepts.
Language Bindings
premove_names_set (names)
Input Parameters
const Pint_list *names
Name set to be removed.
FORTRAN
Input Parameters
integer n
Number of names in the set.
integer namset(n)
Name set to be removed.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Add Names To Set
v Inquire PHIGS Facilities
Use Set Annotation Style to insert a Set Annotation Style structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set
Annotation Style structure element, depending on the current edit mode.
During structure traversal, this structure element sets the current annotation style entry in the graPHIGS
traversal state list to the value specified by the annotation style parameter to render subsequent
annotation text primitives. For annotation style LEAD LINE, the graPHIGS API uses the current polyline
attributes to render the lead line.
If the workstation does not support the specified annotation style or the specified style is outside the
allowable range, then the annotation style defaults to UNCONNECTED.
Language Bindings
pset_anno_style (anno_style)
Input Parameters
FORTRAN
PSANS (astyle)
Input Parameters
integer astyle
Annotation style (1=PUNCON, 2=PLDLN).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Annotation Text Relative
v Annotation Text Relative 3
v Inquire Annotation Facilities
Use Set Annotation Text Alignment to insert a Set Annotation Text Alignment structure element into the
open structure following the element pointer or replace the element pointed at by the element pointer with
a Set Annotation Text Alignment structure element, depending on the current edit mode.
At structure traversal time, this structure element specifies the alignment the graPHIGS API uses to render
all subsequent annotation text primitives.
The alignment values affect the manner in which the graPHIGS API positions the annotation text extent
rectangle in relation to the text position.
The traversal default for annotation alignment is NORMAL for both horizontal and vertical alignment.
For more information concerning annotation text and annotation text attributes, see The graPHIGS
Programming Interface: Understanding Concepts.
Language Bindings
pset_anno_align (text_align)
Input Parameters
const Ptext_align *text_align
Annotation text alignment.
FORTRAN
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Text Precision
Use Set Annotation Text Character Height to insert a Set Annotation Text Character Height structure
element into the open structure following the element pointer or replace the element pointed at by the
element pointer with a Set Annotation Text Character Height structure element, depending on the current
edit mode.
The application specifies the annotation text character height with respect to the annotation text local
coordinate system; that is a two-dimensional coordinate system parallel to the NPC (Normalized Projection
Coordinates) x-y plane. The graPHIGS API multiplies the absolute value of the specified height by the
scale factor of the current workstation transformation and then maps the result to the closest available
height on the workstation.
The traversal default value for annotation text character height is 0.01.
For more information concerning annotation text and annotation text attributes, see The graPHIGS
Programming Interface: Understanding Concepts.
Language Bindings
pset_anno_char_ht (char_ht)
Input Parameters
Pfloat char_ht
Annotation text character height.
FORTRAN
PSATCH (atchh)
Input Parameters
real atchh
Annotation text character height.
Errors
Related Subroutines
v Inquire Annotation Facilities
Use Set Annotation Text Character Up Vector to insert a Set Annotation Text Character Up Vector structure
element into the open structure following the element pointer or replace the element pointed at by the
element pointer with a Set Annotation Text Character Up Vector structure element, depending on the
current edit mode.
At structure traversal time, this structure element specifies the y-axis direction of the text coordinate
system for characters in a text string that the graPHIGS API uses to render all subsequent annotation text
primitives. When rendering annotation text primitives, the graPHIGS API uses the annotation up vector
along with a default annotation base vector set at right angles in the clockwise direction to the annotation
up vector.
The traversal default value for annotation up vector is 0.0, 1.0 and for annotation base vector the traversal
default value is 1.0, 0.0.
If the annotation up vector is invalid, then the vector value defaults to a value of 0.0, 1.0, and a base
vector value of 1.0, 0.0.
The graPHIGS API normalizes the specified vector. If the application later inquires the content of this
structure element, then the graPHIGS API returns the normalized vector, not the original vector specified
by this subroutine.
For more information concerning annotation text and annotation text attributes, see The graPHIGS
Programming Interface: Understanding Concepts.
Language Bindings
pset_anno_char_up_vec (char_up_vec)
Input Parameters
const Pvec *char_up_vec
Annotation text character up vector.
FORTRAN
Input Parameters
real atchux
x offset of the annotation text character up vector.
real atchuy
y offset of the annotation text character up vector.
Related Subroutines
v Set Text Precision
Use Set Annotation Text Path to insert a Set Annotation Text Path structure element into the open
structure following the element pointer or replace the element pointed at by the element pointer with a Set
Annotation Text Path structure element, depending on the current edit mode.
This structure element specifies the writing direction of characters in a text string relative to the Annotation
Up Vector. At structure traversal time, the graPHIGS API uses this path value to render all subsequent
annotation text primitives.
If the workstation does not support the specified path value or the specified value is outside the allowable
range, then the annotation path value defaults to RIGHT.
For more information concerning annotation text and annotation text attributes, see The graPHIGS
Programming Interface: Understanding Concepts.
Language Bindings
pset_anno_path (text_path)
Input Parameters
Ptext_path text_path
Annotation text path (0=PPATH_RIGHT, 1=PPATH_LEFT, 2=PPATH_UP, 3=PPATH_DOWN).
FORTRAN
PSATP (atp)
Input Parameters
integer atp
Annotation text path (0=PRIGHT, 1=PLEFT, 2=PUP, 3=PDOWN).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Text Precision
Use Set Character Expansion Factor to insert a Set Character Expansion Factor structure element into the
open structure following the element pointer or replace the element pointed at by the element pointer with
a Set Character Expansion Factor structure element, depending on the current edit mode.
At structure traversal time, this structure element specifies the character expansion factor that the
graPHIGS API uses to render all subsequent text primitives when the character expansion aspect source
flag value is set to INDIVIDUAL ( SET INDIVIDUAL ASF (PHOP,*,STOP,*)).
The value is a fraction of the width/height ratio that the font designer specified. A value of 1.0 reproduces
the font designer’s width/height ratio.
When the graPHIGS API encounters an element of this type, it uses the absolute value of the specified
character expansion factor. If the workstation does not support a continuous range of character expansion
factors, then the graPHIGS API uses the closest supported value.
Language Bindings
pset_char_expan (char_expan)
Input Parameters
Pfloat char_expan
Character expansion factor.
FORTRAN
PSCHXP (chxp)
Input Parameters
real chxp
Character expansion factor.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Annotation Facilities
v Inquire Predefined Text Representation
v Inquire Text Facilities
v Set Individual ASF
v Set Text Precision
This structure element specifies the character height in Modeling Coordinate (MC) space that the
graPHIGS API uses when rendering subsequent geometric text primitives.
When the graPHIGS API encounters an element of this type, it uses the absolute value of the specified
character height. If the workstation does not support a continuous range of character heights, then the
graPHIGS API uses the closest supported value.
Language Bindings
pset_char_ht (char_ht)
Input Parameters
Pfloat char_ht
Character height.
FORTRAN
PSCHH (chh)
Input Parameters
real chh
Character height.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Text Facilities
Use Set Character Spacing to insert a Set Character Spacing structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set
Character Spacing structure element, depending on the current edit mode.
At structure traversal time, this structure element specifies the additional amount of space that the
graPHIGS API inserts between characters to render all subsequent text primitives when the character
spacing aspect source flag value is set to INDIVIDUAL (Set Individual ASF).
pset_char_space (char_space)
Input Parameters
Pfloat char_space
Character spacing.
FORTRAN
PSCHSP (chsp)
Input Parameters
real chsp
Character spacing.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Predefined Text Representation
v Set Individual ASF
v Set Text Precision
Use Set Character Up Vector to insert a Set Character Up Vector structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set
Character Up Vector structure element, depending on the current edit mode.
During structure traversal, this structure element sets the current character up vector in the graPHIGS
traversal state list to the specified value. The base vector entry is reset to the vector that is obtained by
rotating the up vector 90 degrees clockwise.
The character up vector specifies the direction of the font coordinate y-axis within the text reference
coordinate system. The character base vector specifies the direction of the font coordinate x-axis within
the text reference coordinate system.
At structure traversal time, this structure element specifies the y-axis direction of the text coordinate
system for characters in a text string that the graPHIGS API uses to render all subsequent geometric text
primitives. The character up vector is a two-dimensional vector on the text plane specified by the text
primitive. When rendering text primitives, the graPHIGS API uses the character up value along with a
default annotation base vector set at right angles in the clockwise direction to the character up value.
The traversal default value for character up vector is 0.0, 1.0 and the traversal default value for character
base vector is 1.0, 0.0.
The graPHIGS API normalizes the specified vector. If the application later inquires the content of this
structure element, then the graPHIGS API returns the normalized vector, not the original vector specified
by this subroutine.
Language Bindings
pset_char_up_vec (char_up_vec)
Input Parameters
const Pvec *char_up_vec
Character up vector.
FORTRAN
Input Parameters
real chux
x offset of character up vector.
real chuy
y offset of character up vector.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Text Precision
Use Set Edge Color Index to insert a Set Edge Color Index structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set Edge
Color Index structure element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s rendering color table that defines the color
the graPHIGS API will use to render the edges of all output primitives to which this attribute applies. At
structure traversal time, the graPHIGS API uses this index to render the edges of output primitives when
the edge color aspect source flag value is set to INDIVIDUAL (Set Individual ASF) and the edge flag is set
to ON (Set Edge Flag).
If the workstation does not support the specified color index value or the specified index is outside the
color table limit, then the color index defaults to a value of 1.
pset_edge_colr_ind (edge_colr_ind)
Input Parameters
Pint edge_colr_ind
Edge color index.
FORTRAN
PSEDCI (coli)
Input Parameters
integer coli
Edge color index.
Errors
5 Function Requires State (PHOP,*,STOP,*)
113 Color Index Value < ZERO
Related Subroutines
v Inquire Edge Representation
v Inquire Predefined Edge Representation
v Set Individual ASF
Use Set Edge Flag to insert a Set Edge Flag structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Edge Flag structure
element, depending on the current edit mode.
This structure element indicates whether or not the graPHIGS API draws the edge of subsequent polygon
primitives during structure traversal. The graPHIGS API uses the specified value if the aspect source flag
value is set to INDIVIDUAL (Set Individual ASF).
If the workstation does not support the specified edge flag value or if the specified value is outside the
allowable range, then the edge flag defaults to OFF.
Language Bindings
pset_edge_flag (edge_flag)
Input Parameters
FORTRAN
PSEDFG (edflag)
Input Parameters
integer edflag
Edge flag (0=POFF, 1=PON).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Edge Facilities
v Inquire Predefined Edge Representation
v Set Individual ASF
Use Set Edge Index to insert a Set Edge Index structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Edge Index structure
element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s edge bundle table. The entry contains
attribute settings for edge flag, edge line type, edge scale factor, and edge color. At structure traversal
time, the graPHIGS API uses these attribute settings to render all subsequent fill area set primitives for
those attributes which have an aspect source flag value set to BUNDLED (Set Individual ASF).
If the workstation does not support the specified index or the specified index is outside the edge table size,
then the edge index defaults to a value of 1.
Language Bindings
pset_edge_ind (edge_ind)
Input Parameters
Pint edge_ind
Edge index (>=1).
FORTRAN
PSEDI (edi)
Input Parameters
Errors
5 Function Requires State (PHOP,*,STOP,*)
100 Bundle Index Value Is Less Than One
Related Subroutines
v Inquire Edge Representation
v Inquire Workstation State Table Lengths
v Set edge Representation
Use Set Edgetype to insert a Set Edgetype structure element into the open structure following the element
pointer or replace the element pointed at by the element pointer with a Set Edgetype structure element,
depending on the current edit mode.
This structure element specifies an index into a workstation line type table that contains line types. The
graPHIGS API uses this index to render the edges of all subsequent output primitives if the corresponding
edge flag is set to ON (Set Edge Flag). At structure traversal time, the graPHIGS API uses this line type to
render the edges of output primitives when the line type of an edge aspect source flag is set to
INDIVIDUAL (Set Individual ASF). Possible edge line types include: 1=SOLID, 2=DASHED, 3=DOTTED,
and 4=DASHED-DOTTED.
If the workstation does not support the specified index or the specified index is outside the allowable
range, then the edge index defaults to SOLID (edgetype).
Language Bindings
pset_edgetype (edgetype)
Input Parameters
Pint edgetype
Edge type (1=PLINE_SOLID, 2=PLINE_DASH, 3=PLINE_DOT, 4=PLINE_DASH_DOT).
FORTRAN
PSEDT (edtype)
Input Parameters
integer edtype
Edge type (1=PLSOLI, 2=PLDASH, 3=PLDOT, 4=PLDASD).
Errors
Related Subroutines
v Inquire Edge Representation
v Inquire Predefined Edge Representation
v Set edge Representation
v Set Individual ASF
Use Set Edgewidth Scale Factor to insert a Set Edgewidth Scale Factor structure element into the open
structure following the element pointer or replace the element pointed at by the element pointer with a Set
Edgewidth Scale Factor structure element, depending on the current edit mode.
This structure element specifies a value that the graPHIGS API uses to determine how wide to draw the
edges of subsequent output primitives to which this attribute applies. At structure traversal time, the
graPHIGS API uses this scale factor to determine the width of the edge when the edgewidth scale factor
aspect source flag is set to INDIVIDUAL (Set Individual ASF).
The edge scale factor element specifies the edge’s width as a fraction of the nominal edgewidth. The
device support multiplies this scale factor times the nominal width of a line on the corresponding device to
determine the requested width. The graPHIGS API maps the calculated value to the closest width
available on the device. A scale factor value of 1.0, which is the traversal default, generates a nominal size
line on any workstation.
Language Bindings
pset_edgewidth (edgewidth)
Input Parameters
Pfloat edgewidth
Edgewidth scale factor.
FORTRAN
PSEWSC (ewidth)
Input Parameters
real ewidth
Edgewidth scale factor.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Edge Flag
v Inquire Edge Representation
Use Set HLHSR Identifier to insert a Set HLHSR Identifier structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set HLHSR
Identifier structure element, depending on the current edit mode. During structure traversal, the graPHIGS
API sets the current Hidden Line/Hidden Surface Removal (HLHSR) identifier entry of the graPHIGS
traversal state list to the specified parameter.
The application uses this value when creating subsequent output primitives in a view with a HLHSR mode
other than OFF.
If the workstation does not support the specified HLHSR identifier or the specified identifier is outside the
allowable range, then the HLHSR identifier defaults to a value of 0. In a view with HLHSR mode set to
OFF, this value is ignored and has no affect on the visualization of primitives.
HLHSR processing is often implemented by use of a z-buffer and a frame buffer. The following table
summarizes the effect of the various HLHSR identifiers on the z- buffer and the frame buffer:
Table 1. HLHSR Processing: Summary of when the frame buffer and the z-buffer are updated.
z-buffer Frame buffer
0=Visualize if not hidden Zprim >= Zbuf Zprim >= Zbuf
1=Visualize if hidden Zprim < Zbuf Never
2=Visualize always Always Always
3=Not Visualize Never Zprim >= Zbuf
4=Face-dependent Visualization
Front-facing Areas Zprim >= Zbuf Zprim >= Zbuf
Back-facing Areas Zprim > Zbuf Zprim > Zbuf
5=No Update Never Never
6=Greater than Zprim > Zbuf Zprim > Zbuf
7=Equal to Zprim = Zbuf Zprim = Zbuf
8=Less than Zprim < Zbuf Zprim < Zbuf
9=Not Equal Zprim <> Zbuf Zprim <> Zbuf
10=Less than or Equal to Zprim <= Zbuf Zprim <= Zbuf
Note: The actual update of the z-buffer and/or the frame buffer may be prohibited by the use of the
z-buffer protect mask and the frame buffer protect mask.
Language Bindings
pset_hlhsr_id (hlhsr_id)
Input Parameters
Pint hlhsr_id
HLHSR identifier.
PSHRID(hrid)
Input Parameters
integer hrid
HLHSR identifier.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire HLHSR Identifier Facilities
v Inquire HLHSR Mode Facilities
v Set HLHSR Mode
Use Set Individual ASF to insert a Set Individual ASF (Attribute Source Flag) structure element into the
open structure following the element pointer or replace the element pointed at by the element pointer with
a Set Individual ASF structure element, depending on the current edit mode.
At structure traversal time, the current ASF setting determines the BUNDLED or INDIVIDUAL attributes
that the graPHIGS API uses to draw an output primitive.
If any attribute identifier in the list is invalid, then the graPHIGS API ignores that entry. If any attribute
source flag is invalid, then it defaults to INDIVIDUAL.
Language Bindings
Input Parameters
FORTRAN
Input Parameters
integer aspcid
Aspect identifier (0=PLN, 1=PLWSC, 2=PPLCI, 3=PMK, 4=PMKSC, 5=PPMCI, 6=PTXFN,
7=PTXPR, 8=PCHXP, 9=PCHSP, 10=PTXCI, 11=PIS, 12=PISI, 13=PICI, 14=PEDFG, 15=PEDT,
16=PEWSC, 17=PEDCI).
integer asfval
Aspect source flag value (0=PBUNDL, 1=PINDIV).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Set Interior Color Index to insert a Set Interior Color Index structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set Interior
Color Index structure element, depending on the current edit mode. This structure element specifies an
entry in the workstation’s rendering color table. The graPHIGS API uses the color values contained in the
color table to fill all subsequent area defining primitives if the interior style is set to HOLLOW (Set Interior
Style) and edge is OFF (Set Edge Flag) or the interior style is set to SOLID or HATCH.
At structure traversal time, the graPHIGS API uses this index to render the interiors when the interior color
aspect source flag is set to INDIVIDUAL (Set Individual ASF).
If the workstation does not support the specified interior color index or the specified index is outside the
color table limit, then the interior color index defaults to a value of 1.
Language Bindings
pset_int_colr_ind (int_colr_ind)
FORTRAN
PSICI (coli)
Input Parameters
integer coli
Interior color index (>=0).
Errors
5 Function Requires State (PHOP,*,STOP,*)
113 Color Index Value < ZERO
Related Subroutines
v Inquire Workstation State Table Lengths
v Inquire Interior Representation
v Set Interior Representation
Use Set Interior Index to insert a Set Interior Index structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Interior Index structure
element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s interior bundle table. The entry contains
attribute settings for interior style, interior style index, and color. At structure traversal time, the graPHIGS
API uses these attribute settings to render all subsequent fill area and fill area set primitives for those
attributes when the aspect source flag is set to BUNDLED (Set Individual ASF).
If the workstation does not support the specified interior index or the specified index is outside the interior
table size, then the interior index defaults to a value of 1.
Language Bindings
pset_int_ind (int_ind)
Input Parameters
Pint int_ind
Interior index (>=1).
PSII (ii)
Input Parameters
integer ii
Interior index (>=1).
Errors
5 Function Requires State (PHOP,*,STOP,*)
100 Bundle Index Value Is Less Than One
Related Subroutines
v Inquire Interior Representation
v Inquire Workstation State Table Lengths
v Set Interior Representation
Use Set Interior Style to insert a Set Interior Style structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Interior Style structure
element, depending on the current edit mode.
At structure traversal time, this structure element specifies the way the graPHIGS API draws the interior of
a polygon when rendering all subsequent fill area and fill area set primitives. At structure traversal time,
the graPHIGS API uses this style value when the interior style aspect source flag is set to INDIVIDUAL
(Set Individual ASF). Transformations do not affect interior styles of HATCH and PATTERN. For interior
style HOLLOW, the bounding polyline is SOLID and the line width is the nominal line width for the
workstation.
If the workstation does not support the specified interior style value or the specified value is outside the
allowable range, then the interior style defaults to HOLLOW.
Language Bindings
pset_int_style (int_style)
Input Parameters
Pint_style int_style
Interior style (0=PSTYLE_HOLLOW, 1=PSTYLE_SOLID, 2=PSTYLE_PAT, 3=PSTYLE_HATCH,
4=PSTYLE_EMPTY).
FORTRAN
PSIS (ints)
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Interior Facilities
v Inquire Interior Representation
v Inquire Predefined Interior Representation
v Set Individual ASF
v Set Interior Style Index
Use Set Interior Style Index to insert a Set Interior Style Index structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set Interior
Style Index structure element, depending on the current edit mode.
This structure element specifies an index into the workstation hatch table if the current interior style is
HATCH (Set Interior Style) or it specifies an index into the workstation pattern table if the current interior
style is PATTERN. At structure traversal time, the graPHIGS API uses this value when rendering all
subsequent area defining primitives when the interior style index aspect source flag is set to INDIVIDUAL.
(Set Individual ASF).
If the current interior style is not PATTERN or HATCH, then the graPHIGS API ignores this structure
element and increments the element counter.
If the workstation does not support the specified interior style index value or the specified index is outside
the table limit, then the interior style index defaults to a value of 1.
pset_int_style_ind (int_style_ind)
Input Parameters
FORTRAN
PSISI (istyli)
Input Parameters
integer istyli
Interior style index.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Interior Facilities
v Inquire Interior Representation
v Inquire Predefined Interior Representation
v Set Individual ASF
v Set Interior Representation
v Set Interior Style
Use Set Linetype to insert a Set Linetype structure element into the open structure following the element
pointer or replace the element pointed at by the element pointer with a Set Linetype structure element,
depending on the current edit mode.
This structure element specifies an index into a workstation line type table that contains line types. The
graPHIGS API uses this index to render all subsequent output primitives to which this attribute applies. At
structure traversal time, the graPHIGS API uses this line type to render the output primitives when the line
type aspect source flag is set to INDIVIDUAL (Set Individual ASF).
If the workstation does not support the specified linetype entry or the specified entry is outside the
allowable range, then the linetype defaults to SOLID.
Language Bindings
pset_linetype (linetype)
Input Parameters
Pint linetype
Line type (1=PLINE_SOLID, 2=PLINE_DASH, 3=PLINE_DOT, 4=PLINE_DASH_DOT).
PSLN (ltype)
Input Parameters
integer ltype
Line type (1=PLSOLI, 2=PLDASH, 3=PLDOT, 4=PLDASD).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Polyline Facilities
v Inquire Polyline Representation
v Set Individual ASF
v Set Polyline Representation
Use Set Linewidth Scale Factor to insert a Set Linewidth Scale Factor structure element into the open
structure following the element pointer or replace the element pointed at by the element pointer with a Set
Linewidth Scale Factor structure element, depending on the current edit mode.
The Linewidth Scale Factor specifies the width of the line as a fraction of the nominal. The device support
multiplies this scale factor by the nominal line width on the corresponding device to determine the
requested width. The graPHIGS API maps the calculated value to the closest width available on the
device. A scale factor value of 1.0 generates a nominal size line on any workstation. At structure traversal
time, the graPHIGS API uses this scale factor when the line width scale factor aspect source flag is set to
INDIVIDUAL (Set Individual ASF).
Language Bindings
pset_linewidth (linewidth)
Input Parameters
Pfloat linewidth
Line width scale factor.
FORTRAN
PSLWSC (lwidth)
Input Parameters
real lwidth
Line width scale factor.
Related Subroutines
v Inquire Polyline Facilities
v Inquire Polyline Representation
v Set Individual ASF
v Set Polyline Representation
Use Set Marker Size Scale Factor to insert a Set Marker Size Scale Factor structure element into the
open structure following the element pointer or replace the element pointed at by the element pointer with
a Set Marker Size Scale Factor structure element, depending on the current edit mode.
This structure element specifies the marker’s size as a fraction of the nominal marker size. The device
support multiplies this scale factor by the nominal size of markers on the corresponding device to
determine the requested size. The graPHIGS API maps the calculated value to the closest size available
on the device. A scale factor value of 1.0 generates a nominal size marker on any workstation. At structure
traversal time, the graPHIGS API uses this marker size scale factor when the marker size scale factor
aspect source flag is set to INDIVIDUAL (Set Individual ASF).
The traversal default value for marker size scale factor is 1.0.
Language Bindings
pset_marker_size (marker_size)
Input Parameters
Pfloat marker_size
Marker size scale factor.
FORTRAN
PSMKSC (mszsf)
Input Parameters
real mszsf
Marker size scale factor.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Polymarker Facilities
v Inquire Polymarker Representation
v Set Individual ASF
Use Set Marker Type to insert a Set Marker Type structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Marker Type structure
element, depending on the current edit mode.
This structure element specifies an index into a workstation markertype table that contains marker types
that the graPHIGS API uses to render all subsequent polymarker primitives. At structure traversal time, the
graPHIGS API uses this marker type to render the polymarker primitives when the marker type aspect
source flag is set to INDIVIDUAL (Set Individual ASF).
If the workstation does not support the specified marker type entry or the specified entry is outside the
allowable range, then the marker type entry defaults to ASTERISK (marker).
Language Bindings
pset_marker_type (marker_type)
Input Parameters
Pint marker_type
Marker type (1=PMARKER_DOT, 2=PMARKER_PLUS, 3=PMARKER_ASTERISK,
4=PMARKER_CIRCLE, 4=PMARKER_CROSS).
FORTRAN
PSMK (mtype)
Input Parameters
integer mtype
Marker type (1=PPOINT, 2=PPLUS, 3=PAST, 4=POMARK, 5=PXMARK).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Polymarker Facilities
v Inquire Polymarker Representation
v Set Individual ASF
v Set Polyline Representation
This structure element specifies a two-dimensional pattern reference point. The z coordinate is assumed to
be zero. The pattern reference vectors are assumed to be (1,0,0) and (0,1,0). At structure traversal time,
the graPHIGS API uses this pattern reference point and assumed pattern reference vectors to display fill
area and fill area set primitives when the currently selected interior style is set to PATTERN (Set Interior
Style).
The traversal default value for pattern reference point is (0.0,0.0,0.0). The traversal default values for
pattern reference vectors are (1,0,0) and (0,1,0).
Note: The graPHIGS API currently ignores this structure element at structure traversal time.
Language Bindings
pset_pat_ref_point (pat_ref_point)
Input Parameters
const Ppoint *pat_ref_point
Pattern reference point in MC.
FORTRAN
Input Parameters
real rfx
x coordinate of the pattern reference point in MC.
real rfy
y coordinate of the pattern reference point in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Pattern Reference Point And Vectors
v Set Pattern Size
Use Set Pattern Reference Point and Vectors to insert a Set Pattern Reference Point and Vectors
structure element into the open structure following the element pointer or replace the element pointed at
by the element pointer with a Set Pattern Reference Point and Vectors structure element, depending on
the current edit mode.
The traversal default value for pattern reference point is (0,0,0). The traversal default values for pattern
reference vectors are (1,0,0) and (0,1,0).
Note: The graPHIGS API currently ignores this structure element at structure traversal time.
Language Bindings
Input Parameters
const Ppoint3 *pat_ref_point
Pattern reference point in MC.
const Pvec3 pat_ref_vec[2]
Reference vectors in MC (1=x-axis, 2=y-axis).
FORTRAN
Input Parameters
real rfx
x coordinate of the pattern reference point in MC.
real rfy
y coordinate of the pattern reference point in MC.
real rfz
z coordinate of the pattern reference point in MC.
real pfvx(2)
x coordinates of the pattern reference vectors in MC.
real pfvy(2)
y coordinates of the pattern reference vectors in MC.
real rfvz(2)
z coordinates of the pattern reference vectors in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Pattern Reference Point
v Set Pattern Size
Use Set Pattern Size to insert a Set Pattern Size element into the open structure following the element
pointer or replace the element pointed at by the element pointer with a Set Pattern Size structure element,
depending on the current edit mode.
This structure element specifies the pattern size dimensions. At structure traversal time, the graPHIGS API
uses the specified pattern size in conjunction with the pattern reference point and pattern reference
vectors to display fill area and fill area set primitives when the currently selected interior style is set to
PATTERN (Set Interior Style). The graPHIGS API uses only the magnitudes of the pattern size
components. If either of the components is zero, then the graPHIGS API ignores this structure element.
Note: The graPHIGS API currently ignores this structure element at structure traversal time.
Language Bindings
pset_pat_size (pat_size)
Input Parameters
const Pfloat_size *pat_size
Pattern size in MC.
FORTRAN
Input Parameters
real szx
x dimension of pattern size in MC.
real szy
y dimension of pattern size in MC.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Pattern Reference Point
v Set Pattern Reference Point And Vectors
Use Set Pick Identifier to insert a Set Pick Identifier structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Pick Identifier structure
element, depending on the current edit mode.
Language Bindings
pset_pick_id (pick_id)
Input Parameters
Pint pick_id
Pick identifier.
FORTRAN
PSPKID (pkid)
Input Parameters
integer pkid
Pick identifier.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Set Polyline Color Index to insert a Set Polyline Color Index structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set Polyline
Color Index structure element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s rendering color table that defines the color
values that the graPHIGS API uses to render all output primitives to which this attribute applies. At
structure traversal time, the graPHIGS API uses this index to render the output primitives when the
polyline color aspect source flag is set to INDIVIDUAL (Set Individual ASF).
If the workstation does not support the specified polyline color index or the specified index is outside the
color table limit, then the polyline color index defaults to a value of 1.
Language Bindings
pset_line_colr_ind (line_colr_ind)
FORTRAN
PSPLCI (coli)
Input Parameters
integer coli
Polyline color index.
Errors
5 Function Requires State (PHOP,*,STOP,*)
113 Color Index Value < ZERO
Related Subroutines
v Inquire Polyline Facilities
v Inquire Polyline Representation
v Set Individual ASF
v Set Polyline Representation
Use Set Polyline Index to insert a Set Polyline Index structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Polyline Index
structure element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s polyline bundle table. The entry contains
attribute settings for line type, line width scale factor, and color. At structure traversal time, the graPHIGS
API uses these attribute settings to render all subsequent polyline primitives for the attributes that have an
aspect source flag set to BUNDLED (Set Individual ASF).
If the workstation does not support the specified polyline index or the specified index is outside the polyline
bundle table size, then the polyline index defaults to a value of 1.
Language Bindings
pset_line_ind (line_ind)
Input Parameters
Pint line_ind
Polyline index (>=1).
PSPLI (pli)
Input Parameters
integer pli
Polyline index (>=1).
Errors
5 Function Requires State (PHOP,*,STOP,*)
100 Bundle Index Value Is Less Than One
Related Subroutines
v Inquire Polyline Representation
v Inquire Workstation State Table Lengths
v Set Polyline Representation
Use Set Polymarker Color Index to insert a Set Polymarker Color Index structure element into the open
structure following the element pointer or replace the element pointed at by the element pointer with a Set
Polymarker Color Index structure element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s rendering color table that defines the color
values that the graPHIGS API uses to render all polymarker primitives. At structure traversal time, the
graPHIGS API uses this index to render the polymarker primitives when the polymarker color aspect
source flag is set to INDIVIDUAL (Set Individual ASF).
If the workstation does not support the specified polymarker color or the specified index is outside the
color table limit, then the polymarker color index defaults to a value of 1.
Language Bindings
pset_marker_colr_ind (marker_colr_ind)
Input Parameters
Pint marker_colr_ind
Polymarker color index (>=0).
FORTRAN
PSPMCI (coli)
Input Parameters
Errors
5 Function Requires State (PHOP,*,STOP,*)
113 Color Index Value < ZERO
Related Subroutines
v Inquire Polymarker Facilities
v Inquire Polymarker Representation
v Set Individual ASF
v Set Polyline Representation
Use Set Polymarker Index to insert a Set Polymarker Index structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set
Polymarker Index structure element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s polymarker bundle table. The entry contains
attribute settings for marker type, marker size scale factor, and color. At structure traversal time, the
graPHIGS API uses these attribute settings to render all subsequent polymarker primitives for the
attributes that have an aspect source flag set to BUNDLED (Set Individual ASF).
If the workstation does not support the specified polymarker index of the specified index is outside the
polymarker bundle table size, then the polymarker index defaults to a value of 1.
Language Bindings
pset_marker_ind (marker_ind)
Input Parameters
Pint marker_ind
Polymarker index (>=1).
FORTRAN
PSPMI (pmi)
Input Parameters
integer pmi
Polymarker index (>=1).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Polymarker Representation
v Inquire Workstation State Table Lengths
v Set Polyline Representation
Use Set Text Alignment to insert a Set Text Alignment structure element into the open structure following
the element pointer or replace the element pointed at by the element pointer with a Set Text Alignment
structure element, depending on the current edit mode.
At structure traversal time, the graPHIGS API uses the specified alignment in this structure element to
render all subsequent geometric text primitives. This setting affects the manner in which the graPHIGS API
positions the geometric text extent rectangle in relation to the text position.
The traversal default for geometric text horizontal and vertical alignment is NORMAL.
If the workstation does not support the specified text alignment or the specified value is outside the
allowable range, then the text alignment defaults to NORMAL for both horizontal and vertical text
alignment.
Language Bindings
pset_text_align (text_align)
Input Parameters
const Ptext_align *text_align
Text alignment.
FORTRAN
Input Parameters
integer txalh
Horizontal text alignment (0=PAHNOR, 1=PALEFT, 2=PACENT, 3=PARITE).
integer txalv
Vertical text alignment (0=PAVNOR, 1=PATOP, 2=PACAP, 3=PAHALF, 4=PABASE, 5=PABOTT).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Text Precision
Use Set Text Color Index to insert a Set Text Color Index structure element into the open structure
following the element pointer or replace the element pointed at by the element pointer with a Set Text
Color Index structure element, depending on the current edit mode.
This structure element specifies an entry in the workstation’s rendering color table that defines the color
the graPHIGS API uses to render all subsequent annotation and geometric text primitives. At structure
traversal time, the graPHIGS API uses this index to render the text primitives when the text color aspect
source flag is set to INDIVIDUAL (Set Individual ASF).
If the workstation does not support the specified text color index or the specified index is outside the color
table limit, then the text color index defaults to a value of 1.
Language Bindings
pset_text_colr_ind (text_colr_ind)
Input Parameters
Pint text_colr_ind
Text color index (>=0).
FORTRAN
PSTXCI (coli)
Input Parameters
integer coli
Text color index (>=0).
Errors
5 Function Requires State (PHOP,*,STOP,*)
113 Color Index Value < ZERO
Related Subroutines
v Inquire Predefined Text Representation
v Inquire Text Representation
v Set Individual ASF
v Set Text Representation
At structure traversal time, the graPHIGS API uses the specified font identifier in this structure element to
render all subsequent annotation and geometric text primitives when the text font aspect source flag is set
to INDIVIDUAL (Set Individual ASF).
The traversal default for annotation and geometric text font is font 1.
The graPHIGS API implicitly makes available fonts 1 and 2 of the US English character set when an
application issues an ISO PHIGS Open Workstation subroutine call (Open Workstation). For an illustration
of those fonts refer to The graPHIGS Programming Interface: Technical Reference. In The graPHIGS
Programming Interface: Technical Reference, the U.S. English character set is referred to as Character
Set 1. This is the number associated with this character set when using the GPxxxx interface.
Language Bindings
pset_text_font (font)
Input Parameters
Pint font
Text font.
FORTRAN
PSTXFN (font)
Input Parameters
integer font
Text font.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Predefined Text Representation
v Inquire Text Representation
v Set Individual ASF
v Set Text Representation
Use Set Text Index to insert a Set Text Index structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Text Index structure
element, depending on the current edit mode.
If the workstation does not support the specified text index or the specified index is outside the text bundle
table size, then the text index defaults to a value of 1.
Language Bindings
pset_text_ind (text_ind)
Input Parameters
Pint text_ind
Text index (>=1).
FORTRAN
PSTXI (txi)
Input Parameters
integer txi
Text index (>=1).
Errors
5 Function Requires State (PHOP,*,STOP,*)
100 Bundle Index Value Is Less Than One
Related Subroutines
v Inquire Predefined Text Representation
v Inquire Text Representation
v Inquire Workstation State Table Lengths
v Set Text Representation
Use Set Text Path to insert a Set Text Path structure element into the open structure following the element
pointer or replace the element pointed at by the element pointer with a Set Text Path structure element,
depending on the current edit mode.
This structure element specifies the writing direction of the text string relative to the Character Up Vector.
At structure traversal time, the graPHIGS API uses this path value to render all subsequent geometric text
primitives.
Language Bindings
pset_text_path (text_path)
Input Parameters
Ptext_path text_path
Text path (0=PPATH_RIGHT, 1=PPATH_LEFT, 2=PPATH_UP, 3=PPATH_DOWN).
FORTRAN
PSTXP (txp)
Input Parameters
integer txp
Text path (0=PRIGHT, 1=PLEFT, 2=PUP, 3=PDOWN).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Set Text Precision
Use Set Text Precision to insert a Set Text Precision structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set Text Precision
structure element, depending on the current edit mode.
The text precision specifies which attributes apply to annotation and geometric text primitives and the
manner in which the graPHIGS API uses them. At structure traversal time, the graPHIGS API uses this
precision when the text precision aspect source flag is set to INDIVIDUAL (Set Individual ASF).
Text precisions available are STRING, CHARACTER, and STROKE. The traversal default for text precision
is STRING.
If the workstation does not support the specified text precision, then the graPHIGS API uses the highest
available precision instead.
CHARACTER
CHARACTER CHARACTER UP AND
TEXT EXPANSION CHARACTER CHARACTER UP TEXT TEXT BASE
FONT FACTOR SPACING COLOR HEIGHT VECTOR PATH ALIGNMENT VECTORS
____________________________________________________________________________________________________ P
| |
r STRING | Y ** N N Y Y N N N N |
e | |
c | |
i CHARACTER | Y ** Y Y Y Y Y Y Y Y |
s | |
i | |
o STROKE | Y ** Y Y Y Y Y Y Y Y |
n |____________________________________________________________________________________________________|
The following keywords are used above to designate which attributes will be processed for a
particular precision:
The following figure describes the attributes and precision for annotation text:
Annotation Text Attributes
ANNOTATION
CHARACTER HEIGHT ANNOTATION
TEXT EXPANSION CHARACTER SCALE UP ANNOTATION ANNOTATION ANNOTATION
FONT FACTOR SPACING COLOR FACTOR VECTOR PATH ALIGNMENT HEIGHT
___________________________________________________________________________________________________ P
| |
r STRING | Y 4 N N Y Y 1 N N N Y 1 |
e | |
c | |
i CHARACTER | Y 4 Y 1 Y 2 Y Y 1 Y 2 Y 2 Y 2 Y 1 |
s | |
i | |
o STROKE | Y 4 Y 3 Y 3 Y Y 3 Y 3 Y 3 Y 3 Y 3 |
n | |
|___________________________________________________________________________________________________|
The following keywords are used above to designate which attributes will be processed for a
particular precision:
The following keywords are used above to designate which attributes will be processed for a particular
precision:
The following numbers are used above to describe how precisely an attribute will be applied:
1- The attribute is applied as closely as possible for the entire text string.
2- Whether these attributes are applied is workstation dependent. See The graPHIGS Programming Interface:
Technical Reference for more information.
3- The attribute is applied on a stroke-by-stroke basis, that is, exactly.
Language Bindings
pset_text_prec (prec)
Input Parameters
Ptext_prec prec
Text precision (0=PPREC_STRING, 1=PPREC_CHAR, 2=PPREC_STROKE).
FORTRAN
PSTXPR (prec)
Input Parameters
integer prec
Text precision (0=PSTRP, 1=PCHARP, 2=PSTRKP).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Annotation Facilities
v Inquire Predefined Text Representation
v Inquire Text Facilities
v Inquire Text Representation
v Set Individual ASF
v Set Text Representation
Use Set View Index to insert a Set View Index structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with a Set View Index structure
element, depending on the current edit mode.
This structure elements specifies an entry in the workstation’s text bundle table. The entry contains
attribute settings for the view orientation matrix, view mapping matrix, viewport boundaries, and viewport
clipping indicators. At structure traversal time, the graPHIGS API uses these attribute settings to render all
subsequent output primitives.
The traversal default for the view index is entry 0 of the workstation’s view table.
Language Bindings
pset_view_ind (view_ind)
Input Parameters
Pint view_ind
View index (>=0).
FORTRAN
PSVWI (viewi)
Input Parameters
integer viewi
View index (>=0).
Errors
5 Function Requires State (PHOP,*,STOP,*)
114 View Index Value < ZERO
Related Subroutines
v Set View Representation
v Set View Representation 3
Use Application Data to insert an application data structure element into the open structure following the
element pointer or replace the element pointed at by the element pointer with an Insert Application Data
structure element, depending on the current edit mode.
This subroutine allows the insertion of application specific data into a structure element. The graPHIGS
API ignores this data during structure traversal.
Language Bindings
pappl_data(data)
Input Parameters
const Pdata *data
Application data.
FORTRAN
PAP(ldr, datrec)
Input Parameters
integer ldr
Dimension of data record array.
character*80 datrec(ldr)
Data record.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Traversal of the structure in which the Execute Structure element exists causes invocation of the target
structure as soon as the Execute Structure element is encountered. Although the graPHIGS API does not
allow recursive structure networks, no error is generated by the creation of such a network. When the
application attempts to execute the open structure, the graPHIGS API generates an implementation error
(-125). This is a graPHIGS API restriction. The behavior of the graPHIGS API when traversing a recursive
structure network is undefined.
Language Bindings
pexec_struct (struct_id)
Input Parameters
Pint struct_id
Structure identifier.
FORTRAN
PEXST (strid)
Input Parameters
integer strid
Structure identifier.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Generalized Structure Element to insert a Generalized Structure Element (GSE) into the open
structure following the element pointer or to replace the element pointed at by the element pointer with a
GSE, depending on the current edit mode.
The graPHIGS API currently does not support any GSEs through this subroutine. The graPHIGS API puts
any elements generated by this subroutine into the open structure but ignores them at structure traversal
time. Use the appropriate GPxxxx subroutine to generate a desired GSE supported by the graPHIGS API.
See The graPHIGS Programming Interface: Technical Reference, for a list of the GSEs supported by the
graPHIGS API. Also, because GSE support is workstation dependent, use the graPHIGS API Inquire List
of Available GSEs (GPQGSE) subroutine to determine the specific GSEs supported by an open
workstation.
Language Bindings
Input Parameters
Pint id
GSE identifier.
const Pgse_data *gse_data
GSE data record.
FORTRAN
Input Parameters
integer gseid
GSE identifier.
integer ldr
Dimension of data record array
character*80 datrec(ldr)
GSE data record.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Generalized Structure Element Facilities
After opening a structure, the element pointer normally points to the last element in the structure. In order
to modify a structure, the application must reposition the element pointer to a desired element. If the edit
mode is set for insertion, then the graPHIGS API inserts an element in the open structure following the
element pointer. Otherwise, if the edit mode is set for replacement, then an element replaces the element
at the current element pointer.
If you plan to use both GPxxxx and ISO PHIGS subroutine calls, be aware of the compatibility issues as
outlined in Chapter 22. ″graPHIGS API Extensions and Compatibility with the ISO PHIGS Standard″.
Use Change Structure Identifier to change the identifier of a structure (called the original structure) to a
specified structure identifier (called the resulting structure). This subroutine does not affect execute
structure-type elements that reference the original structure.
If the identifier of the original structure is the same as the identifier of the resulting structure and if the
structure exists, then no action occurs. If the structure does not exist, however, then the graPHIGS API
creates an empty structure with the identifier of the resulting structure.
If the original structure does not exist, then the graPHIGS API empties the resulting structure. If the
original structure does exist, then the contents of the original structure replace the contents of the resulting
structure and the graPHIGS API empties the original structure. If the original structure references the
resulting structure, then the graPHIGS API generates an implementation error (-129)and no action occurs.
At the completion of this subroutine, the graPHIGS API deletes the original structure; unless, the original
structure is the open structure, is referenced by any other structure, or is posted to a workstation.
If the original structure is the open structure, then the graPHIGS API sets the current element pointer to
zero. If the resulting structure is the open structure, then the graPHIGS API sets the current element
pointer to point to the last element in the structure.
Language Bindings
Input Parameters
Pint orig_struct_id
Original structure identifier.
FORTRAN
Input Parameters
integer oldsid
Original structure identifier.
integer newsid
Resulting structure identifier.
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Empty Structure
v Execute Structure
v Post Structure
Use Change Structure Identifier and References to change all execute structure-type elements which
reference a structure (called the original structure) with elements which reference a specified structure
(called the resulting structure). This subroutine changes the identifier of the original structure to be that of
the resulting structure. The effect of this subroutine is as though the application called the Change
Structure References subroutine followed by a call to the Change Structure Identifier subroutine.
If the original structure references the resulting structure, then the graPHIGS API generates an
implementation error (-129) and no action occurs. This error is generated to prevent an application from
causing recursive traversal of a structure.
Language Bindings
Input Parameters
Pint orig_struct_id
Original structure identifier.
Pint result_struct_id
Resulting structure identifier.
FORTRAN
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Change Structure Identifier
v Change Structure References
Use Change Structure References to change all execute structure-type elements which reference a
structure (called the original structure) with elements which reference a specified structure (called the
resulting structure). This subroutine does not affect any references to the resulting structure that existed
before the call.
If the identifier of the original structure and the identifier of the resulting structure are identical, then no
action occurs. If the resulting structure references the original structure, then the graPHIGS API generates
an implementation error (-129) and no action occurs. This error is generated to prevent an application from
causing recursive traversal of a structure.
If there are references to the original structure and the resulting structure does not exist, then the
graPHIGS API creates an empty structure with the identifier of the resulting structure. If the original
structure does not exist or if there are no references to the original structure, then no action occurs.
If the resulting structure is posted to a workstation, then the resulting structure remains posted and the
original structure, if posted to the workstation, is unposted. If the original structure is posted to a
workstation but the resulting structure is not, then the graPHIGS API posts the resulting structure to that
workstation and unposts the original structure from the workstation.
Language Bindings
Input Parameters
Pint orig_struct_id
Original structure identifier.
Pint result_struct_id
Resulting structure identifier.
FORTRAN
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Execute Structure
v Post Structure
v Unpost Structure
Use Close Structure to close a structure. The current structure state is set to Structure Closed (STCL).
Conditional editing is stopped if it had been started by the graPHIGS API extension Conditional Editing
(GPCEDT. See ″Structure Operations″ in The graPHIGS Programming Interface: Subroutine Reference).
Once closed, your application cannot insert or replace structure elements in the structure until the structure
is opened.
Language Bindings
pclose_struct()
FORTRAN
PCLST
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Open Structure
Use Copy All Elements From Structure to copy the elements from the specified structure into the open
structure following the current element pointer. The element pointer moves to the last element copied into
the open structure.
If the structure you copy references the open structure (by the use of an execute structure-type element),
then the graPHIGS API issues an implementation error message (-125) and does not perform the copy.
pcopy_all_elems_struct (struct_id)
Input Parameters
Pint struct_id
Structure identifier.
FORTRAN
PCELST (strid)
Input Parameters
integer strid
Structure identifier.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Execute Structure
Use Delete All Structures to delete all existing structures from the structure store. This subroutine is
equivalent to invoking the Delete Structure subroutine for each structure in the structure store.
Language Bindings
pdel_all_structs()
FORTRAN
PDAS
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Delete Structure
Language Bindings
pdel_elem ()
FORTRAN
PDEL
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Delete Element Range to delete all structure elements between and including the elements indicated
by the specified element numbers.
After deletion, the element pointer moves to the element immediately preceding any deleted elements. If
both values point beyond the last element of the structure or both values are less than zero, then the
graPHIGS API does not delete any elements and the element pointer remains the same. If one of the
values is less than zero, then the element pointer defaults to a value of zero. If one of the values is
greater than the number of elements in the open structure, then the graPHIGS API uses the element
number of the last element in the open structure instead.
Language Bindings
Input Parameters
Pint elem_ptr1_value
Element pointer 1 value.
Pint elem_ptr2_value
Element pointer 2 value.
FORTRAN
Input Parameters
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Delete Elements Between Labels to delete all elements from the open structure between, but not
including, the two specified labels. After deletion, the element pointer moves to the element specified by
the label 1 identifier.
Starting from the current position of the element pointer, the graPHIGS API searches for label identifier 1.
If the current position of the element pointer points to an occurrence of the label identifier 1, then the
search starts at the next element. The search for label identifier 2 starts at the element following the label
identifier 1 element. If neither label is found when the end of the structure is reached, then the graPHIGS
API generates an error, does not perform the deletion, and does not change the current element pointer.
Language Bindings
Input Parameters
Pint label1_id
Label 1 identifier.
Pint label2_id
Label 2 identifier.
FORTRAN
Input Parameters
integer label1
Label 1 identifier.
integer label2
Label 2 identifier.
Errors
5 Function Requires State (PHOP,*,STOP,*)
206 Label(s) Not Between Element Pointer And End Of Structure
Use Delete Structure to delete the specified structure, its identifier, and its contents. When you use this
subroutine to delete a closed structure, the graPHIGS API removes all references to the deleted structure
(execute structure-type elements) from all existing structures. The deleted structure is also unposted from
all workstations.
When you delete a structure that is an open structure, the structure remains open and is emptied, but the
graPHIGS API does not remove references to the deleted structure. The result is as though you had
issued the following subroutine calls:
v Close Structure
v Delete Structure (structure identifier)
v Open Structure (structure identifier)
If the specified structure does not exist, then no action occurs.
If it is necessary to empty the contents of a specified structure and at the same time maintain its
association with all workstations, use the Empty Structure subroutine (the structure remains posted).
Language Bindings
pdel_struct (struct_id)
Input Parameters
Pint struct_id
Structure identifier.
FORTRAN
PDST (strid)
Input Parameters
integer strid
Structure identifier.
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Empty Structure
v Execute Structure
v Unpost Structure
The graPHIGS API also deletes all execute structure-type elements referencing any of the deleted
structures.
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Pref_flag ref_flag
Reference handling flag (0=PFLAG_DEL, 1=PFLAG_KEEP).
FORTRAN
Input Parameters
integer strid
Structure identifier.
integer refhnf
Reference handling flag (0=PDELE, 1=PKEEP).
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Delete Structure
References to this now empty structure remain intact. If the specified structure is the open structure, then
the graPHIGS API sets the element pointer to zero. If the specified structure does not exist, then the
graPHIGS API creates a new empty structure.
pempty_struct (struct_id)
Input Parameters
Pint struct_id
Structure identifier.
FORTRAN
PEMST (strid)
Input Parameters
integer strid
Structure identifier.
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v None
LABEL (PHOP,*,STOP,*)
Purpose
Use Label to insert a Label structure element into the open structure following the element pointer or to
replace the element pointed at by the element pointer with a Label structure element, depending on the
current edit mode.
This structure element defines a label that the application uses to reference and modify structure
elements.
Language Bindings
plabel (label_id)
Input Parameters
Pint label_id
Label identifier.
FORTRAN
PLB (label)
Input Parameters
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Delete Elements Between Labels
v Set Element Pointer At Label
Use Offset Element Pointer to move the element pointer to a new element relative to the current element
pointer.
This subroutine adds the pointer offset value to the element pointer. It can either be positive, which moves
the element pointer forward, or negative, which moves the element pointer backward. If the resultant value
is less than zero, then the element pointer defaults to a value of zero. If the resultant value is greater than
the number of elements in the open structure, then the graPHIGS API sets the pointer to the last element.
Language Bindings
poffset_elem_ptr (elem_ptr_offset)
Input Parameters
Pint elem_ptr_offset
Element pointer offset.
FORTRAN
POSEP (epo)
Input Parameters
integer epo
Element pointer offset.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Element Pointer
Use Open Structure to open a structure. The structure state is set to Structure Open (STOP).
The graPHIGS API sets no limit on the number of simultaneously definable structures.
Language Bindings
popen_struct (struct_id)
Input Parameters
Pint struct_id
Structure identifier.
FORTRAN
POPST (strid)
Input Parameters
integer strid
Structure identifier.
Errors
6 Function Requires State (PHOP,*,STCL,*)
Related Subroutines
v Close Structure
Use Set Edit Mode to set the current edit mode entry of the graPHIGS API state list to INSERT or
REPLACE. If the application does not use this subroutine, then the edit mode defaults to INSERT.
When the application moves an element into an open structure, the edit mode determines how the
element is to be placed into the structure:
v If the edit mode is set to REPLACE, then the graPHIGS API deletes the element at the element pointer.
The incoming element takes its place. The graPHIGS API does not move the element pointer (so if
another element is to be placed into the structure, then it replaces the last element that was just placed
into the structure). If the element pointer is set to element 0, then the graPHIGS API inserts the
incoming element into the structure and sets the element pointer to element 1.
v If the edit mode is set to INSERT, then the graPHIGS API inserts the incoming element into the open
structure after the element at the element pointer. The graPHIGS API then increments the element
pointer by 1 to point to the new element.
The edit mode does not affect elements copied into the open structure by the Copy All Elements From
Structure subroutine.
Language Bindings
pset_edit_mode (edit_mode)
Input Parameters
Pedit_mode edit_mode
Edit mode (0=PEDIT_INSERT, 1=PEDIT_REPLACE).
FORTRAN
PSEDM (editmo)
Input Parameters
integer editmo
Edit mode (0=PINSRT, 1=PREPLC).
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Inquire Edit Mode
Use Set Element Pointer to set the element pointer to the specified element number.
If the value is less than zero, then the element pointer defaults to a value of zero. If the value is greater
than the number of elements in the open structure, then the graPHIGS API sets the pointer to the last
element.
Language Bindings
pset_elem_ptr (elem_ptr_value)
Input Parameters
Pint elem_ptr_value
Element pointer value.
FORTRAN
PSEP (ep)
Input Parameters
integer ep
Element pointer value.
Errors
Related Subroutines
v Inquire Element Pointer
Use Set Element Pointer at Label to set the element pointer to the specified label identifier element within
the open structure.
Starting at the position following the current element pointer, the graPHIGS API searches for the first
occurrence of the specified label. If the element pointer is already positioned at an occurrence of the
specified label, then the search starts at the next element. If the graPHIGS API does not find the label
when the end of the structure is reached, then the graPHIGS API generates an error and does not change
the position of the current element pointer.
Language Bindings
pset_elem_ptr_label (label_id)
Input Parameters
Pint label_id
Label identifier.
FORTRAN
PSEPLB (ep)
Input Parameters
integer label
Label identifier.
Errors
5 Function Requires State (PHOP,*,STOP,*)
205 Label Not Between Element Pointer And End Of Structure
Related Subroutines
v Inquire Element Pointer
v Label
Most workstation table indexes begin with 1. The following exceptions begin with 0:
v color tables
v view tables
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.
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
Input Parameters
Pint ws_id
Workstation identifier.
Pint colr_model
Color model (1=PMODEL_RGB, 2=PMODEL_CIELUV, 3=PMODEL_HSV).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer cmodel
Color model (1=PRGB, 2=PCIE, 3=PHSV).
Errors
Related Subroutines
v Inquire Color Model
Use Set Color Representation to set the specified color values at the specified color table entry of the
workstation’s color table. All currently supported color models require three floating-point components.
Each component must be in the range [0.0, 1.0].
If the color model is Hue-Saturation-Value (HSV), then the graPHIGS API uses the first color component
(hue) as a fraction of the total range available (that is, zero to one is used to represent zero degrees to
360 degrees). If the second color component is zero, then the graPHIGS API ignores the first color
component.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint colr_ind
Color index (>=0).
Pcolr_rep *colr_rep
Color representation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer ci
Color index (>=0).
integer nccs
Number of components of color specification.
real cspec(*)
Color specification.
Related Subroutines
v Inquire Color Facilities
v Inquire Color Representation
v Inquire Color Model
Use Set Edge Representation to set the given attribute values in the specified entry of the edge bundle
table for the specified workstation.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint edge_ind
Edge bundle index (>=1).
const Pedge_bundle *edge_bundle
Edge representation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer edi
Edge bundle index (>=1).
integer edflag
Edge flag (0=POFF, 1=PON).
integer edtype
Edge type (1=PLSOLI, 2=PLDASH, 3=PLDOT, 4=PLDASD).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
103 Exceeded Maximum Number Of Workstation Bundle Table Entries
113 Color Index Value < ZERO
107 Specified Edgetype Not Available On Workstation
Related Subroutines
v Inquire Edge Facilities
v Inquire Edge Representation
v Set Color Model
v Set Edge Color Index
v Set Edge Index
v Set Edgetype
v Set Edgewidth Scale Factor
v Set Individual ASF
Use Set Highlighting Filter to set the inclusion and exclusion highlighting filters for the specified
workstation. The new filters take effect when you update the workstation.
The filters consist of class names which indicate which classes the graPHIGS API includes or excludes
from highlighting. The same class names may exist in both the inclusion and exclusion filter. If a class
name is in both filters when you update the workstation, then the graPHIGS API excludes the class. For
more information on classes and class names, see The graPHIGS Programming Interface: Understanding
Concepts. Use the Inquire PHIGS Facilities subroutine to inquire the number of available names for name
sets.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer isn
Number of names in the inclusion set (>=0).
integer is(isn)
Inclusion set.
integer esn
Number of names in the exclusion set (>=0).
integer es(esn)
Exclusion set.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Related Subroutines
v Add Names To Set
v Inquire Highlighting Filter
v Inquire PHIGS Facilities
v Remove Names From Set
Use Set HLHSR Mode to set the requested Hidden Line/Hidden Surface Removal (HLHSR) mode in the
workstation state list to the value specified.
If the dynamic modification accepted for HLHSR mode in the workstation description table is set to
Immediate (IMM), or if the display surface empty entry in the workstation state list is set to EMPTY, then
the graPHIGS API sets the current HLHSR mode in the workstation state list to the specified value and
sets the HLHSR update state to NOTPENDING. Otherwise, the graPHIGS API sets the HLHSR update
state to PENDING and does not change the current HLHSR mode.
Language Bindings
Input Parameters
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer hrm
HLHSR mode (0=OFF, 1=ON THE FLY).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
111 Specified HLHSR Mode Not Available On Workstation
Related Subroutines
v Inquire HLHSR Identifier Facilities
v Inquire HLHSR Mode Facilities
v Set HLHSR Identifier
Use Set Interior Representation to set the given attribute values in the specified table entry of the specified
workstation.
The EMPTY and HOLLOW interior styles display nothing for the interior. If the edge flag is set to OFF and
the interior style is EMPTY, then the graPHIGS API generates no visual output. The interior is detectable
when the graPHIGS API encounters a primitive with an interior style of EMPTY and the primitive is eligible
for picking, as determined by its visibility and detectability.
If the edge flag is OFF and the interior style is HOLLOW, then the graPHIGS API draws the boundary.
When the graPHIGS API encounters a primitive with an interior style of HOLLOW only the boundary of the
primitive is eligible for picking, as determined by its visibility and detectability.
Language Bindings
Input Parameters
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer ii
Interior index (>=1).
integer ints
Interior style (0=PHOLLO, 1=PSOLID, 2=PPATTR, 3=PHATCH, 4=PISEMP).
integer styli
Interior style index (>=1).
integer coli
Interior color index (>=0).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
103 Exceeded Maximum Number Of Workstation Bundle Table Entries
108 Specified Interior Style Not Available On Workstation
112 Pattern Index Value < ONE
113 Color Index Value < ZERO
Related Subroutines
v Inquire Interior Representation
v Set Color Model
v Set Individual ASF
v Set Interior Color Index
v Set Interior Index
v Set Interior Style Index
Use Set Invisibility Filter to set the inclusion and exclusion invisibility filters for the specified workstation.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
const Pfilter *filter
Invisibility filter.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer isn
Number of names in the inclusion set (>=0).
integer is(isn)
Inclusion set.
integer esn
Number of names in the exclusion set (>=0).
integer es(esn)
Exclusion set.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Related Subroutines
v Add Names To Set
v Inquire Invisibility Filter
v Inquire PHIGS Facilities
v Remove Names From Set
The pattern is a grid of color indexes. The color indexes point into the color table of the specified
workstation.
If the workstation supports interior style PATTERN, then the pattern table in the workstation state list has
predefined entries taken from the workstation description table. For every workstation of category OUTPUT
or OUTIN supporting interior style PATTERN, the graPHIGS API predefines a number of pattern table
entries. With this function, you can redefine the table entries.
During structure traversal, if a pattern color index specified in the pattern color index array is not available
on the workstation, then the graPHIGS API uses a color index value of 1.
Some workstations require that the pattern fill is a fixed size. For these workstations, the graPHIGS API
replicates the specified pattern to the fixed size. (See The graPHIGS Programming Interface: Technical
Reference for interior pattern information).
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint pat_ind
Pattern index (>=1).
const Ppat_rep *pat_bundle
Pattern representation (The pattern color index array must be in row order).
FORTRAN
PSPAR (wkid, pai, dimx, dimy, isc, isr, dx, dy, colia)
Input Parameters
integer wkid
Workstation identifier.
integer pai
Pattern index (>=1).
integer dimx
X dimension of colia which contains the pattern color index array (>=1).
integer dimy
Y dimension of colia which contains the pattern color index array (>=1).
integer isc
Index to start column (>=1).
integer isr
Index to start row (>=1).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
112 Pattern Index Value < ONE
103 Exceeded Maximum Number Of Workstation Bundle Table Entries
116 One Dimension Of Pattern Color Index Array < ONE
113 Color Index Value < ZERO
Related Subroutines
v Inquire Pattern Representation
Use Set Polyline Representation to set the given attribute values in the specified entry of the polyline
bundle table.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint line_ind
Polyline bundle index (>=1).
const Pline_bundle *line_bundle
Polyline representation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
103 Exceeded Maximum Number Of Workstation Bundle Table Entries
104 Specified Linetype Not Available On Workstation
113 Color Index Value < ZERO
Related Subroutines
v Inquire Polyline Representation
v Set Color Model
v Set Individual ASF
v Set Linetype
v Set Linewidth Scale Factor
v Set Polyline Color Index
v Set Polyline Index
Use Set Polymarker Representation to set the given attribute values in the specified entry of the
polymarker bundle table.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint marker_ind
Polymarker bundle index (>=1).
const Pmarker_bundle *marker_bundle
Polymarker representation.
Input Parameters
integer wkid
Workstation identifier.
integer pmi
Polymarker bundle index (>=1).
integer mtype
Marker type (1=PPOINT, 2=PPLUS, 3=PAST, 4=POMARK, 5=PXMARK).
real mszsf
Marker size scale factor.
integer coli
Polymarker color index (>=0).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
103 Exceeded Maximum Number Of Workstation Bundle Table Entries
105 Specified Marker Type Not Available On Workstation
113 Color Index Value < ZERO
Related Subroutines
v Inquire Polymarker Representation
v Set Color Model
v Set Individual ASF
v Set Marker Size Scale Factor
v Set Polymarker Color Index
v Set Polymarker Index
Use Set Text Representation to set the given attribute values into the specified entry of the text bundle
table.
If you specify a precision that the workstation does not support, then the graPHIGS API substitutes the
font’s highest available precision for that workstation.
Language Bindings
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer text
Text bundle index (>=1).
integer font
Text font.
integer prec
Text precision (0=PSTRP, 1=PCHARP, 2=PSTRKP).
real chxp
Character expansion factor.
real chsp
Character spacing.
integer coli
Text color index (>=0).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
103 Exceeded Maximum Number Of Workstation Bundle Table Entries
106 Specified Font Not Available For Requested Text Precision
113 Color Index Value < ZERO
Related Subroutines
v Inquire Text Representation
v Set Character Expansion Factor
v Set Character Spacing
v Set Color Model
v Set Individual ASF
Use Set View Representation to set fields in the specified entry of the workstation’s view table. The view
orientation matrix and the view mapping matrix are first expanded to 4x4 matrixes. Then the graPHIGS
API stores the specified values in the REQUESTED view table entry. The graPHIGS API sets the
corresponding CURRENT values in the view table entry to the REQUESTED values when you update the
workstation.
The clipping indicators determine to which boundaries the graPHIGS API clips the contents of the view.
The graPHIGS API sets the Z portion of the requested view clipping limits for the specified view to the
default values.
The workstation’s view table is 0 based, however, you cannot change view entry 0. (See The graPHIGS
Programming Interface: Technical Reference for the default values for view entry 0).
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint view_ind
View index (>=1).
const Pview_rep *view_rep
View representation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer viewi
View index (>=1).
real vwormt(3,3)
View orientation matrix.
real vwmpmt(3,3)
View mapping matrix.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
115 View Index Value < ONE
150 Exceeded Maximum Number Of View Table Entries
153 Invalid View Clipping Limits: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
154 View Clipping Limits Are Not Within NPC Range
Related Subroutines
v Inquire View Representation
v Set View Representation 3
Use Set View Representation 3 to set fields in the specified entry of the workstation’s view table. The
graPHIGS API stores the specified values in the REQUESTED view table entry. The graPHIGS API sets
the corresponding CURRENT values in the view table entry to the REQUESTED values when you update
the workstation.
The clipping indicators determine to which boundaries the graPHIGS API clips the contents of the view.
The workstation’s view table is 0 based, however, you cannot change view entry 0. (See The graPHIGS
Programming Interface: Technical Reference for the default values for view entry 0).
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint view_ind
View index (>=1).
const Pview_rep3 *view_rep
View representation.
FORTRAN
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
115 View Index Value < ONE
150 Exceeded Maximum Number Of View Table Entries
153 Invalid View Clipping Limits: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
154 View Clipping Limits Are Not Within NPC Range
Related Subroutines
v Inquire View Representation
v Set View Representation
Use Set View Transformation Input Priority to modify the input priority of the specified view in relation to
another view on the specified workstation. If the specified view index is the same as the reference view
index, then this function has no effect.
This subroutine only changes the input priority of a view. The display surface shows no visual changes.
Language Bindings
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer viewi
View index (>=0).
integer rfvwix
Reference view index (>=0).
integer relpri
Relative priority (0=PHIGHR, 1=PLOWER).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
114 View Index Value < ZERO
101 Specified Representation Has Not Been Defined
Related Subroutines
v Inquire List Of View Indices
Use Post Structure to add the specified structure to the list of posted structures in the workstation state list
(WSL) of the specified workstation. This subroutine adds the workstation identifier to the list of
workstations to which the specified structure is posted. If the specified structure does not exist, then the
graPHIGS API creates a new empty structure.
The graPHIGS API assigns the specified display priority to the structure network. The display priority
indicates the relative importance of the posted structure network. If your application posts multiple
structures for display to the same display space location, then the graPHIGS API displays the higher
priority structure network. If two structures have the same priority, then the graPHIGS API considers the
last posted structure to have the higher priority.
Upon second and subsequent posting of a structure, the graPHIGS API removes the structure from the list
of posted structures, and then reposts it at the priority the application specifies.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint struct_id
Structure identifier.
Pfloat pri
Display priority (0.0<=priority<=1.0).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer strid
Structure identifier.
real priort
Display priority (0.0<=priority<=1.0).
Errors
Related Subroutines
v Inquire Number Of Display Priorities Supported
v Inquire Posted Structures
v Inquire Set Of Workstations To Which Posted
v Unpost All Structures
v Unpost Structure
Use Unpost All Structures to unpost all structures from the specified workstation. Unposting a structure
does not delete the structure.
Language Bindings
punpost_all_structs (ws_id)
Input Parameters
Pint ws_id
Workstation identifier.
FORTRAN
PUPAST (wkid)
Input Parameters
integer wkid
Workstation identifier.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Related Subroutines
v Inquire Posted Structures
v Inquire Set Of Workstations To Which Posted
v Post Structure
v Unpost Structure
Use Unpost Structure to unpost the specified structure from the specified workstation. Unposting a
structure does not delete the structure.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint struct_id
Structure identifier.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer strid
Structure identifier.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Related Subroutines
v Inquire Posted Structures
v Inquire Set Of Workstations To Which Posted
v Post Structure
v Unpost Structure
Use Archive All Structures to store all structures from the structure store into the specified open archive
file.
If any of the specified structures in the structure store already exists in the archive file, then the graPHIGS
API resolves the conflict according to the value of the archive conflict resolution flag specified by the Set
Conflict Resolution subroutine.
Language Bindings
par_all_structs(archive_id)
Input Parameters
Pint archive_id
Archive file identifier.
FORTRAN
PARAST(afid)
Input Parameters
integer afid
Archive file identifier.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
405 Name Conflict Occurred, Conflict Resolution Flag = Abandon
406 Warning, Archive File Is Full
Related Subroutines
v Archive Structure Networks
v Archive Structures
Use Archive Structure Networks to store one or more structure networks from the structure store into the
specified open archive file.
If any of the specified root structures do not exist in the structure store, then the graPHIGS API issues a
warning and no action is taken for the non-existing structures. If any of the specified structures in the
structure network already exists in the archive file, then the graPHIGS API resolves the conflict according
to the value of the archive conflict resolution flag specified by the Set Conflict Resolution subroutine.
If the archive file is not large enough to complete the archival process, then the graPHIGS API issues an
error and does not archive any other structure networks. However, any structures that the graPHIGS API
archived are archived completely.
Language Bindings
par_struct_nets(archive_id, struct_ids)
Input Parameters
Pint archive_id
Archive file identifier.
cont Pint_list *struct_ids
List of root structure identifiers.
FORTRAN
PARSN(afid, n, lstrid)
Input Parameters
integer afid
Archive file identifier.
integer n
Number of root structure identifiers in the list.
integer lstrid(n)
List of root structure identifiers.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
200 Warning, Ignoring Structures That Do Not Exist
405 Name Conflict Occurred, Conflict Resolution Flag = Abandon
406 Warning, Archive File Is Full
Related Subroutines
Use Archive Structures to store one or more specified structures from the structure store into the specified
open archive file.
If any of the specified structures do not exist in the structure store, then the graPHIGS API issues a
warning and no action is taken for the non-existing structures. If any of the specified structures already
exists in the archive file, then the graPHIGS API resolves the conflict according to the value of the archive
conflict resolution flag specified by the Set Conflict Resolution subroutine.
If the archive file is not large enough to complete the archival process, then the graPHIGS API issues an
error and does not archive any other structures. However, any structures that the graPHIGS API archived
are archived completely.
Language Bindings
par_structs(archive_id, struct_ids)
Input Parameters
Pint archive_id
Archive file identifier.
cont Pint_list *struct_ids
List of structure identifiers.
FORTRAN
PARST(afid, n, lstrid)
Input Parameters
integer afid
Archive file identifier.
integer n
Number of structure identifiers in the list.
integer lstrid(n)
List of structure identifiers.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
200 Warning, Ignoring Structures That Do Not Exist
405 Name Conflict Occurred, Conflict Resolution Flag = Abandon
Related Subroutines
v Archive Structure Networks
v Archive Structures
v Set Conflict Resolution
Use Close Archive File to close the specified open archive file. The graPHIGS API removes the archive file
identifier from the set of open archive files.
If no other archive files are open, then this subroutine sets the current archive state to Archive Closed
(ARCL).
Language Bindings
pclose_ar_file (archive_id)
Input Parameters
Pint archive_id
Archive file identifier.
FORTRAN
PCLARF (afid)
Input Parameters
integer afid
Archive file identifier.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
Related Subroutines
v Open Archive File
Use Delete All Structures from Archive to delete all structures from the specified open archive file.
This subroutine is equivalent to invoking the Delete Structures from Archive for each structure in the
selected structure store.
Language Bindings
pdel_all_structs_ar (archive_id)
Input Parameters
Pint archive_id
Archive file identifier.
FORTRAN
PDASAR(afid)
Input Parameters
integer afid
Archive file identifier.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
Related Subroutines
v Delete Structure Networks From Archive
v Delete Structures From Archive
Use Delete Structure Networks from Archive to delete one or more structure networks from the specified
open archive file.
The graPHIGS API does not check if other structures in the archive file reference the deleted structures.
Therefore, the graPHIGS API does not delete the execute structure elements in other archived structures
that reference the deleted structures.
If the specified structure does not exist in the archive file, then the graPHIGS API issues a warning and no
action is taken for the structure.
Language Bindings
Input Parameters
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer n
Number of root structure identifiers in the list.
integer lstrid(n)
List of root structure identifiers.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
407 Warning, Some Specified Structures Do Not Exist On Archive File
Related Subroutines
v Delete All Structures From Archive
v Delete Structures From Archive
v Execute Structure
Use Delete Structures from Archive to delete one or more structures from the specified open archive file.
The graPHIGS API does not check if other structures in the archive file reference the deleted structures.
Therefore, the graPHIGS API does not delete the execute structure elements in other archived structures
that reference the deleted structures.
If a specified structure does not exist in the archive file, then the graPHIGS API issues a warning and no
action is taken for the structure.
Language Bindings
Input Parameters
Pint archive_id
Archive file identifier.
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer n
Number of structure identifiers in the list.
integer lstrid(n)
List of structure identifiers.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
407 Warning, Some Specified Structures Do Not Exist On Archive File
Related Subroutines
v Delete All Structures From Archive
v Delete Structures From Archive
v Execute Structure
This subroutine function sets the current archive state to Archive Open (AROP). The graPHIGS API adds
the archive file identifier to the set of open archive files.
The graPHIGS API External Defaults File (EDF) allows the application to denote, indirectly, the actual
value of the file descriptor. For more information on the External Defaults File, see The graPHIGS
Programming Interface: Technical Reference under ″Defaults and Nicknames″.
Language Bindings
Input Parameters
Pint archive_id
Archive file identifier.
const char *archive_file
Archive file descriptor. This parameter looks like a Unix file descriptor which consists of a
where:
v path = /phigs which says go from the root directory to the directory phigs.
v filename = file1
v extension = .archive
The following rules apply to the descriptor, depending on which system the nucleus is running in:
v AIX
If you did not specify the path, then the graPHIGS API uses the default directory at the time of
the execution of the subroutine.
v MVS
– filename - You must specify a filename. This is the DD-name of the BSAM data set of the
archive file.
– extension - Any extension is ignored.
v VM/CMS
The file descriptor can have one of two forms:
– filename [filetype [filemode]] or
– filename[.filetype[.filemode]]
If the filetype is missing, then the graPHIGS API uses a filetype of ARCHIVE.
If the filemode is missing, then the graPHIGS API uses a filemode of A1.
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer arcfil
Archive file descriptor. An integer value for this descriptor. An association between this value and a
valid file descriptor is then made via an External Defaults File (EDF).
For example, the file descriptor of file1.archive is attained if the EDF contains the following line:
AFMMDFT ARCHIVE=(99,file1.archive,)
If the EDF does not contain a match for the integer value, then a filename is created based on the
integer value using the following formula:
final value = Remainder (Absolute Value (original value) / 999)
The graPHIGS API uses this final value (000<=final value<=999) to create the filename
(AFMAFxxx, where xxx is the final value).
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Close Archive File
Use Retrieve All Structures to retrieve all structures from the specified open archive file and place them
into the structure store.
If any of the specified structures in the archive file already exists in the structure store, then the graPHIGS
API resolves the conflict according to the value of the archive conflict resolution flag specified by the Set
Conflict Resolution subroutine.
When you retrieve a structure that is the open structure, the structure is closed, emptied, retrieved, and
reopened and the graPHIGS API maintains all references to the structure. The result is as though you had
issued the following:
1. Close Structure
2. Empty Structure
3. Retrieve Structure
4. Open Structure
If the structure retrieved contains an execute structure element that references a non-existing structure,
then the graPHIGS API creates an empty structure.
Language Bindings
pret_all_structs (archive_id)
Input Parameters
Pint archive_id
Archive file identifier.
FORTRAN
PRAST (afid)
Input Parameters
integer afid
Archive file identifier.
Errors
7 Function Requires State (PHOP,*,*,AROP)
Related Subroutines
v Retrieve Structure Networks
v Retrieve Structures
v Set Conflict Resolution
Use Retrieve Paths to Ancestors to retrieve the ancestral paths of the specified structure from the
specified open archive file.
A path of ancestors of a structure S is a list of ordered pairs ((A1,E1), (A2,E2),..., (Am,Em),(S,0)) where
each ordered pair consists of an identifier of a structure (Ax) that is an ancestor of the specified structure
(S) and the position of an execute structure-type element (Ex) that references the next structure in the
path. Ancestor structure A1 is the top of the path (e.g., not referenced by any other structure) and S is the
bottom of the path.
The path order and path depth determine the portion of each path that the graPHIGS API returns. Your
application can specify the path order as TOP_FIRST or BOTTOM_FIRST. The path depth determines the
maximum number of ordered pairs returned in any one path. Specifying a path depth of zero returns each
path in its entirety. When truncation occurs, the path order determines whether the graPHIGS API returns
the head or tail portion of the path. This truncation can result in two or more portions of paths having the
same set of element references. The graPHIGS API returns only one such portion so that all the returned
path portions are distinct.
Language Bindings
Input Parameters
Pint ar_id
Archive file identifier.
Pint struct_id
Structure identifier.
Ppath_order order
Path order (0=PORDER_TOP_FIRST, 1=PORDER_BOTTOM_FIRST).
Pint depth
Path depth (>=0).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See the Create Store subroutine for details on how the
graPHIGS API uses this parameter.
Output Parameters
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer strid
Structure identifier.
integer pthord
Path order (0=PPOTOP, 1=PPOBOT).
integer pthdep
Path depth (>=0).
integer ipthsz
Maximum number of path entries that the buffer can hold.
integer n
Element of the list of paths.
Output Parameters
integer ol
Number of paths available
integer apthsz
Actual number of entries in the nth structure path.
integer paths(2,ipthsz)
nth structure path.
Errors
7 Function Requires State (PHOP,*,*,AROP)
201 Specified Structure Does Not Exist
207 Specified Path Depth < Zero
Related Subroutines
v Retrieve Paths To Descendants
Use Retrieve Paths to Descendants to retrieve the descendant paths of the specified structure from the
specified open archive file.
A path of descendants of a structure S is a list of ordered pairs ((S,E0), (D1,E1), (D2,E2),..., (Dn,0)) where
each ordered pair consists of an identifier of a structure (Dx) that is a descendant of the specified structure
The path order and path depth determine the portion of each path that the graPHIGS API returns. Your
application can specify the path order as TOP_FIRST or BOTTOM_FIRST. The path depth determines the
maximum number of ordered pairs returned in any one path. Specifying a path depth of zero returns each
path in its entirety. When truncation occurs, the path order determines whether the graPHIGS API returns
the head or tail portion of the path. This truncation can result in two or more portions of paths having the
same set of element references. The graPHIGS API returns only one such portion so that all the returned
path portions are distinct.
Language Bindings
Input Parameters
Pint ar_id
Archive file identifier.
Pint struct_id
Structure identifier.
Ppath_order order
Path order (0=PORDER_TOP_FIRST, 1=PORDER_BOTTOM_FIRST).
Pint depth
Path depth (>=0).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See the Create Store subroutine for details on how the
graPHIGS API uses this parameter.
Output Parameters
Pelem_ref_list_list **paths
Structure path list. The memory referenced by *paths is managed by Store. If an error occurs, then
*paths is set to NULL.
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer strid
Structure identifier.
integer pthord
Path order (0=PPOTOP, 1=PPOBOT).
integer pthdep
Path depth (>=0).
Output Parameters
integer ol
Number of paths available
integer apthsz
Actual number of entries in the nth structure path.
integer paths(2,ipthsz)
nth structure path.
Errors
7 Function Requires State (PHOP,*,*,AROP)
201 Specified Structure Does Not Exist
207 Specified Path Depth < Zero
Related Subroutines
v Retrieve Paths To Ancestors
Use Retrieve Structure Identifiers to retrieve a list of structure identifiers in the specified open archive file.
Language Bindings
Input Parameters
Pint archive_id
Archive file identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint_list *ids
List of structure identifiers.
Pint *num_elems_impl_list
Number of elements in the implementation list.
Input Parameters
integer afid
Archive file identifier.
integer ilsize
Size of the list (lstrid).
Output Parameters
integer n
Number of structure identifiers in list.
integer lstrid(*)
List of structure identifiers.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
Related Subroutines
v None
Use Retrieve Structure Networks to retrieve one or more structure networks from the specified open
archive file and place them into the structure store.
If any of the specified root structures do not exist in the specified archive file and the specified structure
identifier does not exist in the structure store, then the graPHIGS API issues a warning and creates an
empty structure. If any of the specified root structures do not exist in the specified archive file and the
specified structure identifier does exist in the structure store and the conflict resolution flag is set to
UPDATE, then the graPHIGS API issues a warning and empties the structure.
If any of the specified structures in the structure network already exists in the structure store, then the
graPHIGS API resolves the conflict according to the value of the archive conflict resolution flag specified
by the Set Conflict Resolution subroutine.
When you retrieve a structure that is an open structure, the structure is closed, emptied, retrieved, and
reopened and the graPHIGS API maintains all references to the structure. The result is as though you had
issued the following:
1. Close Structure
2. Empty Structure
3. Retrieve Structure
4. Open Structure
If the structure retrieved contains an execute structure element that references a non-existing structure,
then the graPHIGS API creates an empty structure.
Input Parameters
Pint archive_id
Archive file identifier.
const Pint_list *struct_ids
List of root structure identifiers.
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer n
Number of root structure identifiers in list.
integer lstrid(n)
List of root structure identifiers.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
405 Name Conflict Occurred, Conflict Resolution Flag = Abandon
408 Warning, Structure(s) Not In Archive, Empty One(s) To Be Created
Related Subroutines
v Retrieve All Structures
v Retrieve Structures
v Set Conflict Resolution
Use Retrieve Structures to retrieve one or more structures from the specified open archive file and place
them into the structure store.
If any of the specified structures do not exist in the specified archive file and the specified structure
identifier does not exist in the structure store, then the graPHIGS API issues a warning and creates an
empty structure. If any of the specified structures do not exist in the specified archive file and the specified
structure identifier does exist in the structure store and the conflict resolution flag is set to UPDATE, then
the graPHIGS API issues a warning and empties the structure.
When you retrieve a structure that is an open structure, the structure is closed, emptied, retrieved, and
reopened and the graPHIGS API maintains all references to the structure. The result is as though you had
issued the following:
1. Close Structure
2. Empty Structure
3. Retrieve Structure
4. Open Structure
If the structure retrieved contains an execute structure element that references a non-existing structure,
then the graPHIGS API creates an empty structure.
Language Bindings
Input Parameters
Pint archive_id
Archive file identifier.
const Pint_list *struct_ids
List of structure identifiers.
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer n
Number of structure identifiers in list.
integer lstrid(n)
List of structure identifiers.
Errors
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
405 Name Conflict Occurred, Conflict Resolution Flag = Abandon
408 Warning, Structure(s) Not In Archive, Empty One(s) To Be Created
Related Subroutines
v Retrieve All Structures
v Retrieve Structures
v Set Conflict Resolution
132 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
SET CONFLICT RESOLUTION (PHOP,*,*,*)
Purpose
Use Set Conflict Resolution to set the conflict resolution flags for use by all archive files. The graPHIGS
API uses these flags to determine how to resolve conflicts when you are archiving or retrieving one or
more structures (e.g., when a structure that exists in a specified archive file has the same identifier as a
structure that exists in the structure store).
There are two conflict resolution flags: the archival conflict resolution for moving structure data to an
archive file from the structure store and the retrieval conflict resolution for moving structure data from an
archive file to the structure store. Your application can set either of these flags to: MAINTAIN, ABANDON,
or UPDATE.
v If the value is set to MAINTAIN, then the graPHIGS API does not transfer any structures when a conflict
occurs.
v If the value is set to ABANDON, then the graPHIGS API does not transfer any structures when a
conflict occurs.
v If the value is set to UPDATE, then the graPHIGS API transfers all the structures and replaces any
conflicting structures with the new ones.
If this subroutine is not used, then the archival conflict resolution flag defaults to a value of UPDATE and
the retrieval conflict resolution flag defaults to a value of ABANDON.
Language Bindings
Input Parameters
Pconf_res archive_res
Archival conflict resolution. (0=PRES_MAINTAIN, 1=PRES_ABANDON, 2=PRES_UPD).
Pconf_res retrieval_res
Retrieval conflict resolution (0=PRES_MAINTAIN, 1=PRES_ABANDON, 2=PRES_UPD).
FORTRAN
Input Parameters
integer arccr
Archival conflict resolution (0=PCRMNT, 1=PCRABA, 2=PCRUPD).
integer retcr
Retrieval conflict resolution (0=PCRMNT, 1=PCRABA, 2=PCRUPD).
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Inquire Conflict Resolution
Modeling Clipping
The modeling clipping subroutines create modeling clipping structure elements, which modify the current
modeling clipping values that the graPHIGS API applies to primitives during traversal.
Modeling Transformations
The modeling transformation subroutines create transformation structure elements, which modify the
current transformation values that the graPHIGS API applies to primitives during traversal.
When the graPHIGS API inserts a structure element into an open structure following the element pointer,
the pointer moves to the new element.
Workstation Transformations
The workstation transformation subroutines allow the application to modify the mapping of Normalized
Projection Coordinates (NPC) into Device Coordinates (DC) for a specified workstation.
Use Restore Modeling Clipping Volume to insert a Restore Modeling Clipping Volume structure element
into the open structure following the element pointer, or to replace the element pointed at by the element
pointer with a Restore Modeling Clipping Volume structure element, depending on the current edit mode.
During traversal, the Restore Modeling Clipping Volume structure element restores the current modeling
clipping volume in the graPHIGS API traversal state list to the volume inherited by the structure. At
structure traversal time, the graPHIGS API uses this volume to render all subsequent primitives.
Language Bindings
prestore_model_clip_vol();
FORTRAN
PRMCV
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Modeling Clipping Facilities
v Set Modeling Clipping Indicator
Use Set Global Transformation to insert a two-dimensional Set Global Transformation structure element
into the open structure following the element pointer, or replace the element pointed at by the element
pointer with a Set Global Transformation structure element, depending on the current edit mode.
When the graPHIGS API encounters this element during traversal, the graPHIGS API expands it into a 4x4
matrix as follows:
- - - -
| | | |
|a b c| |a b 0 c|
|d e f| -----> |d e 0 f|
|g h i| |0 0 1 0|
| | |g h 0 i|
- - | |
- -
and causes the expanded matrix to become the current global transformation for the current structure. The
resultant matrix, in conjunction with the local modeling transformation, transforms all subsequent primitives
from the Modeling Coordinate (MC) system to the World Coordinate (WC) system.
Language Bindings
pset_global_tran (global_tran)
Input Parameters
Pmatrix global_tran
Global transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
FORTRAN
PSGMT (xfrmt)
Input Parameters
real xfrmt(3,3)
Global transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
When encountered during traversal, this element causes the specified matrix to replace the current global
transformation for the current structure. The resultant matrix, in conjunction with the local modeling
transformation, transforms all subsequent primitives from the Modeling Coordinate (MC) system to the
World Coordinate (WC) system.
Language Bindings
pset_global_tran3 (global_tran)
Input Parameters
Pmatrix3 global_tran
Global transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
FORTRAN
PSGMT3 (xfrmt)
Input Parameters
real xfrmt(4,4)
Global transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Set Local Transformation to insert a two-dimensional Set Local Transformation structure element into
the open structure following the element pointer, or replace the element pointed at by the element pointer
with a Set Local Transformation structure element, depending on the current edit mode.
When the graPHIGS API encounters this element during traversal, the graPHIGS API expands it into a 4 X
4 matrix as follows:
- - - -
| | | |
|a b c| |a b 0 c|
|d e f| -----> |d e 0 f|
|g h i| |0 0 1 0|
| | |g h 0 i|
- - | |
- -
Language Bindings
Input Parameters
Pmatrix local_tran
Local transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
Pcompose_type compose_type
Composition type (0=PTYPE_PRECONCAT, 1=PTYPE_POSTCONCAT, 2=PTYPE_REPLACE).
FORTRAN
Input Parameters
real xfrmt(3,3)
Local transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
integer ctype
Composition type (0=PCPRE, 1=PCPOST, 2=PCREPL).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Set Local Transformation 3 to insert a three-dimensional Set Local Transformation 3 structure element
into the open structure following the element pointer, or replace the element pointed at by the element
pointer with a Set Local Transformation 3 structure element, depending on the current edit mode.
Depending on the composition type, when the graPHIGS API encounters this element during traversal, the
specified matrix replaces, is pre-concatenated with, or is post-concatenated with the current local modeling
transformation matrix. The resultant matrix, in conjunction with the global modeling transformation,
transforms all subsequent primitives from the Modeling Coordinate (MC) system to the World Coordinate
(WC) system.
Language Bindings
Input Parameters
Pmatrix3 local_tran
Local transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
Pcompose_type compose_type
Composition type (0=PTYPE_PRECONCAT, 1=PTYPE_POSTCONCAT, 2=PTYPE_REPLACE).
FORTRAN
Input Parameters
real xfrmt(4,4)
Local transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of
the storage of the transformation matrix).
integer ctype
Composition type (0=PCPRE, 1=PCPOST, 2=PCREPL).
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v None
Use Set Modeling Clipping Volume to insert a two-dimensional Set Modeling Clipping Volume structure
element into the open structure following the element pointer, or to replace the element pointed at by the
element pointer with a Set Modeling Clipping Volume structure element, depending on the current edit
mode.
This structure element specifies the current modeling clipping volume. Each modeling clipping half-space
contains a point and a vector defined in modeling coordinates (MC). The graPHIGS API expands each
two-dimensional half-space to a three-dimensional half-space by setting the z coordinate of both the point
and the vector to the value 0.0. The current modeling transformation transforms each pair of half-spaces
(consisting of a point and vector) from the Modeling Coordinate (MC) system to the World Coordinate
(WC) system, and defines a boundary (plane) in WC. The transformed point is on this plane and the
transformed vector defines a normal to the plane which points into the acceptance half-space region. The
clipping volume is obtained by intersecting all acceptance half-spaces in the list specified by this element.
During structure traversal, the volume specified by this element either replaces or intersects the current
modeling clipping volume, depending on the value specified by the modeling clipping operator parameter.
At structure traversal time, the graPHIGS API uses the resultant clipping volume to render subsequent
primitives. Transformation elements encountered during traversal do not affect the resultant clipping
volume. The resultant volume defines the acceptance region. The graPHIGS API clips portions of
subsequent primitives that are outside of the acceptance region.
During traversal, if the workstation does not support the specified modeling clipping operator, if the
specified number of clipping half-spaces exceeds the maximum supported by the workstation, or if any
half-space is found to be degenerate, then the graPHIGS API ignores this structure element.
During traversal, if the graPHIGS API encounters a Set Modeling Clipping Volume structure element and
the current composite modeling transformation matrix is singular, then the graPHIGS API sets the effective
clipping volume to the null volume and clips all subsequent primitives.
Language Bindings
Input Parameters
Pint op
Operator (1=REPLACE, 2=INTERSECT).
const Phalf_space_list *half_spaces
List of half-spaces.
FORTRAN
Input Parameters
integer op
Operator (1=PMCREP, 2=PMCINT).
integer nhalfs
Number of half-spaces in the list.
real halfsp(4,nhalfs)
List of half-spaces.
For the ith modeling clipping half-space:
v HALFSP(1,i) is the x component of the point.
v HALFSP(2,i) is the y component of the point.
v HALFSP(3,i) is the Delta x component of the normal vector.
v HALFSP(4,i) is the Delta y component of the normal vector.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Modeling Clipping Facilities
v Set Modeling Clipping Indicator
This element specifies the current modeling clipping volume. Each modeling clipping half-space contains a
point and a vector defined in modeling coordinates (MC). The current modeling transformation transforms
each pair of half-spaces (consisting of a point and vector) from the Modeling Coordinate (MC) system to
the World Coordinate (WC) system, and defines a boundary (plane) in WC. The transformed point is on
this plane and the transformed vector defines a normal to the plane which points into the acceptance
half-space region. The clipping volume is obtained by intersecting all acceptance half-spaces in the list
specified by this element.
During structure traversal, the volume specified by this element either replaces or intersects the current
modeling clipping volume, depending on the value specified by the modeling clipping operator parameter.
At structure traversal time, the graPHIGS API uses the resultant volume to render subsequent primitives.
Transformation elements encountered do not affect the resultant clipping volume. The resultant volume
defines the acceptance region. The graPHIGS API clips portions of subsequent primitives that are outside
of the acceptance region.
If the number of modeling clipping half-spaces is set to zero, then the acceptance region is all of world
coordinate space (WC) and no clipping occurs.
During traversal, if the workstation does not support the specified modeling clipping operator, if the
specified number of clipping half-spaces exceeds the maximum supported by the workstation, or if any
half-space is found to be degenerate, then the graPHIGS API ignores this structure element.
During traversal, if the graPHIGS API encounters a Set Modeling Clipping Volume 3 structure element and
the current composite modeling transformation matrix is singular, then the graPHIGS API sets the effective
clipping volume to the null volume and clips all subsequent primitives.
Language Bindings
Input Parameters
Pint op
Operator (1=REPLACE, 2=INTERSECT).
const Phalf_space_list3 *half_spaces
List of half-spaces.
FORTRAN
Input Parameters
integer op
Operator (1=PMCREP, 2=PMCINT).
integer nhalfs
Number of half-spaces in the list.
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Modeling Clipping Facilities
v Set Modeling Clipping Indicator
Use Set Modeling Clipping Indicator to insert a Set Modeling Clipping Indicator structure element into the
open structure following the element pointer, or to replace the element pointed at by the element pointer
with a Set Modeling Clipping Indicator structure element, depending on the current edit mode.
Use this subroutine to set the value of the current modeling clipping indicator. During structure traversal,
the graPHIGS API uses this value to determine whether or not to perform modeling clipping on subsequent
output primitives.
Note: Not all graPHIGS API workstations support modeling clipping. Use the graPHIGS API Inquire
Workstation Description (GPQWDT) subroutine to determine if a particular workstation supports modeling
clipping.
Language Bindings
pset_model_clip_ind (clip_ind)
Input Parameters
Pclip_ind clip_ind
Clipping indicator (0=PIND_NO_CLIP, 1=PIND_CLIP).
FORTRAN
PSMCLI (mclipi)
Input Parameters
Errors
5 Function Requires State (PHOP,*,STOP,*)
Related Subroutines
v Inquire Modeling Clipping Facilities
v Set Modeling Clipping Volume
v Set Modeling Clipping Volume 3
Use Set Workstation Viewport to set the requested two-dimensional workstation viewport for the specified
workstation.
The graPHIGS API sets the x, y components of the current workstation viewport to the requested values
when you update the workstation. The graPHIGS API does not change the z coordinates of the requested
workstation viewport or the current workstation viewport.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
const Plimit *ws_vp_limits
Workstation viewport limits in DC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
real xmin
Minimum workstation viewport limit on the x-axis in DC.
real xmax
Maximum workstation viewport limit on the x-axis in DC.
real ymin
Minimum workstation viewport limit on the y-axis in DC.
real ymax
Maximum workstation viewport limit on the y-axis in DC.
Related Subroutines
v Inquire Workstation Transformation
v Inquire Workstation Transformation 3
v Set Workstation Viewport 3
v Set Workstation Window
v Set Workstation Window 3
Use Set Workstation Viewport 3 to set the requested three-dimensional workstation viewport for the
specified workstation.
The graPHIGS API sets the current workstation viewport to the requested values when you update the
workstation.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
const Plimit3 *ws_vp_limits
Workstation viewport limits in DC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
real wkvp(6)
Workstation viewport limits in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
Related Subroutines
v Inquire Workstation Transformation
v Inquire Workstation Transformation 3
v Set Workstation Viewport
v Set Workstation Window
v Set Workstation Window 3
Use Set Workstation Window to set the requested two-dimensional workstation window for the specified
workstation.
The graPHIGS API sets the x, y components of the current workstation window to the requested values
when you update the workstation. The graPHIGS API does not change the z coordinates of the requested
workstation window or the current workstation window.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
const Plimit *ws_win_limits
Workstation window limits in NPC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
real xmin
Minimum workstation window limit on the x-axis in NPC.
real xmax
Maximum workstation window limit on the x-axis in NPC.
real ymin
Minimum workstation window limit on the y-axis in NPC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
151 Invalid Window: Minimum Value >= To Corresponding Maximum Value
156 Workstation Window Limits Are Not Within NPC Range
Related Subroutines
v Inquire Workstation Transformation
v Inquire Workstation Transformation 3
v Set Workstation Viewport
v Set Workstation Viewport 3
v Set Workstation Window 3
Use Set Workstation Window 3 to set the requested three-dimensional workstation window for the
specified workstation.
The graPHIGS API sets the current workstation window to the requested values when you update the
workstation.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
const Plimit3 *ws_win_limits
Workstation window limits in NPC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
real wkwn(6)
Workstation window limits in NPC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
Related Subroutines
v Inquire Workstation Transformation 3
v Set Workstation Viewport
v Set Workstation Viewport 3
v Set Workstation Window
To determine the actual input capabilities of a specific workstation, use the appropriate inquiry subroutines.
The measure and trigger of each logical input device is described in terms of the physical devices
available on a workstation. See The graPHIGS Programming Interface: Technical Reference for the details
of each logical device supported on a workstation.
The default size of the input queue is 16K. You can control this size with the IQSIZE default, which is
explained in the The graPHIGS Programming Interface: Technical Reference.
The input queue elements all have a header of 16 bytes. Use the information supplied in Appendix B of
The graPHIGS Programming Interface: Technical Reference to interpret the information after the header.
Use Await Event to move the next event from the input queue into the current event report. If the input
queue is empty, then the graPHIGS API is placed in a wait state until at least one of the following occurs:
1. The application adds an event to the input queue.
2. The time specified in the timeout parameter has elapsed.
If the timeout parameter specifies a value of zero or less, then no wait takes place. If the timeout
parameter specifies a value greater than zero, then a wait takes place for the specified time interval. The
maximum time interval is 55,800 seconds (15.5 hours).
The graPHIGS API uses the operating system’s timing facility. (See The graPHIGS Programming Interface:
Writing Applications).
When a timeout or error situation occurs, the graPHIGS API returns NONE for the input class parameter.
Otherwise, the graPHIGS API returns the workstation identifier, input class, and the logical device number.
Input classes include: LOCATOR, STROKE, VALUATOR, CHOICE, PICK, and STRING.
The application must use the appropriate ″Get″ subroutine call to obtain the value(s) of the input residing
in the current event report (i.e., Get Choice, Get Locator 3, Get String).
Language Bindings
Input Parameters
Pfloat timeout
Timeout interval in seconds.
Output Parameters
Pint *ws_id
Workstation identifier.
Pin_class *dev_class
Input device class (0=PIN_NONE, 1=PIN_LOC, 2=PIN_STROKE, 3=PIN_VAL, 4=PIN_CHOICE,
5=PIN_PICK, 6=PIN_STRING).
Pint *in_num
Logical input device number.
FORTRAN
Input Parameters
real tout
Timeout interval in seconds.
Output Parameters
integer wkid
Workstation identifier.
integer icl
Input device class (0=PNCLAS, 1=PLOCAT, 2=PSTROK, 3=PVALUA, 4=PCHOIC, 5=PPICK,
6=PSTRIN).
integer idnr
Logical input device number.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
256 Warning, Input Queue Has Overflowed
Note: The graPHIGS API performs this operation even if error 256 occurs.
Related Subroutines
v Flush Device Events
v Get Choice
v Get Locator
v Get Locator 3
v Get Pick
v Get String
v Get Stroke
Use Flush Device Events to discard all input events from the specified logical input device.
This subroutines removes all events received from the specified input device, matching the specified
device class, workstation identifier and device number, from the event queue. Input classes include:
LOCATOR, STROKE, VALUATOR, CHOICE, PICK, and STRING.
If the current event report includes an event matching the specified input device, then the graPHIGS API
also removes the current event report.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pin_class dev_class
Input device class (0=PIN_NONE, 1=PIN_LOC, 2=PIN_STROKE, 3=PIN_VAL, 4=PIN_CHOICE,
5=PIN_PICK, 6=PIN_STRING).
Pint in_num
Logical input device number (>=1).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer icl
Input device class (1=PLOCAT, 2=PSTROK, 3=PVALUA, 4=PCHOIC, 5=PPICK, 6=PSTRIN).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
256 Warning, Input Queue Has Overflowed
Note: The graPHIGS API performs this operation even if error 256 occurs.
Related Subroutines
v Inquire Number Of Available Logical Input Devices
Use Get Choice to retrieve a choice input value from the current event report. The graPHIGS API identified
the device to which this value corresponds on the previous invocation of the Await Event subroutine call
Await Event The graPHIGS API does not remove the event from the current event report until the next
invocation of Await Event.
Language Bindings
Output Parameters
Pin_status *in_status
Choice status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint *choice
Choice number (>=1).
FORTRAN
Output Parameters
integer stat
Choice status (1=POK, 2=PNCHOI).
integer chnr
Choice number (>=1).
Errors
Related Subroutines
v Await Event
Use Get Locator to retrieve a locator input value from the current event report. The graPHIGS API does
not remove the event from the current event report until the next invocation of the Await Event subroutine
call.
The view index indicates the view table entry which has a matrix that the graPHIGS API used to convert
the locator point from Device Coordinates (DC) to World Coordinates (WC). This was the view with the
highest input priority at the indicated screen location.
The graPHIGS API identified the device to which this value corresponds on the previous invocation of
Await Event Await Event.
This subroutine returns the locator input from the view with the highest input priority under the cursor. View
zero is the highest priority view unless modified by your application.
Note: This subroutine returns a two-dimensional result. The graPHIGS API discards the z coordinate
of the locator position. The x and y values of the locator position are identical to those returned by
the Get Locator 3 subroutine for the same operator action.
Language Bindings
Output Parameters
Pint *view_ind
View index.
Ppoint *loc_pos
Locator position in WC.
FORTRAN
Output Parameters
integer viewi
View index.
real lpx
x coordinate of the locator position in WC.
real lpy
y coordinate of the locator position in WC.
Related Subroutines
v Await Event
v Get Locator 3
v Set View Transformation Input Priority
Use Get Locator 3 to retrieve a locator input value from the current event report. The graPHIGS API does
not remove the event from the current event report until the next invocation of the Await Event subroutine
call.
The view index indicates the view table entry which has a matrix that the graPHIGS API used to convert
the locator point from Device Coordinates (DC) to World Coordinates (WC). This was the view with the
highest input priority at the indicated screen location.
The graPHIGS API identified the device to which this value corresponds on the previous invocation of the
Await Event subroutine call.
This subroutine returns the locator input from the view with the highest input priority under the cursor. View
zero is the highest priority view unless modified by your application.
Language Bindings
Output Parameters
Pint *view_ind
View index.
Ppoint3 *loc_pos
Locator position in WC.
FORTRAN
Output Parameters
integer viewi
View index.
real lpx
x coordinate of the locator position in WC.
real lpy
y coordinate of the locator position in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
259 Requested Device Class Not Current Input Report Class
Related Subroutines
v Await Event
v Get Locator
v Set View Transformation Input Priority
Use Get Pick to retrieve a pick input value from the current event report. The graPHIGS API does not
remove the event from the current event report until the next invocation of the Await Event subroutine.
This value consists of a pick status and pick path information describing the position of the picked primitive
in the structure network. The pick status may be OK or NOPICK. The graPHIGS API returns the pick path
in the order specified in the the Initialize Pick subroutine, that is, TOP FIRST or BOTTOM FIRST. If your
application has not called the Initialize Pick subroutine, then the pick path order defaults to TOP FIRST.
Each entry in the pickpath consists of a structure identifier, a pick identifier, and an element position.
The graPHIGS API identified the device to which this value corresponds on the previous invocation of
Await Event.
Language Bindings
Input Parameters
Pint depth
Maximum depth of the pick path to return.
Output Parameters
Pin_status *in_status
Pick status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Ppick_path *pick
Pick path.
FORTRAN
Input Parameters
integer ippd
Maximum depth of the pick path to return.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
259 Requested Device Class Not Current Input Report Class
Related Subroutines
v Await Event
Use Get String to retrieve a string input value from the current event report. The graPHIGS API does not
remove the event from the current event report until the next invocation of the Await Event subroutine call.
The length of the returned string is less than, or equal to, the buffer size found in the string data record at
the time the device was set to event mode.
The graPHIGS API identified the device to which this value corresponds on the previous invocation of
Await Event.
Language Bindings
pget_string (string)
Output Parameters
char *string
String.
FORTRAN
Output Parameters
integer lostr
Number of characters returned.
character*(*) str
String.
Output Parameters
integer lostr
Number of characters returned.
character*80 str
String.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
259 Requested Device Class Not Current Input Report Class
Related Subroutines
v Await Event
Use Get Stroke to retrieve a stroke input device value from the current event report. The graPHIGS API
does not remove the event from the current event report until the next invocation of the Await Event
subroutine call.
The graPHIGS API limits the number of returned points to the current input buffer size found in the stroke
data record at the time the device was set to event mode. The view index indicates the view table entry
which has a matrix that the graPHIGS API used to convert the stroke points from Device Coordinates (DC)
to World Coordinates (WC). This view was the view with the highest input priority containing all the stroke
locations.
The graPHIGS API identified the device to which this value corresponds on the previous invocation of
Await Event.
View zero is the highest priority view unless modified by your application.
Note: This function returns a two-dimensional result. The graPHIGS API discards the z coordinate of
the stroke points. The x and y values of the stroke points are identical to those returned by the Get
Stroke 3 subroutine for the same operator action.
Language Bindings
Output Parameters
Pint *view_ind
View index.
Ppoint_list *stroke
Stroke.
Input Parameters
integer n
Dimension of arrays for the stroke points (>=0).
Output Parameters
integer viewi
View index.
integer np
Number of points.
real pxa (n)
x coordinates of the points in the stroke in WC.
real pya (n)
y coordinates of the points in the stroke in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
259 Requested Device Class Not Current Input Report Class
Related Subroutines
v Await Event
v Get Stroke 3
v Set View Transformation Input Priority
Use Get Stroke 3 to retrieve a stroke input device value from the current event report. The graPHIGS API
does not remove the event from the current event report until the next invocation of the the Await Event
subroutine call.
The graPHIGS API limits the number of returned points to the current input buffer size found in the stroke
data record at the time the device was set to event mode. The view index indicates the view table entry
which has a matrix that the graPHIGS API used to convert the stroke points from Device Coordinates (DC)
to World Coordinates (WC). This view was the view with the highest input priority containing all the stroke
locations.
The graPHIGS API identified the device to which this value corresponds on the previous invocation of
Await Event.
View zero is the highest priority view unless modified by your application.
Language Bindings
FORTRAN
Input Parameters
integer n
Dimension of arrays for the stroke points (>=0).
Output Parameters
integer viewi
View index.
integer np
Number of points.
real pxa (n)
x coordinates of the points in the stroke in WC.
real pya (n)
y coordinates of the points in the stroke in WC.
real pza (n)
z coordinates of the points in the stroke in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
259 Requested Device Class Not Current Input Report Class
Related Subroutines
v Await Event
v Get Stroke
v Set View Transformation Input Priority
Use Get Valuator to retrieve a valuator input value from the current event report. The graPHIGS API does
not remove the event from the current event report until the next invocation of the Await Event subroutine
call.
The graPHIGS API returns a value within the range found in the valuator data record at the time the
device was set to event mode.
The graPHIGS API identified the device to which this value corresponds on the previous invocation of
Await Event.
pget_val (value)
Output Parameters
Pfloat *value
Valuator value.
FORTRAN
PGTVL (val)
Output Parameters
real val
Valuator value.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
259 Requested Device Class Not Current Input Report Class
Related Subroutines
v Await Event
Use Initialize Choice to specify initial values for the specified choice device.
The Initialize Choice subroutine stores the initial choice number, prompt/echo type, echo area, and data
record in the workstation state list for the specified device. The z coordinates of the echo volume remain
unchanged. For a keyboard choice device, an initial choice number less than 256 is interpreted using the
workstation’s input device character set. For details on the specific devices available on different
workstation types, see The graPHIGS Programming Interface: Technical Reference, or use the appropriate
inquiry subroutines.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint choice_num
Choice device number(>=1).
Pin_status init_status
Initial choice status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint init_choice
Initial choice device number (>=1).
Pint pet
Prompt and echo type.
const Plimit *echo_area
Echo area.
const Pchoice_data *choice_data
Data record.
FORTRAN
PINCH (wkid, chdnr, istat, ichnr, pet, xmin, xmax, ymin, ymax, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer chdnr
Choice device number (>=1).
integer istat
Initial choice status (1=POK, 2=PNCHOI).
integer ichnr
Initial choice device number (>=1).
integer pet
Prompt and echo type.
real xmin
Minimum x coordinate determining echo area in DC.
real xmax
Maximum x coordinate determining echo area in DC.
real ymin
Minimum y coordinate determining echo area in DC.
real ymax
Maximum y coordinate determining echo area in DC.
integer ldr
Dimension of the data record array.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
Related Subroutines
v Inquire Choice Device State
v Inquire Default Choice Device Data
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Choice Mode
Use Initialize Choice 3 to specify initial values for a specified choice device.
The Initialize Choice 3 subroutine stores the initial choice number, prompt/echo type, echo volume, and
data record in the workstation state list for the specified device. For a keyboard choice device, an initial
choice number less than 256 is interpreted using the workstation’s input device character set. For details
on the specific devices available on different workstation types, see The graPHIGS Programming Interface:
Technical Reference, or use the appropriate inquiry subroutines.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint choice_num
Choice device number (>=1).
Pin_status init_status
Initial choice status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint init_choice
Initial choice device number (>=1).
Pint pet
Prompt and echo type.
const Plimit3 *echo_vol
Echo volume in DC.
const Pchoice_data3 *choice_data
Data record.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer chdnr
Choice device number (>=1).
integer istat
Initial choice status (1=POK, 2=PNCHOI).
integer ichnr
Initial choice device number (>=1).
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Dimension of the data record array.
character*80 datrec(ldr)
Data record.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
Related Subroutines
v Inquire Choice Device State 3
v Inquire Default Choice Device Data 3
v Inquire Display Space Size 3
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Choice Mode
The Initialize Locator subroutine stores the initial locator position, initial view index, prompt/echo type, echo
area, and locator data record in the workstation state list for the specified device. The z coordinates of
both the echo volume and initial locator position remain unchanged.
Two positions are required for some locator prompt/echo types: the initial locator position, which remains
fixed during input operation, and the current locator position, which varies dynamically as you use the
locator.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Pint init_view_ind
Initial view index (>=0).
const Ppoint *init_loc_pos
Initial locator position in WC.
Pint pet
Prompt and echo type.
const Plimit *echo_area
Echo area in DC.
const Ploc_data *loc_data
Data record.
FORTRAN
PINLC (wkid, lcdnr, iviewi, ipx, ipy, pet, xmin, xmax, ymin, ymax, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer lcdnr
Locator device number (>=1).
integer iviewi
Initial view index (>=0).
real ipx
x coordinate of the initial locator position in WC.
real ipy
y coordinate of the initial locator position in WC.
integer pet
Prompt and echo type.
real xmin
Minimum x coordinate determining echo area in DC.
real xmax
Maximum x coordinate determining echo area in DC.
real ymin
Minimum y coordinate determining echo area in DC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
114 View Index Value < ZERO
Related Subroutines
v Inquire Locator Device State
v Inquire Default Locator Device Data
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Locator Mode
The Initialize Locator 3 subroutine stores the initial locator position, initial view index, prompt/echo type,
echo volume, and locator data record in the workstation state list for the specified device.
Two positions are required for some locator prompt/echo types: the initial locator position, which remains
fixed during input operation, and the current locator position, which varies dynamically as you use the
locator.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Pint init_view_ind
Initial view index (>=0).
const Ppoint3 *init_loc_pos
Initial locator position in WC.
Pint pet
Prompt and echo type.
const Plimit3 *echo_vol
Echo volume in DC.
const Ploc_data3 *loc_data
Data record.
FORTRAN
PINLC3 (wkid, lcdnr, iviewi, ipx, ipy, ipz, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer lcdnr
Locator device number (>=1).
integer iviewi
Initial view index (>=0).
real ipx
x coordinate of the initial locator position in WC.
real ipy
y coordinate of the initial locator position in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
114 View Index Value < ZERO
Related Subroutines
v Inquire Locator Device State 3
v Inquire Default Locator Device Data 3
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Locator Mode
The Initialize Pick subroutine stores the prompt/echo type, echo area, initial pick path depth, initial pick
path, pick data record and pick path order in the workstation state list for the specified device. The z
coordinates of the echo volume remain unchanged.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint pick_num
Pick device number (>=1).
Pint init_status
Initial pick status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
const Ppick_path *init_pick
Initial pick path.
Pint pet
Prompt and echo type.
const Plimit *echo_area
Echo area in DC.
const Ppick_data *pick_data
Data record.
Ppath_order order
Pick path order (0=PORDER_TOP_FIRST, 1=PORDER_BOTTOM_FIRST).
FORTRAN
PINPK (wkid, pkdnr, istat, ippd, pp, pet, xmin, xmax, ymin, ymax, ldr, datrec, ppordr)
Input Parameters
integer wkid
Workstation identifier.
integer pkdnr
Pick device number (>=1).
integer istat
Initial pick status (1=POK, 2=PNPICK).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
60 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
Related Subroutines
v Add Names To Set
v Inquire Pick Device State
v Inquire Default Pick Device Data
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Remove Names From Set
v Set Pick Filter
v Set Pick Identifier
v Set Pick Mode
The Initialize Pick 3 subroutine stores the prompt/echo type, echo volume, initial pick path depth, initial
pick path, pick data record and pick path order in the workstation state list for the specified device.
The pick status may be initialized to OK or NOPICK. The pick path order is the order in which the
graPHIGS API returns elements of the pick path. If you specify the pick path order as TOP FIRST, then
the structure specified in any pick path element is a parent of the structure specified in the subsequent
pick path element. If you specify the pick path order as BOTTOM FIRST, then the structure specified in
any pick path element is a child of the structure specified in the subsequent pick path element. Each
pickpath element consists of a structure identifier, a pick identifier, and an element position.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint pick_num
Pick device number (>=1).
Pint init_status
Initial pick status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
const Ppick_path *init_pick
Initial pick path.
Pint pet
Prompt and echo type.
const Plimit3 *echo_vol
Echo volume in DC.
const Ppick_data3 *pick_data
Data record.
Ppath_order order
Pick path order (0=PORDER_TOP_FIRST, 1=PORDER_BOTTOM_FIRST).
FORTRAN
PINPK3 (wkid, pkdnr, istat, ippd, pp, pet, evol, ldr, datrec, ppordr)
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
60 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
Related Subroutines
v Add Names To Set
v Inquire Pick Device State 3
v Inquire Default Pick Device Data 3
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Remove Names From Set
v Set Pick Filter
v Set Pick Identifier
The Initialize String subroutine stores the initial string, prompt/echo type, echo area, and string data record
in the workstation state list for the specified device. The z coordinates of the echo volume remain
unchanged. The graPHIGS API uses the string device’s input character set to interpret the initial string.
For all prompt and echo types, the first entry of the string data record is the input buffer size, which is an
integer in the range (1..n). The graPHIGS API compares this against the available input buffer size for the
specified string device. If the requested buffer size is greater, then the graPHIGS API records the available
size in the workstation state list instead of the specified input buffer size. If the initial string is longer than
the buffer size, then the graPHIGS API issues an error.
When the graPHIGS API receives string input, it obtains a buffer of the size defined by the input buffer
size. The graPHIGS API copies the initial string into the buffer, and places the cursor at the initial editing
position within the buffer. Replacement of characters begins at this initial position.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint string_num
String device number (>=1).
const char *init_string
Initial string.
Pint pet
Prompt and echo type.
const Plimit *echo_area
Echo area in DC.
const Pstring_data *string_data
Data record.
FORTRAN
PINST (wkid, stdnr, lstr, istr, pet, xmin, xmax, ymin, ymax, ldr, datrec)
FORTRAN Subset
PINST (wkid, stdnr, lstr, istr, pet, xmin, xmax, ymin, ymax, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer lstr
Length of the initial string.
character*80 istr
Initial string.
integer pet
Prompt and echo type.
real xmin
Minimum x coordinate determining echo area in DC.
real xmax
Maximum x coordinate determining echo area in DC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
263 Length Of Initial String > Buffer Size
Related Subroutines
v Inquire String Device State
v Inquire Default String Device Data
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set String Mode
The Initialize String 3 subroutine stores the initial string, prompt/echo type, echo volume, and string data
record in the workstation state list for the specified device. The graPHIGS API uses the string device’s
input character set to interpret the initial string and prompt strings.
For all prompt and echo types, the first entry of the string data record is the input buffer size, which is an
integer in the range (1..n). The graPHIGS API compares this against the available input buffer size for the
specified string device. If the requested buffer size is greater, then the graPHIGS API records the available
size in the workstation state list instead of the specified input buffer size. If the initial string is longer than
the buffer size, then the graPHIGS API issues an error.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint string_num
String device number (>=1).
const char *init_string
Initial string.
Pint pet
Prompt and echo type.
const Plimit3 *echo_vol
Echo volume in DC.
const Pstring_data3 *string_data
Data record.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer lstr
Length of the initial string (>=0). The number of characters actually used is the minimum of lstr
and the length of istr.
character*(*) istr
Initial string.
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
FORTRAN Subset
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer lstr
Length of the initial string.
character*80 istr
Initial string.
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Dimension of the data record array.
character*80 datrec(ldr)
Data record.
The pprec parameters used to build the string input data record are as follows: (IL=2, IA=input
buffer size, initial editing position, RL=0, RA=(), SL=0, LSTR=(), STR=() ).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
263 Length Of Initial String > Buffer Size
The Initialize Stroke subroutine stores the initial stroke, initial view index, prompt/echo type, echo area and
stroke data record in the workstation state list for the specified device. The z coordinates of the echo
volume remain unchanged.
For all prompt and echo types, the first entry of the stroke data record is the input buffer size, which is an
integer in the range (1..n). The graPHIGS API compares this against the available input buffer size for the
specified stroke device. If the requested buffer size is greater, then the graPHIGS API records the
available size in the workstation state list instead of the specified input buffer size. If the initial stroke is
longer than the buffer size, then the graPHIGS API issues an error.
When a stroke measure process begins, it acquires a buffer of the current input buffer size. The graPHIGS
API copies the initial stroke pointlist into this buffer, and places the editing position at the initial buffer
editing position. The replacement of points begins at this initial position. The x, y, and time intervals (where
possible) of the data record control the frequency and density of stroke points.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Pint init_view_ind
Initial view index (>=0).
FORTRAN
PINSK (wkid, skdnr, iviewi, n, ipx, ipy, pet, xmin, xmax, ymin, ymax, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer iviewi
Initial view index (>=0).
integer n
Number of coordinates of initial stroke.
real ipx(*)
x coordinates of initial stroke in WC. The actual arguments are dimensioned by at least max(1,n).
real ipy(*)
y coordinates of initial stroke in WC. The actual arguments are dimensioned by at least max(1,n).
integer pet
Prompt and echo type.
real xmin
Minimum x coordinate determining echo area in DC.
real xmax
Maximum x coordinate determining echo area in DC.
real ymin
Minimum y coordinate determining echo area in DC.
real ymax
Maximum y coordinate determining echo area in DC.
integer ldr
Dimension of the data record array.
character*80 datrec(ldr)
Data record.
The pprec parameters used to build the stroke input data record for pet= 1 are as follows: (IL=2,
IA=input buffer size, editing position, RL=3, RA=x interval, y interval, time interval in seconds,
SL=0, LSTR=(), STR=() ).
The pprec parameters used to build the stroke input data record for pet=3 are as follows: (IL=9,
IA=input buffer size, editing position, unused, marker type ASF, marker size scale factor ASF,
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
262 Number Of Points In Initial Stroke > Buffer Size
114 View Index Value < ZERO
Related Subroutines
v Inquire Stroke Device State 3
v Inquire Default Stroke Device Data 3
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Stroke Mode
The Initialize Stroke 3 subroutine stores the initial stroke, initial view index, prompt/echo type, echo volume
and stroke data record in the workstation state list for the specified device.
For all prompt and echo types, the first entry of the stroke data record is the input buffer size, which is an
integer in the range(1..n). The graPHIGS API compares this against the available input buffer size for the
specified stroke device. If the requested buffer size is greater, then the graPHIGS API records the
available size in the workstation state list instead of the specified input buffer size. If the initial stroke is
longer than the buffer size, then the graPHIGS API issues an error.
When a stroke measure process begins, it acquires a buffer of the current input buffer size. The graPHIGS
API copies the initial stroke pointlist into this buffer, and places the editing position at the initial buffer
editing position. The replacement of points begins at this initial position. The x, y, z, and time intervals
(where possible) of the data record control the frequency and density of stroke points.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Pint init_view_ind
Initial view index (>=0).
const Ppoint_list3 *init_stroke
Initial stroke in WC.
Pint pet
Prompt and echo type.
const Plimit3 *echo_vol
Echo volume in DC.
const Pstroke_data3 *stroke_data
Data record.
FORTRAN
PINSK3 (wkid, skdnr, iviewi, n, ipx, ipy, ipz, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
Stroke device number (>=1).
integer iviewi
Initial view index (>=0).
integer n
Number of coordinates of initial stroke.
real ipx (*)
x coordinates of initial stroke in WC. The actual arguments are dimensioned by at least max(1,n).
real ipy (*)
y coordinates of initial stroke in WC. The actual arguments are dimensioned by at least max(1,n).
Chapter 11. Input Subroutines 181
real ipz (*)
z coordinates of initial stroke in WC. The actual arguments are dimensioned by at least max(1,n).
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Dimension of the data record array.
character*80 datrec(ldr)
Data record.
The pprec parameters used to build the stroke input data record for pet= 1 are as follows: (IL=2,
IA=input buffer size, editing position, RL=3, RA=x interval, y interval, time interval in seconds,
SL=0, LSTR=(), STR=() ).
The pprec parameters used to build the stroke input data record for pet= 3 are as follows: (
IL=9, IA=input buffer size, editing position, unused, marker type ASF, marker size scale factor ASF,
polymarker color index ASF, polymarker index, marker type, polymarker color index, RL=4, RA=x
interval, y interval, time interval in seconds, marker size scale factor, SL=0, LSTR=(), STR=() ).
The pprec parameters used to build the stroke input data record for pet= 4 are as follows: (IL=9,
IA=input buffer size, editing position, unused, line type ASF, line width scale factor ASF, polyline
color index ASF, polyline index, line type, polyline color index, RL=5, RA=x interval, y interval, time
interval in seconds, line width scale factor, SL=0, LSTR=(), STR=() ).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
262 Number Of Points In Initial Stroke > Buffer Size
114 View Index Value < ZERO
Related Subroutines
v Inquire Stroke Device State 3
v Inquire Default Stroke Device Data 3
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Stroke Mode
The Initialize Valuator subroutine stores the initial value, prompt/echo type, echo area, and valuator data
record in the workstation state list for the specified workstation. The z coordinates of the echo volume
remain unchanged.
For all valuator prompt/echo types a low value and a high value specify the range for input from that
valuator. The graPHIGS API scales the values from the physical device linearly to the specified range.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint val_num
Valuator device number (>=1).
Pfloat init_value
Initial value.
Pint pet
Prompt and echo type.
const Plimit *echo_area
Echo area in DC.
const Pval_data *val_data
Data record.
FORTRAN
PINVL (wkid, vldnr, ival, pet, xmin, xmax, ymin, ymax, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer vldnr
Valuator device number (>=1).
real ival
Initial value.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
261 Initial Value Is Invalid
Related Subroutines
v Inquire Valuator Device State
v Inquire Default Valuator Device Data
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Valuator Mode
The Initialize Valuator subroutine stores the initial value, prompt/echo type, echo volume, and valuator data
record in the workstation state list for the specified workstation.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint val_num
Valuator device number (>=1).
Pfloat init_value
Initial value.
Pint pet
Prompt and echo type.
const Plimit3 *echo_vol
Echo volume in DC.
const Pval_data3 *val_data
Data record.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer vldnr
Valuator device number (>=1).
real ival
Initial value.
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Dimension of the data record array.
character*80 datrec(ldr)
Data record.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
254 Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
255 Echo Area/Volume Boundary Point(s) Outside Device Range
253 Prompt/Echo Type Not Available On Specified Workstation
260 Input Device Data Record Field Is In Error
263 Length Of Initial String > Buffer Size
261 Initial Value Is Invalid
Related Subroutines
v Inquire Valuator Device State 3
v Inquire Default Valuator Device Data
v Inquire Display Space Size
v Inquire Number Of Available Logical Input Devices
v Pack Data Record
v Set Valuator Mode
Use Request Choice to have the graPHIGS API execute a request to the specified choice device. The
graPHIGS API returns the choice input value, which is the current measure of the choice device.
A status of NONE means that a break action occurred. If the measure of the choice device indicates no
choice, then the graPHIGS API returns a status of NOCHOICE. Otherwise, the graPHIGS API returns a
status of OK together with a choice number which the graPHIGS API sets according to the current
measure of the choice device.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint choice_num
Choice device number (>=1).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer chdnr
Choice device number (>=1).
Output Parameters
integer stat
Choice status (0=PNONE, 1=POK, 2=PNCHOI).
integer chnr
Choice number (>=1).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
Related Subroutines
v Initialize Choice
v Inquire Number Of Available Logical Input Devices
v Set Choice Mode
Use Request Locator to have the graPHIGS API execute a request to the specified locator device.
The graPHIGS API returns the locator position and the index of the view which the graPHIGS API used to
convert the location from Device Coordinates (DC) to World Coordinates (WC).
The graPHIGS API returns the locator input from the view with the highest input priority under the cursor.
View zero is the highest priority view unless modified by your application.
A status of NONE means that a break action occurred. Otherwise, the graPHIGS API returns a status of
OK together with the logical input value which is the current measure of the locator device.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Output Parameters
Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK).
Pint *view_ind
View index (>=0).
Ppoint *loc_pos
Locator position in WC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer lcdnr
Locator device number (>=1).
Output Parameters
integer stat
Input status (0=PNONE, 1=POK).
integer viewi
View index (>=0).
real px
x coordinate of the locator position in WC.
real py
y coordinate of the locator position in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
Related Subroutines
v Initialize Locator
v Inquire Number Of Available Logical Input Devices
v Set Locator Mode
Use Request Locator 3 to have the graPHIGS API execute a request to the specified locator device.
The graPHIGS API returns the locator position and the index of the view which the graPHIGS API used to
convert the location from Device Coordinates (DC) to World Coordinates (WC).
The graPHIGS API returns the locator input from the view with the highest input priority under the cursor.
View zero is the highest priority view unless modified by your application.
A status of NONE means that a break action occurred. Otherwise, the graPHIGS API returns a status of
OK together with the logical input value which is the current measure of the locator device.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Output Parameters
Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK).
Pint *view_ind
View index (>=0).
Ppoint3 *loc_pos
Locator position in WC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer stat
Input status (0=PNONE, 1=POK).
integer viewi
View index (>=0).
real px
x coordinate of the locator position in WC.
real py
y coordinate of the locator position in WC.
real pz
z coordinate of the locator position in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
Related Subroutines
v Initialize Locator 3
v Inquire Number Of Available Logical Input Devices
v Set Locator Mode
Use Request Pick to have the graPHIGS API execute a request to the specified pick device.
The graPHIGS API returns the pick path information in the order specified in the Initialize Pick subroutine,
that is, TOP FIRST or BOTTOM FIRST. If your application has not called Initialize Pick, then the pick path
defaults to TOP FIRST.
A status of NONE means that a break action occurred. If the measure of the pick device indicates no pick,
then the graPHIGS API returns a status of NOPICK. Otherwise, the graPHIGS API returns a status of OK
together with a pick path which the graPHIGS API sets according to the current measure of the pick
device. Each entry in the pick path consists of a structure identifier, a pick identifier, and an element
position.
Language Bindings
Input Parameters
190 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
Pint ws_id
Workstation identifier.
Pint pick_num
Pick device number (>=1).
Pint depth
Maximum depth of the returned pick path.
Output Parameters
Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Ppick_path *pick
Requested pick path.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer pkdnr
Pick device number (>=1).
integer ippd
Maximum depth of the returned pick path.
Output Parameters
integer stat
Input status (0=PNONE, 1=POK, 2=PNPICK).
integer ppd
Depth of the actual pick path.
integer pp (3,ippd)
Requested pick path.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
Related Subroutines
v Add Names To Set
v Initialize Pick
v Inquire Number Of Available Logical Input Devices
v Remove Names From Set
v Set Pick Filter
Use Request String to have the graPHIGS API execute a request to the specified string device.
A status of NONE means that a break action occurred. Otherwise, the graPHIGS API returns a status of
OK together with a character string which is set according to the current measure of the string device.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint string_num
String device number (>=1).
Output Parameters
Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK).
char *string
Requested string. The application must allocate the memory for the character string returned. The
Initialize String subroutine The Initialize String subroutine or the Initialize String 3 subroutine
specifies the maximum size of the returned character string. The Inquire Default String Device
Data subroutine or the Inquire Default String Device Data 3 subroutine returns the maximum size
of a character string supported by the workstation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
Output Parameters
integer stat
Input status (0=PNONE, 1=POK).
integer lostr
Number of characters returned.
FORTRAN Subset
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
Output Parameters
integer stat
Input status (0=PNONE, 1=POK).
integer lostr
Number of characters returned.
character*80 str
Character string.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
Related Subroutines
v Initialize String
v Inquire Number Of Available Logical Input Devices
v Set String Mode
Use Request Stroke to have the graPHIGS API execute a request to the specified stroke device.
A status of NONE means that a break action occurred. Otherwise, the graPHIGS API returns a status of
OK together with a sequence of World Coordinate (WC) points and the view table index which has a
matrix that the graPHIGS API used to convert the stroke locations from Device Coordinates (DC) to World
Coordinates. The graPHIGS API sets these values according to the current measure of the stroke device.
This subroutine returns the stroke input from the view with the highest input priority that contains all the
points. View zero is the highest priority view unless modified by your application.
Note: This function returns a two-dimensional result. The graPHIGS API discards the z coordinates
of the stroke points. The x and y values of the stroke points are identical to those returned by the
Request Stroke 3 subroutine for the same operator action.
Chapter 11. Input Subroutines 193
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Output Parameters
Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK).
Pint *view_ind
View index.
Ppoint_list *stroke
Requested stroke point list. The application must allocate the memory for the point list returned.
The Initialize Stroke subroutine specifies the maximum size of the returned stroke point list. The
Inquire Default Stroke Device Data subroutine returns the maximum size of a stroke point list
supported by the workstation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer n
Dimension of arrays for stroke points.
Output Parameters
integer stat
Input status (0=PNONE, 1=POK).
integer viewi
View index (>=0).
integer np
Number of points.
real pxa (n)
x coordinates of points in the stroke in WC.
real pya (n)
y coordinates of points in the stroke in WC.
Errors
Related Subroutines
v Initialize Stroke
v Inquire Number Of Available Logical Input Devices
v Set Stroke Mode
Use Request Stroke 3 to have the graPHIGS API execute a request to the specified stroke device.
A status of NONE means that a break action occurred. Otherwise, the graPHIGS API returns a status of
OK together with a sequence of World Coordinate (WC) points and the view table index which has a
matrix that the graPHIGS API used to convert the stroke locations from Device Coordinates (DC) to World
Coordinates. The graPHIGS API sets these values according to the current measure of the stroke device.
This subroutine returns the stroke input from the view with the highest input priority that contains all the
points. View zero is the highest priority view unless modified by your application.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Output Parameters
Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK).
Pint *view_ind
View index.
Ppoint_list3 *stroke
Requested stroke point list. The application must allocate the memory for the point list returned.
The Initialize Stroke 3 subroutine specifies the maximum size of the returned stroke point list. The
Inquire Default Stroke Device Data subroutine returns the maximum size of a stroke point list
supported by the workstation.
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer n
Dimension of arrays for stroke points.
Output Parameters
integer stat
Input status (0=PNONE, 1=POK).
integer viewi
View index (>=0).
integer np
Number of points.
real pxa (n)
x coordinates of points in the stroke in WC.
real pya (n)
y coordinates of points in the stroke in WC.
real pza (n)
z coordinates of points in the stroke in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
Related Subroutines
v Initialize Stroke 3
v Inquire Number Of Available Logical Input Devices
v Set Stroke Mode
Use Request Valuator to have the graPHIGS API execute a request to the specified valuator device.
A status of NONE means that a break action occurred. Otherwise, the graPHIGS API returns a status of
OK together with the logical input value which is the current measure of the valuator device. The value
returned is in the range specified by your application through the Initialize Valuator subroutine.
Input Parameters
Pint ws_id
Workstation identifier.
Pint val_num
Valuator device number (>=1).
Output Parameters
Pin_status *in_status
Input status (0=PIN_STATUS_NONE, 1=PIN_STATUS_OK).
Pfloat *value
Requested valuator value.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer vldnr
Valuator device number (>=1).
Output Parameters
integer stat
Input status (0=PNONE, 1=POK).
real val
Valuator value.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
251 Function Requires Input Device To Be In Request Mode
Related Subroutines
v Initialize Valuator
v Inquire Number Of Available Logical Input Devices
v Set Valuator Mode
Use Sample Choice to immediately retrieve the current measure of the specified choice device.
If the measure of the choice device indicates no choice, then the graPHIGS API returns a status of
NOCHOICE. Otherwise, the graPHIGS API returns a status of OK together with a choice number which is
set according to the current measure of the choice device.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint choice_num
Choice device number (>=1).
Output Parameters
Pin_status *choice_in_status
Choice input status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint *choice
Choice number.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer chdnr
Choice device number (>=1).
Output Parameters
integer stat
Choice input status (1=POK, 2=PNCHOI).
integer chnr
Choice number.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Related Subroutines
v Inquire Number Of Available Logical Input Devices
v Set Choice Mode
Use Sample Locator to immediately retrieve the current measure of the specified locator device.
The measure consists of a locator position in World Coordinates (WC) and the index of the view table
entry which has a matrix that the graPHIGS API used to convert the location from Device Coordinates
(DC) to World Coordinates.
This subroutine returns the locator input from the view with the highest input priority under the cursor. View
zero is the highest priority view unless modified by your application.
Note: This function returns a two-dimensional result. The graPHIGS API discards the z coordinate of the
locator position. The x and y values of the locator position are identical to those returned by the
Sample Locator 3 subroutine for the same operator action.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Output Parameters
Pint *view_ind
View index (>=0).
Ppoint *loc_pos
Locator position in WC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer lcdnr
Locator device number (>=1).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
252 Function Requires Input Device To Be In Sample Mode
Related Subroutines
v Inquire Number Of Available Logical Input Devices
v Set Locator Mode
Use Sample Locator 3 to immediately retrieve the current measure of the specified locator device.
The measure consists of a locator position in World Coordinates (WC) and the index of the view table
entry which has a matrix that the graPHIGS API used to convert the location from Device Coordinates
(DC) to World Coordinates (WC).
This subroutine returns the locator input from the view with the highest input priority under the cursor. View
zero is the highest priority view unless modified by your application.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Output Parameters
Pint *view_ind
View index (>=0).
Ppoint3 *loc_pos
Locator position in WC.
Input Parameters
integer wkid
Workstation identifier.
integer lcdnr
Locator device number (>=1).
Output Parameters
integer viewi
View index (>=0).
real lpx
x coordinate of locator position in WC.
real lpy
y coordinate of locator position in WC.
real lpz
z coordinate of locator position in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
252 Function Requires Input Device To Be In Sample Mode
Related Subroutines
v Inquire Number Of Available Logical Input Devices
v Set Locator Mode
Use Sample Pick to immediately retrieve the current measure of the specified pick device.
The graPHIGS API returns the pick path information in the order specified in the Initialize Pick subroutine,
that is, TOP FIRST or BOTTOM FIRST. If your application has not called Initialize Pick, then the pick path
order defaults to TOP FIRST.
If the measure of the pick device indicates no pick, then the graPHIGS API returns a status of NOPICK
Otherwise, the graPHIGS API returns a status of OK together with a pick path which is set according to
the current measure of the pick device. Each entry in the pick path consists of a structure identifier, a pick
identifier, and an element position.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint pick_num
Pick device number (>=1).
Pint depth
Maximum depth of pick path to return.
Output Parameters
Pin_status *pick_in_status
Pick input status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Ppick_path *pick
Pick path.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer pkdnr
Pick device number (>=1).
integer ippd
Maximum depth of pick path to return.
Output Parameters
integer stat
Pick input status (1=POK, 2=PNPICK).
integer ppd
Depth of the actual pick path.
integer pp (3,ippd)
Pick path.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
252 Function Requires Input Device To Be In Sample Mode
Related Subroutines
v Inquire Number Of Available Logical Input Devices
202 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
v Set Pick Mode
Use Sample String to retrieve the current measure of the specified string device.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint string_num
String device number (>=1).
Output Parameters
char *string
Character string. The application must allocate the memory for the character string returned. The
Initialize String subroutine or the Initialize String 3 subroutine specifies the maximum size of the
returned character size. The Inquire Default String Device Data subroutine or the Inquire Default
String Device Data 3 subroutine returns the maximum size of a character string supported by the
workstation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
Output Parameters
integer lostr
Number of characters returned.
character*(*) str
Character string.
FORTRAN Subset
Input Parameters
Output Parameters
integer lostr
Number of characters returned.
character*80 str
Character string.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
252 Function Requires Input Device To Be In Sample Mode
Related Subroutines
v Inquire Number Of Available Logical Input Devices
v Set String Mode
Use Sample Stroke to immediately retrieve the current measure of the specified stroke device.
This measure consists of a sequence of stroke positions (not exceeding the current input buffer size) in
World Coordinates (WC), and the index of the view table entry which has a matrix that the graPHIGS API
used to convert the stroke locations from Device Coordinates (DC) to World Coordinates.
This subroutine returns the stroke input from the view with the highest input priority which contains all the
points. View zero is the highest priority view unless modified by your application.
Note: This function returns a two-dimensional result. The graPHIGS API discards the z coordinates
of the stroke points. The x and y values of the stroke points are identical to those returned by the the
Sample Stroke 3 subroutine for the same operator action.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer n
Dimension of arrays for stroke points.
Output Parameters
integer viewi
View index (>=0).
integer np
Number of points.
real pxa (n)
x coordinates of points in the stroke in WC.
real pya (n)
y coordinates of points in the stroke in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
252 Function Requires Input Device To Be In Sample Mode
Related Subroutines
v Inquire Number Of Available Logical Input Devices
v Set Stroke Mode
Use Sample Stroke 3 to immediately retrieve the current measure of the specified stroke device.
This subroutine returns the stroke input from the view with the highest input priority which contains all the
points. View zero is the highest priority view unless modified by your application.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Output Parameters
Pint *view_ind
View index.
Ppoint_list3 *stroke
Stroke point list in WC. The application must allocate the memory for the point list returned. The
Initialize Stroke 3 subroutine specifies the maximum size of the returned stroke point list. The
Inquire Default Stroke Device Data 3 subroutine returns the maximum size of a stroke point list
supported by the workstation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer n
Dimension of arrays for stroke points.
Output Parameters
integer viewi
View index (>=0).
integer np
Number of points.
real pxa (n)
x coordinates of points in the stroke in WC.
real pya (n)
y coordinates of points in the stroke in WC.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
252 Function Requires Input Device To Be In Sample Mode
Related Subroutines
v Inquire Number Of Available Logical Input Devices
v Set Stroke Mode
Use Sample Valuator to retrieve the current measure of the specified valuator device.
The returned value is in the range specified for this device through the Initialize Valuator subroutine.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint val_num
Valuator device number (>=1).
Output Parameters
Pfloat *value
Valuator value.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer vldnr
Valuator device number (>=1).
Output Parameters
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
252 Function Requires Input Device To Be In Sample Mode
Related Subroutines
v Inquire Number Of Available Logical Input Devices
v Set Valuator Mode
Use Set Choice Mode to set the operating mode of the specified choice input device.
After the choice mode is set, the graPHIGS API sets the echoing state to ECHO or NOECHO. Depending
on the specified operating mode—Request, Sample, or Event— an interaction with the given device may
begin or end.
Note: The graPHIGS API resets the input device with the initialization values when your application
calls the Description subroutine with the operating mode parameter set to SAMPLE or EVENT.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint choice_num
Choice device number (>=1).
Pop_mode op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
FORTRAN
Input Parameters
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Related Subroutines
v Await Event
v Initialize Choice
v Initialize Choice 3
v Inquire Number Of Available Logical Input Devices
v Request Choice
v Sample Choice
Use Set Locator Mode to set the operating mode of the specified locator device.
After the Locator Mode is set, the graPHIGS API sets the echoing state to ECHO or NOECHO. Depending
on the specified operating mode—Request, Sample, or Event—an interaction with the given device may
begin or end.
Note: The graPHIGS API resets the input device with the initialization values when your application
calls the Description subroutine with the operating mode parameter set to SAMPLE or EVENT.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Pop_mode op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer lcdnr
Locator device number (>=1).
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Related Subroutines
v Await Event
v Initialize Locator
v Initialize Locator 3
v Inquire Number Of Available Logical Input Devices
v Request Locator
v Request Locator 3
v Sample Locator
v Sample Locator 3
Use Set Pick Filter to set the pick inclusion and exclusion filters for the specified pick device.
The filters consist of class names which indicate which class names to include and which to exclude from
pickability (detectability).
Language Bindings
Input Parameters
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer pkdnr
Pick device number (>=1).
integer isn
Number of names in the inclusion set (>=0).
integer is (isn)
Inclusion set.
integer esn
Number of names in the exclusion set (>=0).
integer es (esn)
Exclusion set.
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Related Subroutines
v Add Names To Set
v Inquire Number Of Available Logical Input Devices
v Remove Names From Set
Use Set Pick Mode to set the operating mode of the specified pick device.
After the pick mode is set, the graPHIGS API sets the echoing state to ECHO or NOECHO. Depending on
the specified operating mode—Request, Sample, or Event— an interaction with the given device may
begin or end.
Note: The graPHIGS API resets the input device with the initialization values when your application
calls the Description subroutine with the operating mode parameter set to SAMPLE or EVENT.
Input Parameters
Pint ws_id
Workstation identifier.
Pint pick_num
Pick device number (>=1).
Pop_mode op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer pkdnr
Pick device number (>=1).
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Related Subroutines
v Await Event
v Initialize Pick
v Initialize Pick 3
v Inquire Number Of Available Logical Input Devices
v Request Pick
v Sample Pick
Use Set String Mode to set the operating mode of the specified string device.
After the string mode is set, the graPHIGS API sets the echoing state to ECHO or NOECHO. Depending
on the specified operating mode—Request, Sample, or Event— an interaction with the given device may
begin or end.
Note: The graPHIGS API resets the input device with the initialization values when your application
calls the Description subroutine with the operating mode parameter set to SAMPLE or EVENT.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint string_num
String device number (>=1).
Pop_mode op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Use Set Stroke Mode to set the operating mode of the specified stroke device.
After the stroke mode is set, the graPHIGS API sets the echoing state to ECHO or NOECHO. Depending
on the specified operating mode—Request, Sample, or Event— an interaction with the given device may
either begin or end.
Note: The graPHIGS API resets the input device with the initialization values when your application calls
the Description subroutine with the operating mode parameter set to SAMPLE or EVENT.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Pop_mode op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Related Subroutines
v Await Event
v Initialize Stroke
v Initialize Stroke 3
v Inquire Number Of Available Logical Input Devices
v Request Stroke
v Request Stroke 3
v Sample Stroke
v Sample Stroke 3
Use Set Valuator Mode to set the operating mode of the specified valuator device.
After the valuator mode is set, the graPHIGS API sets the echoing state to ECHO or NOECHO.
Depending on the specified operating mode—Request, Sample, or Event— an interaction with the given
device may either begin or end.
Note: The graPHIGS API resets the input device with the initialization values when your application calls
the Description subroutine with the operating mode parameter set to SAMPLE or EVENT.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint val_num
Valuator device number (>=1).
Pop_mode op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Input Parameters
integer wkid
Workstation identifier.
integer vldnr
Valuator device number (>=1).
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
Errors
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Related Subroutines
v Await Event
v Initialize Valuator
v Initialize Valuator 3
v Inquire Number Of Available Logical Input Devices
v Request Valuator
v Sample Valuator
Most subroutines perform transformations on matrixes. In addition, the Pack Data Record and Unpack
Data Record utilities provide a convenient mechanism for the handling of data records used by input
device initialization subroutines. These two utilities are defined only for the FORTRAN binding.
The Create Store and Delete Store utilities are defined only for the C binding. The graPHIGS API uses an
object of type Store to facilitate the task of using a C binding subroutine which returns complex data.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
const Ppoint *point
Fixed point.
const Pvec *shift_vec
Shift vector.
Pfloat angle
Rotation angle in radians (positive if counterclockwise).
const Pvec *scale_vec
Scale vector.
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix result_tran
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
PBLTM (x0, y0, dx, dy, phi, fx, fy, errind, xfrmt)
Input Parameters
real x0
x coordinate of the fixed point.
real y0
y coordinate of the fixed point.
real dx
x offset of the shift vector.
real dy
y offset of the shift vector.
real phi
Rotation angle in radians (positive if counterclockwise).
real fx x-axis scale factor.
real fy y-axis scale factor.
Output Parameters
integer errind
Error indicator.
real xfrmt(3,3)
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
const Ppoint3 *point
Fixed point.
const Pvec3 *shift_vec
Shift vector.
Pfloat x_angle
Rotation angle x in radians (positive if counterclockwise).
Pfloat y_angle
Rotation angle y in radians (positive if counterclockwise).
Pfloat z_angle
Rotation angle z in radians (positive if counterclockwise).
const Pvec3 *scale_vec
Scale vector.
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix3 result_tran
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
FORTRAN
PBLTM3 (x0, y0, z0, dx, dy, dz, phix, phiy, phiz, fx, fy, fz, errind, xfrmt)
Input Parameters
real x0
x coordinate of the fixed point.
real y0
y coordinate of the fixed point.
real z0
z coordinate of the fixed point.
real dx
x offset of the shift vector.
real dy
y offset of the shift vector.
real dz
z offset of the shift vector.
real phix
Rotation angle x in radians (positive if counterclockwise).
real phiy
Rotation angle y in radians (positive if counterclockwise).
Output Parameters
integer errind
Error indicator.
real xfrmt(4,4)
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Compose Matrix to perform a 3x3 matrix multiplication and return the result.
The graPHIGS API computes: Transformation Matrix A x Transformation Matrix and returns the result as
the composed transformation matrix.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the composed transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pmatrix tran_a
Transformation matrix A. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
Pmatrix tran_b
Transformation matrix B. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
Output Parameters
FORTRAN
Input Parameters
real xfrmta(3,3)
Transformation matrix A. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
real xfrmtb(3,3)
Transformation matrix B. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
Output Parameters
integer errind
Error indicator.
real xfrmto(3,3)
Composed transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description
of the storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Compose Matrix 3 to perform a 4x4 matrix multiplication and return the results.
The graPHIGS API computes: Transformation Matrix A x Transformation Matrix B and returns the result as
the composed transformation matrix.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the composed transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix3 result_tran
Composed transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description
of the storage of the transformation matrix).
FORTRAN
Input Parameters
real xfrmta(4,4)
Transformation matrix A. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
real xfrmtb(4,4)
Transformation matrix B. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
Output Parameters
integer errind
Error indicator.
real xfrmto(4,4)
Composed transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description
of the storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Compose Transformation Matrix to compute a two-dimensional transformation matrix which is the
composition of the specified matrix with the matrix defined by the fixed point, shift, rotate and scale
parameters. The order of transformation is: scale, rotate (both relative to the specified fixed point), and
shift.
Language Bindings
Input Parameters
Pmatrix tran
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
const Ppoint *point
Fixed point.
const Pvec *shift_vec
Shift vector.
Pfloat angle
Rotation angle in radians (positive if counterclockwise).
const Pvec *scale_vec
Scale vector.
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix result_tran
Composed transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description
of the storage of the transformation matrix).
FORTRAN
PCOTM (xfrmti, x0, y0, dx, dy, phi, fx, fy, errind, xfrmto)
Input Parameters
real xfrmti(3,3)
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
real x0
x coordinate of the fixed point.
real y0
y coordinate of the fixed point.
real phi
Rotation angle in radians (positive if counterclockwise).
real fx x-axis scale factor.
real fy y-axis scale factor.
Errors
None
Related Subroutines
v None
Use Compose Transformation Matrix 3 to compute a three-dimensional transformation matrix which is the
composition of the specified matrix with the matrix defined by the fixed point, shift, rotate and scale
parameters. The order of transformation (all relative to the specified fixed point) is: scale, rotate x, rotate y,
rotate z, and shift.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero, and returns the composed transformation matrix. If the graPHIGS API cannot compute
the transformation matrix, then the values of the composed transformation matrix are unpredictable and
the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
pcompose_tran_matrix3 (tran, point, shift_vec, x_angle, y_angle, z_angle, scale_vec, err_ind, result_tran)
Input Parameters
Pmatrix3 tran
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
const Ppoint3 *point
Fixed point.
const Pvec3 *shift_vec
Shift vector.
Pfloat x_angle
Rotation angle x in radians (positive if counterclockwise).
Pfloat y_angle
Rotation angle y in radians (positive if counterclockwise).
Pfloat z_angle
Rotation angle z in radians (positive if counterclockwise).
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix3 result_tran
Composed transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description
of the storage of the transformation matrix).
FORTRAN
PCOTM3 (xfrmti, x0, y0, z0, dx, dy, dz, phix, phiy, phiz, fx, fy, fz, errind, xfrmto)
Input Parameters
real xfrmti(4,4)
Transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description of the
storage of the transformation matrix).
real x0
x coordinate of the fixed point.
real y0
y coordinate of the fixed point.
real z0
z coordinate of the fixed point.
real phix
Rotation angle x in radians (positive if counterclockwise).
real phiy
Rotation angle y in radians (positive if counterclockwise).
real phiz
Rotation angle z in radians (positive if counterclockwise).
real fx x-axis scale factor.
real fy y-axis scale factor.
real fz z-axis scale factor.
Output Parameters
integer errind
Error indicator.
real xfrmto(4,4)
Composed transformation matrix. (See Chapter 15. ″ISO PHIGS Transformations″ for a description
of the storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Create Store to create a new Store resource. The graPHIGS API uses the Store resource to manage
the memory needed by the subroutines that return complex data. Use of the Store resource provides two
levels of memory management: low level and high level. The graPHIGS API manages the memory at a
low level because it uses, re-uses, allocates, and deallocates memory from the system in order to return
data to the application. However, the application manages the memory at a high level because it creates
and deletes the Stores. An application may create multiple Stores.
The application can pass the newly created Store resource as a parameter to a subroutine returning
complex data. Another parameter to a subroutine returning complex data is a pointer to a pointer to a
structure which defines the additional memory referenced by fields within the structure. The application
accesses the returned data through its pointer to the structure. It does not use the Store resource to
access the data.
A Store continues to hold the information from the function until the Delete Store subroutine deletes the
Store or until the application uses the Store as a parameter to a subsequent subroutine which returns
complex data. Then the graPHIGS API replaces the old information with the newly requested data. A Store
resource only contains the results of the last subroutine.
If the graPHIGS API can create the Store resource, then the graPHIGS API sets the error indicator to zero
and returns the Store handle. If the graPHIGS API cannot create the Store resource, then the value of the
Store handle is unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
2203 Error While Allocating Store
Language Binding
Output Parameters
Pint *err_ind
Error indicator.
Pstore *store
New Store.
Errors
None
Related Subroutines
v Delete Store
Use Delete Store to delete a Store and all internal resources associated with it.
Language Binding
Output Parameters
Pint *err_ind
Error indicator.
Pstore *store
Store to be deleted.
Errors
None
Related Subroutines
v Create Store
Use Evaluate View Mapping Matrix to create a two-dimensional view mapping matrix. Your application can
use the matrix as input to the Set View Representation subroutine.
If the graPHIGS API can compute the view mapping matrix, then the graPHIGS API sets the error indicator
to zero and returns the view mapping matrix. If the graPHIGS API cannot compute the view mapping
matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error indicator to
one of the following errors:
2 Function Requires State (PHOP,*,*,*)
151 Invalid Window: Minimum Value >= To Corresponding Maximum Value
152 Invalid Viewport: XMIN >= XMAX, YMIN >= YMAX OR ZMIN > ZMAX
Language Bindings
Input Parameters
const Pview_map *mapping
View mapping (window limits in VC and projection viewport limits in NPC).
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix result_tran
View mapping matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
FORTRAN
Input Parameters
real vwwnlm(4)
Window limits in VC (UMIN, UMAX, VMIN, VMAX).
real pjvplm(4)
Projection viewport limits in NPC (XMIN, XMAX, YMIN, YMAX).
Output Parameters
integer errind
Error indicator.
real vwmpmt(3,3)
View mapping matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Evaluate View Mapping Matrix 3 to create a view mapping matrix. Your application can use the matrix
as input to the Set View Representation 3 subroutine.
Language Bindings
Input Parameters
const Pview_map3 *mapping
View mapping (window limits in VC, projection viewport limits in NPC, projection type and
projection reference point in VC, and view, front and back plane distances in VC).
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix3 result_tran
View mapping matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
FORTRAN
PEVMM3 (vwwnlm, pjvplm, pjtype, pjrx, pjry, pjrz, vpld, bpld, fpld, errind, vwmpmt)
Input Parameters
real vwwnlm(4)
Window limits in VC (UMIN, UMAX, VMIN, VMAX).
real pjvplm(6)
Projection viewport limits in NPC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer pjtype
Projection type (PPARL, PPERS).
real pjrx
x-axis projection reference point in VC.
real pjry
y-axis projection reference point in VC.
Output Parameters
integer errind
Error indicator.
real vwmpmt(4,4)
View mapping matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Evaluate View Orientation Matrix to calculate a two-dimensional viewing matrix based on the specified
orientation.
The matrix returned performs a change from the World Coordinate (WC) system to a Viewing Coordinate
(VC) system in which the origin is the view reference point with a z coordinate of zero, the n-axis is the
view plane normal assumed to be [0,0,1], and the v-axis lies in the half plane designated by the view up
vector with a z coordinate of zero.
If the graPHIGS API can compute the view orientation matrix, then the graPHIGS API sets the error
indicator to zero and returns the view orientation matrix. If the graPHIGS API cannot compute the view
orientation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
160 View UP Vector Has Length Zero
Language Bindings
Input Parameters
const Ppoint *view_ref_point
View reference point in WC.
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix result_tran
View orientation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
FORTRAN
Input Parameters
real vwrx
x coordinate of the view reference point in WC.
real vwry
y coordinate of the view reference point in WC.
real vupx
x-axis directional component of the view up vector in WC.
real vupy
y-axis directional component of the view up vector in WC.
Output Parameters
integer errind
Error indicator.
real vwormt(3,3)
View orientation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Evaluate View Orientation Matrix 3 to calculate a three-dimensional viewing matrix based on the
specified orientation.
The matrix returned performs a change from the World Coordinate (WC) system to a Viewing Coordinate
(VC) system in which the origin is the view reference point, the n-axis is the view plane normal, and the
v-axis lies in the half plane designated by the view up vector.
Language Bindings
Input Parameters
const Ppoint3 *view_ref_point
View reference point in WC.
const Pvec3 *view_norm_vec
View plane normal vector in WC.
const Pvec3 *view_up_vec
View up vector in WC.
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix3 result_tran
View orientation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
FORTRAN
PEVOM3 (vwrx, vwry, vwrz, vpnx, vpny, vpnz, vupx, vupy, vupz, errind, vwormt)
Input Parameters
real vwrx
x coordinate of the view reference point in WC.
real vwry
y coordinate of the view reference point in WC.
real vwrz
z coordinate of the view reference point in WC.
real vpnx
x-axis directional component of the view plane normal in WC.
real vpny
y-axis directional component of the view plane normal in WC.
real vpnz
z-axis directional component of the view plane normal in WC.
Output Parameters
integer errind
Error indicator.
real vwormt(4,4)
View orientation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Pack Data Record to construct a data record for passing to input device initialization routines. The
data record constructed by Pack Data Record consists of a header identifying the number of integers,
reals, and character strings in the data record, followed by the actual data. Your application can pass the
ldr and datrec output parameters to the desired input device initialization subroutine.
Pack Data Record accepts as input a list of integers, a list of reals, and a list of character strings. The
length of each character string is specified in a separate array of lengths (lstr).
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
2001 Output Parameter Size Insufficient
2003 Invalid Data Record
Language Binding
FORTRAN
PPREC (il, ia, rl, ra, sl, lstr, str, mldr, errind, ldr, datrec)
Input Parameters
integer il
Number of integer entries (>=0).
Output Parameters
integer errind
Error indicator.
integer ldr
Number of array elements used in datrec.
character*80 datrec(mldr)
Data record.
FORTRAN Subset
PPREC (il, ia, rl, ra, sl, lstr, str, mldr, errind, ldr, datrec)
Input Parameters
integer il
Number of integer entries (>=0).
integer ia (il)
Array containing integer entries.
integer rl
Number of real entries (>=0).
real ra (rl)
Array containing real entries.
integer sl
Number of character string entries (>=0).
integer lstr(sl)
Lengths of each character string entry (>=0).
character*80 str(*)
Character string entries.
integer mldr
Dimension of the data record array.
Output Parameters
Errors
None
Related Subroutines
v Initialize Choice
v Initialize Choice 3
v Initialize Locator
v Initialize Locator 3
v Initialize Pick
v Initialize Pick 3
v Initialize String
v Initialize String 3
v Initialize Stroke
v Initialize Stroke 3
v Initialize Valuator
v Initialize Valuator 3
v Unpack Data Record
ROTATE (PHOP,*,*,*)
Purpose
Use Rotate to calculate a two-dimensional transformation matrix to perform the specified 2D-axis rotation.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pfloat angle
Rotational angle in radians (positive if counterclockwise).
Output Parameters
FORTRAN
Input Parameters
real rotang
Rotational angle in radians (positive if counterclockwise).
Output Parameters
integer errind
Error indicator.
real xfrmt(3,3)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
ROTATE X (PHOP,*,*,*)
Purpose
Use Rotate X to calculate a three-dimensional transformation matrix to rotate around the x-axis using a
given angle of rotation.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pfloat angle
Rotational angle in radians (positive if counterclockwise).
FORTRAN
Input Parameters
real rotang
Rotational angle in radians (positive if counterclockwise).
Output Parameters
integer errind
Error indicator.
real xfrmt(4,4)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
ROTATE Y (PHOP,*,*,*)
Purpose
Use Rotate Y to calculate a three-dimensional transformation matrix to rotate around the y-axis using a
given angle of rotation.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pfloat angle
Rotational angle in radians (positive if counterclockwise).
FORTRAN
Input Parameters
real rotang
Rotational angle in radians (positive if counterclockwise).
Output Parameters
integer errind
Error indicator.
real xfrmt(4,4)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
ROTATE Z (PHOP,*,*,*)
Purpose
Use Rotate Z to calculate a three-dimensional transformation matrix to rotate around the z-axis using a
given angle of rotation.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pfloat angle
Rotational angle in radians (positive if counterclockwise).
FORTRAN
Input Parameters
real rotang
Rotational angle in radians (positive if counterclockwise).
Output Parameters
integer errind
Error indicator.
real xfrmt(4,4)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
SCALE (PHOP,*,*,*)
Purpose
Use Scale to calculate a two-dimensional transformation matrix to perform the specified 2D-axis scaling.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
const Pvec *scale_vec
Scale factor vector.
FORTRAN
Input Parameters
real fx
x-axis scale factor.
real fy
y-axis scale factor.
Output Parameters
integer errind
Error indicator.
real xfrmt(3,3)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
SCALE 3 (PHOP,*,*,*)
Purpose
Use Scale 3 to calculate a three-dimensional transformation matrix to perform the specified 3D-axis
scaling.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error
indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the
transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error
indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix3 result_tran
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
FORTRAN
Input Parameters
real fx
x-axis scale factor.
real fy
y-axis scale factor.
real fz
z-axis scale factor.
Output Parameters
integer errind
Error indicator.
real xfrmt(4,4)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
The graPHIGS API returns the result of multiplying the given point by the transformation. If the graPHIGS
API cannot return the transformed point, then the values of the point are unpredictable and the graPHIGS
API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
const Ppoint *point
Point.
Pmatrix tran
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Output Parameters
Pint *err_ind
Error indicator.
Ppoint *result
Transformed point.
FORTRAN
Input Parameters
real xi
x coordinate of the point.
real yi
y coordinate of the point.
real xfrmt(3,3)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Output Parameters
integer errind
Error indicator.
real xo
x coordinate of the transformed point.
real yo
y coordinate of the transformed point.
Errors
None
Related Subroutines
v None
The graPHIGS API returns the result of multiplying the given point by the transformation. If the graPHIGS
API cannot return the transformed point, then the values of the point are unpredictable and the graPHIGS
API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
const Ppoint3 *point
Point.
Pmatrix3 tran
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Output Parameters
Pint *err_ind
Error indicator.
Ppoint3 *result
Transformed point.
FORTRAN
Input Parameters
real xi
x coordinate of the point.
real yi
y coordinate of the point.
real zi
z coordinate of the point.
real xfrmt(4,4)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Output Parameters
integer errind
Error indicator.
Errors
None
Related Subroutines
v None
TRANSLATE (PHOP,*,*,*)
Purpose
Use Translate to calculate a two-dimensional transformation matrix to perform the specified 2D-axis
translation.
If the graPHIGS API cannot compute the transformation matrix, then the values of the matrix are
unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
const Pvec *trans_vec
Translation vector.
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix result_tran
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
FORTRAN
Input Parameters
real dx
x-axis translation vector.
Output Parameters
integer errind
Error indicator.
real xfrmt(3,3)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
TRANSLATE 3 (PHOP,*,*,*)
Purpose
Use Translate 3 to calculate a three-dimensional transformation matrix to perform the specified 3D-axis
translation.
If the graPHIGS API cannot compute the transformation matrix, then the values of the matrix are
unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
const Pvec3 *trans_vec
Translation vector.
Output Parameters
Pint *err_ind
Error indicator.
Pmatrix3 result_tran
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
FORTRAN
Input Parameters
Output Parameters
integer errind
Error indicator.
real xfrmt(4,4)
Transformation matrix. (See Chapter 15. “ISO PHIGS Transformations” for a description of the
storage of the transformation matrix).
Errors
None
Related Subroutines
v None
Use Unpack Data Record to unpack a data record returned by FORTRAN binding input device inquiries.
The data record unpacked by Unpack Data Record consists of a header identifying the number of integers,
reals, and character strings in the data record, followed by the actual data. The graPHIGS API can
interpret the output parameters by using the data record information supplied with the FORTRAN input
device initialization subroutines.
For input, Unpack Data Record accepts a data record, array addresses for integer, real and character
arrays, and size specifications for those arrays.
Unpack Data Record and Pack Data Record are inverse functions.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the output parameters are
unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
2001 Output Parameter Size Insufficient
2003 Invalid Data Record
2004 Input Parameter Size Out Of Range
Language Bindings
FORTRAN
PUREC (ldr, datrec, iil, irl, isl, errind, il, ia, rl, ra, sl, lstr, str)
Output Parameters
integer errind
Error indicator.
integer il
Number of integer entries.
integer ia (iil)
Array containing integer entries.
integer rl
Number of real entries.
real ra (irl)
Array containing real entries.
integer sl
Number of character string entries.
integer lstr(isl)
Length of each character string entry.
character*(*) str(isl)
Character string entries.
FORTRAN Subset
PUREC (ldr, datrec, iil, irl, isl, errind, il, ia, rl, ra, sl, lstr, str)
Input Parameters
integer ldr
Number of array elements used in datrec.
character*80 datrec(ldr)
Data record.
integer iil
Dimension of integer array.
integer irl
Dimension of real array.
integer isl
Dimension of character array.
Errors
None
Related Subroutines
v Initialize Choice
v Initialize Choice 3
v Initialize Locator
v Initialize Locator 3
v Initialize Pick
v Initialize Pick 3
v Initialize String
v Initialize String 3
v Initialize Stroke
v Initialize Stroke 3
v Initialize Valuator
v Initialize Valuator 3
v Inquire Choice Device State
v Inquire Choice Device State 3
v Inquire Default Choice Device Data
v Inquire Default Choice Device Data 3
v Inquire Default Locator Device Data
v Inquire Default Locator Device Data 3
v Inquire Default Pick Device Data
v Inquire Default Pick Device Data 3
v Inquire Default String Device Data
v Inquire Default String Device Data 3
v Inquire Default Stroke Device Data
The default error handling function provided by the graPHIGS API calls the Error Logging subroutine
function. An application program supplied Error Handling function may invoke inquiry subroutines, the Error
Logging function, and/or the Emergency Close PHIGS subroutine.
If desired, you can use the Set Error Handling Mode subroutine to set error handling OFF. When your
application sets error handling OFF, processing continues until the graPHIGS API reaches a terminating
condition. Generally, error handling should remain ON in a program development environment. By default,
the graPHIGS API sets error handling to ON.
Use Emergency Close PHIGS to terminate all PHIGS processing for this application process. The
graPHIGS API closes any open structure and updates and closes all open workstations. The graPHIGS
API detaches all resources attached to or created by your application. The graPHIGS API closes all
PHIGS files and releases all system resources, such as storage or locks. The graPHIGS API sets the
PHIGS system state to PHIGS Closed. Your application can reopen PHIGS by invoking the Open PHIGS
subroutine ( ).
Language Bindings
pemergency_close_phigs ()
FORTRAN
PECLPH
Errors
None
Related Subroutines
v Close PHIGS
v Open PHIGS
Either the graPHIGS API supplies the Error Handling function by default, or the application supplies the
function. The graPHIGS API calls the Error Handling subroutine function whenever the graPHIGS API
detects an error. The default or standard Error Handling function calls the Error Logging function with the
See the Open PHIGS subroutine for error file specification for each supported binding. See Chapter 21.
“Implementation Errors and graPHIGS API Messages for ISO PHIGS-Defined Errors” for details on
implementation errors and ISO PHIGS defined errors.
Users of the FORTRAN binding may replace the default error handling subroutine with a user supplied
subroutine of the same name, PERHND. C binding users may use the Set Error Handling subroutine to
install a user supplied error handling function during execution time.
Language Bindings
Input Parameters
Pint error_num
Error number.
Pint func_num
Identifier of function that detected the error (see Chapter 17. ISO PHIGS C Type and Macro
Definitions reference #1).
const char *error_file
Name of the error file.
FORTRAN
Input Parameters
integer errnr
Error number.
integer fctid
Function identification (see Chapter 18. ISO PHIGS FORTRAN Enumeration Types.
integer errfil
Error file.
Errors
None
Related Subroutines
v Emergency Close PHIGS
v Error Logging
v Open PHIGS
v Set Error Handling
v Set Error Handling Mode
Use Error Logging to print an error message to the specified error file. When your application invokes
Error Logging, the graPHIGS API writes the specified error message along with the name of the function
which caused the error to the specified file. If the graPHIGS API cannot open the specified file or the file is
blank, then the graPHIGS API logs the error to the console from which the application was started.
Language Bindings
Input Parameters
Pint error_num
Error number.
Pint func_num
Identifier of function that detected the error (see phigs.h include file).
const char *error_file
Name of the error file.
FORTRAN
Input Parameters
integer errnr
Error number.
integer fctid
Function identification (see PHIGS include file).
integer errfil
Error file.
Errors
None
Related Subroutines
v Error Handling
v Set Error Handling
v Set Error Handling Mode
The graPHIGS API gives control to this application specified routine when the graPHIGS API detects an
error. The application defined error handler must accept the same arguments as the standard error
handler, perr_hand. Refer to perr_hand for a description of those arguments. If your application has not
defined an error handler, then the graPHIGS API uses the default, perr_hand, which logs an error in the
file specified by the first parameter of the Open PHIGS subroutine ( ). An application defined error handler
may invoke Inquiry subroutines ( ) and the Error Logging subroutine.
Language Binding
Input Parameters
void (*new_err_hand) ()
The address of the routine receiving control when the graPHIGS API detects an error.
Output Parameters
void (**old_err_hand) ()
The address of the previous error handling routine.
Errors
None
Related Subroutines
v Error Handling
v Error Logging
v Inquire Error Handling Mode
v Open PHIGS
v Set Error Handling Mode
Use Set Error Handling Mode to enable or disable graPHIGS API error handling.
The graPHIGS API sets the error handling mode in the Error State List to the value specified. If your
application sets the error handling mode to OFF, then the graPHIGS API ignores any errors detected. By
default, the graPHIGS API sets error handling mode to ON.
Language Bindings
pset_err_hand_mode (error_mode)
FORTRAN
PSERHM (erhm)
Input Parameters
integer erhm
Error handling mode (0=POFF, 1=PON).
Errors
2 Function Requires State (PHOP,*,*,*)
Related Subroutines
v Inquire Error Handling Mode
v Set Error Handling
ESCAPE (PHOP,WSCL,STCL,ARCL)
Purpose
Use Escape to perform an escape function. The specified escape subroutine is identified by way of the
subroutine identifier parameter. In general, an escape subroutine accepts both an input data record and an
output data record to place any output generated by the escape subroutine.
If the graPHIGS API does not support the specified escape identifier, then the graPHIGS API ignores this
subroutine. Currently, the graPHIGS API does not support any escape identifiers. However, your
application can access escapes through the Escape (GPES) subroutine. See The graPHIGS Programming
Interface: Subroutine Reference for details on those escape functions.
Language Bindings
Input Parameters
Pint func_id
Escape function identifier.
const Pescape_in_data *in_data
Input data for the function.
Pstore store
Handle to Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See the Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for more information.
Output Parameters
Pescape_out_data **out_data
Output data of the function. The memory referenced by *out_data is managed by Store.
FORTRAN
Input Parameters
integer fctid
Function identification.
integer lidr
Dimension of the input data record array.
character*80 idr(lidr)
Input data record.
Output Parameters
integer lodr
Number of array elements occupied in odr.
character*80 odr(mlodr)
Output data record.
Errors
2 Function Requires State (PHOP,*,*,*)
350 Warning, Specified Escape Unavailable On One Or More Workstations
351 One Of The Fields Within The Escape Data Record Is In Error
Related Subroutines
v None
Note: The graPHIGS API returns SET values for both REALIZED and SET output parameters.
The graPHIGS API often requires a store parameter of type Pstore as input. See the Create Store (
CREATE STORE (PHOP,*,*,*)) subroutine for details on how the graPHIGS API uses this parameter on
inquiries.
start_ind is an input parameter for inquiries that request simple lists. An index of zero specifies the first
element in the graPHIGS API list, therefore, zero is a valid value for parameter start_ind. start_ind
indicates the element in the graPHIGS API list that you want copied into index zero of the application’s list.
If the nth list element that you requested is unavailable, then the graPHIGS API returns the error 2002 in
the error indicator parameter and also returns the implementation’s list length.
If you request the 0th list element, then the list element is undefined, but the graPHIGS API generates no
error and returns the implementation’s list length.
Use Element Search to search through a specified structure for an element that matches a given criteria.
The search starts at a specified element position and searches in a designated direction (BACKWARD or
FORWARD) until the graPHIGS API either finds an element that matches the criteria or reaches the limits
of the structure.
Search criteria: The graPHIGS API selects an element if the type of the element is in the element
inclusion list and not in the element exclusion list.
Element exclusion: The graPHIGS API excludes an element if the element type is either not in the
inclusion list or it is in the exclusion list.
Starting search position: The search starts at element position of zero if the specified starting position is
less than zero. The search starts with the last element in the structure, if the specified starting position is
larger than the number of elements in the structure.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
201 Specified Structure Does Not Exist
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Pint start_elem
Starting element position (>=0).
Psearch_dir dir
Search direction (0=PDIR_BACKWARD, 1=PDIR_FORWARD).
const Pelem_type_list *incl
Element inclusion list (0=PELEM_ALL, 1=PELEM_NIL, 2=PELEM_POLYLINE3,
3=PELEM_POLYLINE, 4=PELEM_POLYMARKER3, 5=PELEM_POLYMARKER,
6=PELEM_TEXT3, 7=PELEM_TEXT, 8=PELEM_ANNO_TEXT_REL3,
9=PELEM_ANNO_TEXT_REL, 10=PELEM_FILL_AREA3, 11=PELEM_FILL_AREA,
12=PELEM_FILL_AREA_SET3, 13=PELEM_FILL_AREA_SET, 14=PELEM_CELL_ARRAY3,
15=PELEM_CELL_ARRAY, 16=PELEM_GDP3, 17=PELEM_GDP, 18=PELEM_LINE_IND,
19=PELEM_MARKER_IND, 20=PELEM_TEXT_IND, 21=PELEM_INT_IND,
22=PELEM_EDGE_IND, 23=PELEM_LINETYPE, 24=PELEM_LINEWIDTH,
25=PELEM_LINE_COLR_IND, 26=PELEM_MARKER_TYPE, 27=PELEM_MARKER_SIZE,
28=PELEM_MARKER_COLR_IND, 29=PELEM_TEXT_FONT, 30=PELEM_TEXT_PREC,
31=PELEM_CHAR_EXPAN, 32=PELEM_CHAR_SPACE, 33=PELEM_TEXT_COLR_IND,
34=PELEM_CHAR_HT, 35=PELEM_CHAR_UP_VEC, 36=PELEM_TEXT_PATH,
37=PELEM_TEXT_ALIGN, 38=PELEM_ANNO_CHAR_HT, 39=PELEM_ANNO_CHAR_UP_VEC,
40=PELEM_ANNO_PATH, 41=PELEM_ANNO_ALIGN, 42=PELEM_ANNO_STYLE,
43=PELEM_INT_STYLE, 44=PELEM_INT_STYLE_IND, 45=PELEM_INT_COLR_IND,
46=PELEM_EDGE_FLAG, 47=PELEM_EDGETYPE, 48=PELEM_EDGEWIDTH,
49=PELEM_EDGE_COLR_IND, 50=PELEM_PAT_SIZE, 51=PELEM_PAT_REF_POINT_VECS,
52=PELEM_PAT_REF_POINT, 53=PELEM_ADD_NAMES_SET,
54=PELEM_REMOVE_NAMES_SET, 55=PELEM_INDIV_ASF, 56=PELEM_HLHSR_ID,
57=PELEM_LOCAL_MODEL_TRAN3, 58=PELEM_LOCAL_MODEL_TRAN,
59=PELEM_GLOBAL_MODEL_TRAN3, 60=PELEM_GLOBAL_MODEL_TRAN,
61=PELEM_MODEL_CLIP_VOL3, 62=PELEM_MODEL_CLIP_VOL,
63=PELEM_MODEL_CLIP_IND, 64=PELEM_RESTORE_MODEL_CLIP_VOL,
65=PELEM_VIEW_IND, 66=PELEM_EXEC_STRUCT, 67=PELEM_LABEL,
68=PELEM_APPL_DATA, 69=PELEM_GSE, 70=PELEM_PICK_ID).
const Pelem_type_list *excl
Element exclusion list (Enumerated types are the same as that of the element inclusion list).
FORTRAN
PELS (strid, strtep, srcdir, eisn, eis, eesn, ees, errind, status, fndep)
Input Parameters
integer strid
Structure identifier.
integer strtep
Start element position(>=0).
integer srcdir
Search direction (0=PBWD, 1=PFWD).
integer eisn
Number of elements in the element inclusion set.
integer eis(eisn)
Element inclusion set (0=PEALL, 1=PENIL, 2=PEPL3, 3=PEPL, 4=PEPM3, 5=PEPM, 6=PETX3,
7=PETX, 8=PEATR3, 9=PEATR, 10=PEFA3, 11=PEFA, 12=PEFAS3, 13=PEFAS, 14=PECA3,
15=PECA, 16=PEGDP3, 17=PEGDP, 18=PEPLI, 19=PEPMI, 20=PETXI, 21=PEII, 22=PEEDI,
23=PELN, 24=PELWSC, 25=PEPLCI, 26=PEMK, 27=PEMKSC, 28=PEPMCI, 29=PETXFN,
30=PETXPR, 31=PECHXP, 32=PECHSP, 33=PETXCI, 34=PECHH, 35=PECHUP, 36=PETXP,
37=PETXAL, 38=PEATCH, 39=PEATCU, 40=PEATP, 41=PEATAL, 42=PEANST, 43=PEIS,
44=PEISI, 45=PEICI, 46=PEEDFG, 47=PEEDT, 48=PEEWSC, 49=PEEDCI, 50=PEPA,
51=PEPRPV, 52=PEPARF, 53=PEADS, 54=PERES, 55=PEIASF, 56=PEHRID, 57=PELMT3,
58=PELMT, 59=PEGMT3, 60=PEGMT, 61=PEMCV3, 62=PEMCV, 63=PEMCLI, 64=PERMCV,
65=PEVWI, 66=PEEXST, 67=PELB, 68=PEAP, 69=PEGSE, 70=PEPKID).
integer eesn
Number of elements in the element exclusion set.
integer ees(eesn)
Element exclusion set (Enumerated types are the same as that of the element inclusion set).
Output Parameters
integer errind
Error indicator.
integer status
Status indicator (0=PFAIL, 1=PSUCC).
integer fndep
Found element position.
Errors
None
Use Inquire All Conflicting Structures to inquire a list of structure identifiers that exist in both the structure
store and the specified open archive file.
If the inquire information is available, then the graPHIGS API sets the error indicator to zero and returns
the values in the output parameters. If the inquired information is unavailable, then the values returned in
the output parameters are unpredictable and the graPHIGS API sets the error indicator to one of the
following errors:
7 Function Requires State (PHOP,*,*,AROP)
404 Specified Archive File Is Not Open
Language Bindings
Input Parameters
Pint ar_id
Archive file identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *ids
List of conflicting structure identifiers.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer n
Set member requested (>=0).
Errors
None
Related Subroutines
v Inquire Conflicting Structures in Network
Use Inquire Annotation Facilities to inquire the list of annotation styles and the number and range of
annotation text character heights supported by a workstation. If the number of annotation text character
heights is zero, then the graPHIGS API supports a continuous range from the minimum height to the
maximum height. Possible annotation styles include: UNCONNECTED and LEAD LINE.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer n
List element of the annotation styles requested (>=0).
Output Parameters
integer errind
Error indicator.
integer nas
Number of available annotation styles.
integer as
nth element of the list of available annotation styles (1=PUNCON, 2=PLDLN).
integer nchh
Number of available annotation text character heights.
real minchh
Minimum annotation text character height in DC.
real maxchh
Maximum annotation text character height in DC.
Errors
None
Related Subroutines
v None
Use Inquire Archive Files to inquire the list of archive file identifiers and archive file names.
264 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See the Create Store (PHOP,*,*,*) subroutine for details on
how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Par_file_list **ar_files
List of archive file names and identifiers. The memory referenced by *ar_files is managed by the
parameter store.
FORTRAN
Input Parameters
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer number
Number of archive files open.
integer afid
nth open archive file identifier.
integer arcfil
nth open archive file name.
Errors
None
Related Subroutines
v None
Use Inquire Archive State Value to inquire the current archive state value of the graPHIGS API. The
archive state is either Archive Open (AROP) or Archive Closed (ARCL). If the state is AROP, then at least
one archive file is open. If the state is ARCL, then no archive files are open.
Language Bindings
pinq_ar_st (ar_st)
Output Parameters
Par_st *ar_st
Archive state value (0=PST_ARCL, 1=PST_AROP).
FORTRAN
PQARS (arsta)
Output Parameters
integer arsta
Archive state value (0=PARCL, 1=PAROP).
Errors
None
Related Subroutines
v None
Use Inquire Choice Device State to inquire the current state of the specified choice device on the specified
workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_choice_st (ws_id, choice_num, store, err_ind, op_mode, echo_switch, init_status, init_choice, prompt_echo,
echo_area, choice_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint choice_num
Choice device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See the Create Store subroutine for details on how the
graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Pin_status *init_status
Initial choice status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint *init_choice
Initial choice number.
Pint *prompt_echo
Prompt and echo type.
Plimit *echo_area
Echo area.
Pchoice_data3 **choice_data
Data record. The memory referenced by *choice_data is managed by the parameter store.
FORTRAN
PQCHS (wkid, chdnr, mldr, errind, mode, esw, istat, ichnr, pet, earea, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer chdnr
Choice device number (>=1).
integer mldr
Dimension of data record array.
Output Parameters
Errors
None
Related Subroutines
v Initialize Choice
v Initialize Choice 3
v Inquire Choice Device State 3
Use Inquire Choice Device State 3 to inquire the current state of the specified choice device on the
specified workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_choice_st3 (ws_id, choice_num, store, err_ind, op_mode, echo_switch, init_status, init_choice, prompt_echo,
echo_vol, choice_data)
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Pin_status *init_status
Initial choice status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint *init_choice
Initial choice number.
Pint *prompt_echo
Prompt and echo type.
Plimit3 *echo_vol
Prompt and echo volume.
Pchoice_data3 **choice_data
Data record. The memory referenced by *choice_data is managed by the parameter store.
FORTRAN
PQCHS3 (wkid, chdnr, mldr, errind, mode, esw, istat, ichnr, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer chdnr
Choice device number (>=1).
integer mldr
Dimension of data record array.
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
Errors
None
Related Subroutines
v Initialize Choice
v Initialize Choice 3
v Inquire Choice Device State 3
Use Inquire Color Facilities to inquire the color facilities of a specified workstation type.
The graPHIGS API returns the total number of available colors, the color status, (monochrome or color),
the quantity of predefined color table entries in the workstation’s default color table, and the primary colors
for the workstation display. The graPHIGS API returns the primary colors as the CIELUV chromaticity
coefficients u’, v’ and luminance value y.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Output Parameters
Pint *err_ind
Error indicator.
Pcolr_facs *fac
Color facilities.
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer ncoli
Number of color indexes.
integer cola
Color available (0=PMONOC, 1=PCOLOR).
integer npci
Number of predefined color indexes.
real cc(9)
Primary colors. Chromaticity coefficients and luminance value for the primaries for the display
device (Ru’, Rv’, RY, Gu’, Gv’, GY, Bu’, Bv’, BY).
Errors
None
Related Subroutines
v None
Use Inquire Color Model to inquire the current color model for the specified workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Input Parameters
Pint ws_id
Workstation identifier.
Output Parameters
Pint *err_ind
Error indicator.
Pint *model
Current color model (1=PMODEL_RGB, 2=PMODEL_CIELUV, 3=PMODEL_HSV).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
integer cmodel
Current color model (1=PRGB, 2=PCIE, 3=PHSV).
Errors
None
Related Subroutines
v Inquire Color Model Facilities
v Set Color Model
Use Inquire Color Model Facilities to inquire the list of available color models and the default color model
on the specified workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *models
List of color models (1=PMODEL_RGB, 2=PMODEL_CIELUV, 3=PMODEL_HSV).
Pint *num_elems_impl_list
Number of elements in the implementation list.
Pint *def
Default color model (1=PMODEL_RGB, 2=PMODEL_CIELUV, 3=PMODEL_HSV).
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer n
Element of the list of available color models (>=0).
Output Parameters
integer errind
Error indicator.
integer ol
Number of available color models.
integer cmod
nth available color model (1=PRGB, 2=PCIE, 3=PHSV).
integer dfcmod
Default color model (1=PRGB, 2=PCIE, 3=PHSV).
None
Related Subroutines
v Inquire Color Model
v Set Color Model
Use Inquire Color Representation to inquire the current color values in the specified workstation’s color
table. The color specification parameters are the coordinates of the color in the current color model at the
workstation.
If the type of returned values is REALIZED and your application has neither predefined nor set the color
associated with the color index, or the color index is greater than the range of the color table at the
workstation, then the graPHIGS API sets the output color parameters to the color associated with color
index 1.
If the type of returned values is SET and your application has predefined or set the color associated with
the color index, then the graPHIGS API sets the output color parameters as closely as possible to the
color associated with the color index as it was predefined or set. This may be the same as the case when
the type of returned value is REALIZED.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
113 Color Index Value < ZERO
101 Specified Representation Has Not Been Defined
Use Inquire Workstation State Table Lengths subroutine to determine the actual size of the workstation’s
color table.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint colr_ind
Color index (>=0).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer coli
Color index (>=0).
integer ccsbsz
Color component specification buffer size.
integer type
Type of returned values (0=PSET, 1=PREALI).
Output Parameters
integer errind
Error indicator.
integer ol
Number of color components in the color specification.
real cspec(ccsbsz)
Color specification.
Errors
None
Related Subroutines
v Set Color Representation
Use Inquire Conflict Resolution to inquire the archival conflict resolution flag and the retrieval conflict
resolution flag. Each flag may have the value MAINTAIN, ABANDON, or UPDATE.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pconf_res *archive_res
Archival conflict resolution (0=PRES_MAINTAIN, 1=PRES_ABANDON, 2=PRES_UPD).
Pconf_res *retrieve_res
Retrieval conflict resolution (0=PRES_MAINTAIN, 1=PRES_ABANDON, 2=PRES_UPD).
FORTRAN
Output Parameters
integer errind
Error indicator.
integer arccr
Archival conflict resolution (0=PCRMNT, 1=PCRABA, 2=PCRUPD).
integer retcr
Retrieval conflict resolution (0=PCRMNT, 1=PCRABA, 2=PCRUPD).
Errors
None
Related Subroutines
v None
Use Inquire Conflicting Structures in Network to inquire a list of structure identifiers from a specified
structure network that exists in both the structure store and the specified open archive file.
The value for the source determines whether the structure network originates from the structure store or
from the archive file.
If the inquire information is available, then the graPHIGS API sets the error indicator to zero and returns
the values in the output parameters. If the inquired information is unavailable, then the values returned in
the output parameters are unpredictable and the graPHIGS API sets the error indicator to one of the
following errors:
7 Function Requires State (PHOP,*,*,AROP)
201 Specified Structure Does Not Exist
404 Specified Archive File Is Not Open
Language Bindings
Input Parameters
Pint ar_id
Archive file identifier.
Pint struct_id
Structure identifier.
Pstruct_net_source source
Structure network source (0=PNET_CSS, 1=PNET_AR).
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *ids
List of conflicting structure identifiers.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer afid
Archive file identifier.
integer strid
Structure identifier.
integer snsrc
Structure network source (0=PCSS, 1=PARCHV).
integer n
Set member requested (>=0).
Output Parameters
integer errind
Error indicator.
integer ol
Number of structure identifiers in list.
integer ostrid
nth structure identifier in list.
Errors
Related Subroutines
v Inquire All Conflicting Structures
Use Inquire Current Element Content to retrieve the current structure element content that is indicated by
the element pointer.
This subroutine returns the data contained in the current element. The graPHIGS API returns the data in a
binding specific format. See Chapter 17. “ISO PHIGS C Type and Macro Definitions” for the C binding
formats and see Chapter 16. “FORTRAN Structure Content Data Records” for the FORTRAN binding
formats. Use the Inquire Current Element Type And Size subroutine to determine the element type and
size.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
5 Function Requires State (PHOP,*,STOP,*)
Language Bindings
Input Parameters
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store CREATE STORE (PHOP,*,*,*)
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pelem_data **elem_data
Element data. The memory referenced by *elem_data is managed by the parameter store.
FORTRAN
PQCECO (iil, irl, isl, errind, il, ia, rl, ra, sl, lstr, str)
Input Parameters
integer iil
Dimension of integer array (>=0).
Output Parameters
integer errind
Error indicator.
integer il
Number of integer entries.
integer ia(iil)
Array containing integer entries.
integer rl
Number of real entries.
integer ra(irl)
Array containing real entries.
integer sl
Number of character string entries.
integer lstr(isl)
Length of each character string entry.
character*(*) str(isl)
Character string entries.
FORTRAN Subset
PQCECO (iil, irl, isl, errind, il, ia, rl, ra, sl, lstr, str)
Input Parameters
integer iil
Dimension of integer array (>=0).
integer irl
Dimension of real array (>=0).
integer isl
Dimension of character array (>=0).
Output Parameters
integer errind
Error indicator.
integer il
Number of integer entries.
integer ia(iil)
Array containing integer entries.
integer rl
Number of real entries.
integer ra(irl)
Array containing real entries.
Errors
None
Related Subroutines
v Inquire Current Element Type And Size
Use Inquire Current Element Type and Size to inquire the type and size of the current element.
The graPHIGS API returns the element of the structure element pointed to by the element pointer. If
elements of this type have no associated values, then the graPHIGS API returns a value of zero in the
element size parameter. If the element pointer is currently zero, then the graPHIGS API returns a NIL
value in the element type parameter. To retrieve the element contents, use the Inquire Current Element
Content subroutine
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
5 Function Requires State (PHOP,*,STOP,*)
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pelem_type *elem_type
Element type (1=PELEM_NIL, 2=PELEM_POLYLINE3, 3=PELEM_POLYLINE,
4=PELEM_POLYMARKER3, 5=PELEM_POLYMARKER, 6=PELEM_TEXT3, 7=PELEM_TEXT,
8=PELEM_ANNO_TEXT_REL3, 9=PELEM_ANNO_TEXT_REL, 10=PELEM_FILL_AREA3,
11=PELEM_FILL_AREA, 12=PELEM_FILL_AREA_SET3, 13=PELEM_FILL_AREA_SET,
14=PELEM_CELL_ARRAY3, 15=PELEM_CELL_ARRAY, 16=PELEM_GDP3, 17=PELEM_GDP,
18=PELEM_LINE_IND, 19=PELEM_MARKER_IND, 20=PELEM_TEXT_IND,
21=PELEM_INT_IND, 22=PELEM_EDGE_IND, 23=PELEM_LINETYPE, 24=PELEM_LINEWIDTH,
25=PELEM_LINE_COLR_IND, 26=PELEM_MARKER_TYPE, 27=PELEM_MARKER_SIZE,
28=PELEM_MARKER_COLR_IND, 29=PELEM_TEXT_FONT, 30=PELEM_TEXT_PREC,
31=PELEM_CHAR_EXPAN, 32=PELEM_CHAR_SPACE, 33=PELEM_TEXT_COLR_IND,
34=PELEM_CHAR_HT, 35=PELEM_CHAR_UP_VEC, 36=PELEM_TEXT_PATH,
37=PELEM_TEXT_ALIGN, 38=PELEM_ANNO_CHAR_HT, 39=PELEM_ANNO_CHAR_UP_VEC,
280 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
40=PELEM_ANNO_PATH, 41=PELEM_ANNO_ALIGN, 42=PELEM_ANNO_STYLE,
43=PELEM_INT_STYLE, 44=PELEM_INT_STYLE_IND, 45=PELEM_INT_COLR_IND,
46=PELEM_EDGE_FLAG, 47=PELEM_EDGETYPE, 48=PELEM_EDGEWIDTH,
49=PELEM_EDGE_COLR_IND, 50=PELEM_PAT_SIZE, 51=PELEM_PAT_REF_POINT_VECS,
52=PELEM_PAT_REF_POINT, 53=PELEM_ADD_NAMES_SET,
54=PELEM_REMOVE_NAMES_SET, 55=PELEM_INDIV_ASF, 56=PELEM_HLHSR_ID,
57=PELEM_LOCAL_MODEL_TRAN3, 58=PELEM_LOCAL_MODEL_TRAN,
59=PELEM_GLOBAL_MODEL_TRAN3, 60=PELEM_GLOBAL_MODEL_TRAN,
61=PELEM_MODEL_CLIP_VOL3, 62=PELEM_MODEL_CLIP_VOL,
63=PELEM_MODEL_CLIP_IND, 64=PELEM_RESTORE_MODEL_CLIP_VOL,
65=PELEM_VIEW_IND, 66=PELEM_EXEC_STRUCT, 67=PELEM_LABEL,
68=PELEM_APPL_DATA, 69=PELEM_GSE, 70=PELEM_PICK_ID).
size_t *elem_size
Element size in bytes.
FORTRAN
Output Parameters
integer errind
Error indicator.
integer eltype
Element type (1=PENIL, 2=PEPL3, 3=PEPL, 4=PEPM3, 5=PEPM, 6=PETX3, 7=PETX,
8=PEATR3, 9=PEATR, 10=PEFA3, 11=PEFA, 12=PEFAS3, 13=PEFAS, 14=PECA3, 15=PECA,
16=PEGDP3, 17=PEGDP, 18=PEPLI, 19=PEPMI, 20=PETXI, 21=PEII, 22=PEEDI, 23=PELN,
24=PELWSC, 25=PEPLCI, 26=PEMK, 27=PEMKSC, 28=PEPMCI, 29=PETXFN, 30=PETXPR,
31=PECHXP, 32=PECHSP, 33=PETXCI, 34=PECHH, 35=PECHUP, 36=PETXP, 37=PETXAL,
38=PEATCH, 39=PEATCU, 40=PEATP, 41=PEATAL, 42=PEANST, 43=PEIS, 44=PEISI, 45=PEICI,
46=PEEDFG, 47=PEEDT, 48=PEEWSC, 49=PEEDCI, 50=PEPA, 51=PEPRPV, 52=PEPARF,
53=PEADS, 54=PERES, 55=PEIASF, 56=PEHRID, 57=PELMT3, 58=PELMT, 59=PEGMT3,
60=PEGMT, 61=PEMCV3, 62=PEMCV, 63=PEMCLI, 64=PERMCV, 65=PEVWI, 66=PEEXST,
67=PELB, 68=PEAP, 69=PEGSE, 70=PEPKID).
integer il
Dimension of integer array.
integer rl
Dimension of real array.
integer sl
Dimension of character array.
Errors
None
Related Subroutines
v Inquire Current Element Content
The graPHIGS API returns the default values for the requested choice device. For more information on the
defaults, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint choice_num
Choice device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store CREATE STORE (PHOP,*,*,*)
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pint *max_choices
Maximum number of choice alternatives.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit *echo_area
Default echo area in DC.
Pchoice_data **choice_data
Default choice data record. The memory referenced by *choice_data is managed by the parameter
store.
FORTRAN
PQDCH (wtype, devno, n, mldr, errind, malt, ol, pet, earea, ldr, datrec)
Output Parameters
integer errind
Error indicator.
integer malt
Maximum number of choice alternatives.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real earea(4)
Default echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Default choice data record.
Errors
None
Related Subroutines
v Initialize Choice
v Initialize Choice 3
v Inquire Choice Device State
v Inquire Choice Device State 3
v Inquire Default Choice Device Data 3
v Inquire Workstation Connection And Type
Use Inquire Default Choice Device Data 3 to inquire the default values for a specified choice device for the
specified workstation type.
The graPHIGS API returns the default values for the requested choice device. For more information on the
defaults, see The graPHIGS Programming Interface: Technical Reference.
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint choice_num
Choice device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pint *max_choices
Maximum number of choice alternatives.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit3 *echo_vol
Default echo volume in DC.
Pchoice_data3 **choice_data
Default choice data record. The memory referenced by *choice_data is managed by the parameter
store.
FORTRAN
PQDCH3 (wtype, devno, n, mldr, errind, malt, ol, pet, evol, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer malt
Maximum number of choice alternatives.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real evol(6)
Default echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Default choice data record.
Errors
None
Related Subroutines
v Initialize Choice
v Initialize Choice 3
v Inquire Choice Device State
v Inquire Choice Device State
v Inquire Default Choice Device Data 3
v Inquire Workstation Connection And Type
Use Inquire Default Display Update State to inquire the default values of the deferral state and
modification mode for the specified workstation type.
For an explanation of the deferral states and modification modes see The graPHIGS Programming
Interface: Understanding Concepts.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pdefer_mode *def_mode
Default value for deferral mode (0=PDEFER_ASAP, 1=PDEFER_BNIG, 2=PDEFER_BNIL,
3=PDEFER_ASTI, 4=PDEFER_WAIT).
Pmod_mode *mod_mode
Default value for modification mode (0=PMODE_NIVE, 1=PMODE_UWOR, 2=PMODE_UQUM).
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer defmod
Default value for deferral mode (0=PASAP, 1=PBNIG, 2=PBNIL, 3=PASTI, 4=PWAITD).
integer modmod
Default value for modification mode (0=PNIVE, 1=PUWOR, 2=PUQUM).
Errors
None
Related Subroutines
v Inquire Display Update State
v Inquire Workstation Connection And Type
v Set Display Update State
Use Inquire Default Locator Device Data to inquire the default value of the specified locator device for the
specified workstation type.
The graPHIGS API returns the default values for the requested locator device. The default initial locator
position is in view zero, which has the highest view input priority by default. For more information on the
defaults, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint loc_num
Locator device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store CREATE STORE (PHOP,*,*,*)
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Ppoint *loc_pos
Default initial locator position in WC.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit *echo_area
Default echo area in DC.
Ploc_data **loc_data
Default locator data record. The memory referenced by *loc_data is managed by the parameter
store.
PQDLC (wtype, devno, n, mldr, errind, dpx, dpy, ol, pet, earea, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
Locator device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer dpx
x coordinate of the default initial locator position in WC.
integer dpy
y coordinate of the default initial locator position in WC.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real earea(4)
Default echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Locator
v Initialize Locator 3
v Inquire Locator Device State
v Inquire Locator Device State 3
v Inquire Default Locator Device Data 3
v Inquire Workstation Connection And Type
The graPHIGS API returns the default values for the requested locator device. The default initial locator
position is in view zero, which has the highest view input priority by default. For more information on the
defaults, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint loc_num
Locator device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store CREATE STORE (PHOP,*,*,*)
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Ppoint3 *loc_pos
Default initial locator position in WC.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit3 *echo_vol
Default echo volume in DC.
Ploc_data3 **loc_data
Default locator data record. The memory referenced by *loc_data is managed by the parameter
store.
FORTRAN
PQDLC3 (wtype, devno, n, mldr, errind, dpx, dpy, dpz, ol, pet, evol, ldr, datrec)
Output Parameters
integer errind
Error indicator.
integer dpx
x coordinate of the default initial locator position in WC.
integer dpy
y coordinate of the default initial locator position in WC.
integer dpz
z coordinate of the default initial locator position in WC.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real evol(6)
Default echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Locator
v Initialize Locator 3
v Inquire Locator Device State
v Inquire Locator Device State 3
v Inquire Default Locator Device Data
v Inquire Workstation Connection And Type
The graPHIGS API returns the default values for the requested pick device. For more information on
defaults, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint pick_num
Pick device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store CREATE STORE (PHOP,*,*,*)
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit *echo_area
Default echo area in DC.
Ppick_data **pick_data
Default pick data record. The memory referenced by *pick_data is managed by the parameter
store.
FORTRAN
PQDPK (wtype, devno, n, mldr, errind, ol, pet, earea, ldr, datrec)
Input Parameters
Output Parameters
integer errind
Error indicator.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real earea(4)
Default echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Pick
v Initialize Pick 3
v Inquire Pick Device State
v Inquire Pick Device State 3
v Inquire Default Pick Device Data
v Inquire Workstation Connection And Type
Use Inquire Default Pick Device Data 3 to return the default values of the specified pick device for the
specified workstation type.
The graPHIGS API returns the default values for the requested pick device. For more information on
defaults, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint pick_num
Pick device number(>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit3 *echo_vol
Default echo volume in DC.
Ppick_data3 **pick_data
Default pick data record. The memory referenced by *pick_data is managed by the parameter
store.
FORTRAN
PQDPK3 (wtype, devno, n, mldr, errind, ol, pet, evol, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
Pick device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
Errors
None
Related Subroutines
v Initialize Pick
v Initialize Pick 3
v Inquire Pick Device State
v Inquire Pick Device State 3
v Inquire Default Pick Device Data 3
v Inquire Workstation Connection And Type
Use Inquire Default String Device Data to inquire the default values of the specified string device for the
specified workstation type.
The graPHIGS API returns the default values for the requested string device. For more information on
default values, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pint *max_buf_size
Available input buffer size.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit *echo_area
Default echo area in DC.
Pstring_data **string_data
Default string data record. The memory referenced by *string_data is managed by the parameter
store.
FORTRAN
PQDST (wtype, devno, n, mldr, errind, mbuff, ol, pet, earea, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
String device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mbuff
Available string buffer size.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
Errors
None
Related Subroutines
v Initialize String
v Initialize String 3
v Inquire String Device State
v Inquire String Device State 3
v Inquire Default String Device Data 3
v Inquire Workstation Connection And Type
Use Inquire Default String Device Data 3 to inquire the default values of the specified string device for the
specified workstation type.
The graPHIGS API returns the default values for the requested string device. For more information on
default values, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint string_num
String device number (>=1).
Output Parameters
Pint *err_ind
Error indicator.
Pint *max_buf_size
Available input buffer size.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit3 *echo_vol
Default echo volume in DC.
Pstring_data3 **string_data
Default string data record. The memory referenced by *string_data is managed by the parameter
store.
FORTRAN
PQDST3 (wtype, devno, n, mldr, errind, mbuff, ol, pet, evol, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
String device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mbuff
Available string buffer size.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real evol(6)
Default echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
Errors
None
Related Subroutines
v Initialize String
v Initialize String 3
v Inquire String Device State
v Inquire String Device State 3
v Inquire Default String Device Data
v Inquire Workstation Connection And Type
Use Inquire Default Stroke Device Data to inquire the default values of the specified stroke device for the
specified workstation type.
The graPHIGS API returns the default values for the requested stroke device. For more information on
defaults, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint stroke_num
Stroke device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
FORTRAN
PQDSK (wtype, devno, n, mldr, errind, mbuff, ol, pet, earea, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
Stroke device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mbuff
Available stroke buffer size in points.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real earea(4)
Default echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Use Inquire Default Stroke Device Data 3 to inquire the default values of the specified stroke device for
the specified workstation type.
The graPHIGS API returns the default values for the requested stroke device. For more information on
defaults, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint stroke_num
Stroke device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pint *max_buf_size
Available input buffer size in points.
FORTRAN
PQDSK3 (wtype, devno, n, mldr, errind, mbuff, ol, pet, evol, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
Stroke device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mbuff
Available stroke buffer size in points.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real evol(6)
Default echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Stroke
v Initialize Stroke 3
v Inquire Stroke Device State
v Inquire Stroke Device State 3
Use Inquire Default Valuator Device Data to inquire the default values of the specified valuator device on
the given workstation type.
The graPHIGS API returns the default values for the requested valuator device. For more information on
default values, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint val_num
Valuator device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pfloat *def_value
Default initial value.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit *echo_area
Default echo area in DC.
FORTRAN
PQDVL (wtype, devno, n, mldr, errind, dval, ol, pet, earea, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
Valuator device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer dval
Default initial value.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real earea(4)
Default echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Valuator
v Initialize Valuator 3
v Inquire Valuator Device State
v Inquire Valuator Device State 3
v Inquire Default Valuator Device Data 3
v Inquire Workstation Connection And Type
Use Inquire Default Valuator Device Data 3 to inquire the default values of the specified valuator device on
the given workstation type.
The graPHIGS API returns the default values for the requested valuator device. For more information on
default values, see The graPHIGS Programming Interface: Technical Reference.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint val_num
Valuator device number (>=1).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pfloat *def_value
Default initial value.
Pint_list **pet_list
List of prompt and echo types. The memory referenced by *pet_list is managed by the parameter
store.
Plimit3 *echo_area
Default echo volume in DC.
Pval_data3 **val_data
Default valuator data record. The memory referenced by *val_data is managed by the parameter
store.
PQDVL3 (wtype, devno, n, mldr, errind, dval, ol, pet, evol, ldr, datrec)
Input Parameters
integer wtype
Workstation type.
integer devno
Valuator device number (>=1).
integer n
List element requested (>=0).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer dval
Default initial value.
integer ol
Number of available prompt and echo types.
integer pet
nth element of the list of the available prompt and echo types.
real evol(6)
Default echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Valuator
v Initialize Valuator 3
v Inquire Valuator Device State
v Inquire Valuator Device State 3
v Inquire Default Valuator Device Data
v Inquire Workstation Connection And Type
Use Inquire Display Space Size to inquire the maximum display space size for the specified workstation
type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
57 Specified Workstation Is Of Category MI
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pdisp_space_size *size
Display size.
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer dcunit
Device coordinate units (0=PMETRE, 1=POTHU).
real dx
Maximum display space size in x direction in DC.
real dy
Maximum display space size in y direction in DC.
integer rx
Maximum display space size in x direction in raster units.
Errors
None
Related Subroutines
v Initialize Choice
v Initialize Locator
v Initialize Pick
v Initialize String
v Initialize Stroke
v Initialize Valuator
v Inquire Display Space Size 3
v Inquire Workstation Connection And Type
Use Inquire Display Space Size 3 to inquire the maximum display space size for the specified workstation
type.
The graPHIGS API returns the maximum display space size in Device Coordinates (DC) and address
units. Device Coordinate units are either METER or OTHER.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
57 Specified Workstation Is Of Category MI
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
FORTRAN
PQDSP3 (wtype, errind, dcunit, dx, dy, dz, rx, ry, rz)
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer dcunit
Device coordinate units (0=PMETRE, 1=POTHU).
real dx
Maximum display space size in x direction in DC.
real dy
Maximum display space size in y direction in DC.
real dz
Maximum display space size in z direction in DC.
integer rx
Maximum display space size in x direction in raster units.
integer ry
Maximum display space size in y direction in raster units.
integer rz
Maximum display space size in z direction in raster units.
Errors
None
Related Subroutines
v Initialize Choice 3
v Initialize Locator 3
v Initialize Pick 3
v Initialize String 3
v Initialize Stroke 3
v Initialize Valuator 3
v Inquire Display Space Size
v Inquire Workstation Connection And Type
Use Inquire Display Update State to inquire the current deferral and update state values for the specified
workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Output Parameters
Pint *err_ind
Error indicator.
Pdefer_mode *def_mode
Deferral mode (0=PDEFER_ASAP, 1=PDEFER_BNIG, 2=PDEFER_BNIL, 3=PDEFER_ASTI,
4=PDEFER_WAIT).
Pmod_mode *mod_mode
Modification mode (0=PMODE_NIVE, 1=PMODE_UWOR, 2=PMODE_UQUM).
Pdisp_surf_empty *disp_surf_empty
Display surface empty (0=PSURF_NOT_EMPTY, 1=PSURF_EMPTY).
Pvisual_st *vis_st
State of visual representation (0=PVISUAL_ST_CORRECT, 1=PVISUAL_ST_DEFER,
2=PVISUAL_ST_SIMULATED).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
Errors
None
Related Subroutines
v Inquire Default Display Update State
v Set Display Update State
Use Inquire Dynamics of Structures to inquire the dynamic modification supported by the specified
workstation for the following categories of picture changes:
v structure content modification
v post structure
v unpost structure
v delete structure
v reference modification (structure identifier changes).
Possible dynamic modifications include: IMPLICIT REGENERATION (IRG), meaning that implicit
regeneration is necessary; IMMEDIATELY (IMM), meaning that the action is performed immediately; and
CAN BE SIMULATED (CBS), meaning that the change can be simulated. If a category has a dynamic
modification of IRG or CBS, it is still possible that your application can immediately execute some changes
correctly if the state of the picture allows it. (For example, if no structures are posted, most changes can
be executed immediately.)
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pdyns_structs *dyns
Structure dynamics.
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer strcon
Structure content modification (0=PIRG, 1=PIMM, 2=PCBS).
integer post
Post structure (0=PIRG, 1=PIMM, 2=PCBS).
integer unpost
Unpost structure (0=PIRG, 1=PIMM, 2=PCBS).
integer delete
Delete structure (0=PIRG, 1=PIMM, 2=PCBS).
integer refmod
Reference modification (0=PIRG, 1=PIMM, 2=PCBS).
Errors
None
Related Subroutines
v Inquire Dynamics Of Workstation Attributes
Use Inquire Dynamics of Workstation Attributes to inquire the dynamic modification supported by the
specified workstation for the following categories of picture changes:
v view representation modification
v polyline bundle representation modification
v polymarker bundle representation modification
v text bundle representation modification
Possible dynamic modifications include: IMPLICIT REGENERATION (IRG), meaning that implicit
regeneration is necessary; IMMEDIATELY (IMM), meaning that the action is performed immediately; and
CAN BE SIMULATED (CBS), meaning that the change can be simulated. If a category has a dynamic
modification of IRG or CBS, it is still possible that your application can immediately execute some changes
correctly if the state of the picture allows it. (For example, if no structures are posted, most changes can
be executed immediately.)
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pdyns_ws_attrs *attr
Dynamics of workstation attributes.
FORTRAN
PQDSWA (wtype, errind, plbun, pmbun, txbun, inbun, edbun, parep, colrep, vwrep, wktr, hlfltr, infltr, hlhsr)
Input Parameters
integer wtype
Workstation type.
Errors
None
Related Subroutines
v Inquire Dynamics Of Structures
Use Inquire Edge Facilities to inquire the edge facilities for the specified workstation type.
The graPHIGS API returns a number indicating the total quantity of available edge types and their
identifiers; the available number of edge widths and the nominal, minimum, and maximum values; and the
number of predefined edge indexes. The graPHIGS API returns the width of lines in Device Coordinate
(DC) units. Possible edge types include: SOLID, DASHED, DOTTED, or DASHED-DOTTED.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint index
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pedge_facs *fac
Edge facilities.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer nedt
Number of available edge types.
integer edt
nth element of the list of available edge types (PLSOLI, 2=PLDASH, 3=PLDOT, 4=PLDASD).
integer nedw
Number of available edge widths.
Errors
None
Related Subroutines
v Inquire Edge Representation
v Set edge Representation
Use Inquire Edge Representation to inquire the current attribute values in the specified entry in the edge
bundle table of the specified workstation. Returned values of type SET or REALIZED may be specified.
If the specified edge index is not present in the edge bundle table on the workstation and the specified
type of returned values is REALIZED, then the graPHIGS API returns the representation values for edge
index 1.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
101 Specified Representation Has Not Been Defined
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint index
Edge index (>=1).
Output Parameters
Pint *err_ind
Error indicator.
Pedge_bundle *edge_rep
Edge representation.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer edi
Edge index (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
Output Parameters
integer errind
Error indicator.
integer edflag
Edge flag (0=POFF, 1=PON).
integer edtype
Edge type (1=PLSOLI, 2=PLDASH, 3=PLDOT, 4=PLDASD).
real edwidth
Edge width scale factor.
integer coli
Edge color index (>=0).
Errors
None
Related Subroutines
v Inquire Edge Facilities
v Set edge Representation
Use Inquire Edit Mode to inquire the current edit mode. The edit mode is either INSERT or REPLACE.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pedit_mode *edit_mode
Edit mode (0=PEDIT_INSERT, 1=PEDIT_REPLACE).
FORTRAN
Output Parameters
integer errind
Error indicator.
integer editmo
Edit mode (0=PINSRT, 1=PREPLC).
Errors
None
Related Subroutines
v Set Edit Mode
Use Inquire Element Content to inquire the contents of the specified structure element.
This subroutine returns the data contained in the specified structure element. The data is returned in a
binding specific format. See Chapter 17. “ISO PHIGS C Type and Macro Definitions” for the C binding
formats and see Chapter 16. “FORTRAN Structure Content Data Records” for the FORTRAN binding
formats. Use the Inquire Element Type and Size subroutine ( INQUIRE ELEMENT TYPE AND SIZE
(PHOP,*,*,*)) to determine the element type and size.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
201 Specified Structure Does Not Exist
202 Specified Element Does Not Exist
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Pint elem_num
Element number (>=0).
Pstore store
Handle to the Store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameter
Pint *err_ind
Error indicator.
Pelem_data **elem_data
Data record. The memory referenced by *elem_data is managed by the parameter store.
FORTRAN
PQECO (strid, elenum, iil, irl, isl, errind, il, ia, rl, ra, sl, lstr, str)
Input Parameters
integer strid
Structure identifier.
integer elenum
Element position (>=0).
integer iil
Dimension of integer array (>=0).
integer irl
Dimension of real array (>=0).
integer isl
Dimension of character array (>=0).
Output Parameters
integer errind
Error indicator.
integer il
Number of integer entries.
integer ia (iil)
Array containing integer entries.
integer rl
Number of real entries.
real ra (irl)
Array containing real entries.
FORTRAN Subset
PQECO (strid, elenum, iil, irl, isl, errind, il, ia, rl, ra, sl, lstr, str)
Input Parameters
integer strid
Structure identifier.
integer elenum
Element position (>=0).
integer iil
Dimension of integer array (>=0).
integer irl
Dimension of real array (>=0).
integer isl
Dimension of character array (>=0).
Output Parameters
integer errind
Error indicator.
integer il
Number of integer entries.
integer ia (iil)
Array containing integer entries.
integer rl
Number of real entries.
real ra (irl)
Array containing real entries.
integer sl
Number of character string entries.
integer lstr (isl)
Length of each character string entry.
character*80 str(isl)
Character string entries.
Errors
None
Related Subroutines
v Inquire Element Type And Size
Use Inquire Element Pointer to inquire the value of the current element pointer in the structure store.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameter. If the information is unavailable, then the value returned in the output
parameter is unpredictable and the graPHIGS API sets the error indicator to the following error:
5 Function Requires State (PHOP,*,STOP,*)
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pint *elem_ptr_value
Element pointer value.
FORTRAN
Output Parameters
integer errind
Error indicator.
integer ep
Element pointer value.
Errors
None
Related Subroutines
v None
Use Inquire Element Type and Size to inquire the type and size of the specified structure element.
This subroutine returns the element type of the specified element. If elements of this type have no
associated values, then the graPHIGS API returns a value of zero in the element size parameter. If the
element pointer is currently zero, then the graPHIGS API returns a value of NIL in the element type
parameter. To retrieve the element contents, use the Inquire Element Content subroutine
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Pint elem_num
Element number (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pelem_type *elem_type
Element type (1=PELEM_NIL, 2=PELEM_POLYLINE3, 3=PELEM_POLYLINE,
4=PELEM_POLYMARKER3, 5=PELEM_POLYMARKER, 6=PELEM_TEXT3, 7=PELEM_TEXT,
8=PELEM_ANNO_TEXT_REL3, 9=PELEM_ANNO_TEXT_REL, 10=PELEM_FILL_AREA3,
11=PELEM_FILL_AREA, 12=PELEM_FILL_AREA_SET3, 13=PELEM_FILL_AREA_SET,
14=PELEM_CELL_ARRAY3, 15=PELEM_CELL_ARRAY, 16=PELEM_GDP3, 17=PELEM_GDP,
18=PELEM_LINE_IND, 19=PELEM_MARKER_IND, 20=PELEM_TEXT_IND,
21=PELEM_INT_IND, 22=PELEM_EDGE_IND, 23=PELEM_LINETYPE, 24=PELEM_LINEWIDTH,
25=PELEM_LINE_COLR_IND, 26=PELEM_MARKER_TYPE, 27=PELEM_MARKER_SIZE,
28=PELEM_MARKER_COLR_IND, 29=PELEM_TEXT_FONT, 30=PELEM_TEXT_PREC,
31=PELEM_CHAR_EXPAN, 32=PELEM_CHAR_SPACE, 33=PELEM_TEXT_COLR_IND,
34=PELEM_CHAR_HT, 35=PELEM_CHAR_UP_VEC, 36=PELEM_TEXT_PATH,
37=PELEM_TEXT_ALIGN, 38=PELEM_ANNO_CHAR_HT, 39=PELEM_ANNO_CHAR_UP_VEC,
40=PELEM_ANNO_PATH, 41=PELEM_ANNO_ALIGN, 42=PELEM_ANNO_STYLE,
43=PELEM_INT_STYLE, 44=PELEM_INT_STYLE_IND, 45=PELEM_INT_COLR_IND,
46=PELEM_EDGE_FLAG, 47=PELEM_EDGETYPE, 48=PELEM_EDGEWIDTH,
49=PELEM_EDGE_COLR_IND, 50=PELEM_PAT_SIZE, 51=PELEM_PAT_REF_POINT_VECS,
52=PELEM_PAT_REF_POINT, 53=PELEM_ADD_NAMES_SET,
54=PELEM_REMOVE_NAMES_SET, 55=PELEM_INDIV_ASF, 56=PELEM_HLHSR_ID,
57=PELEM_LOCAL_MODEL_TRAN3, 58=PELEM_LOCAL_MODEL_TRAN,
59=PELEM_GLOBAL_MODEL_TRAN3, 60=PELEM_GLOBAL_MODEL_TRAN,
61=PELEM_MODEL_CLIP_VOL3, 62=PELEM_MODEL_CLIP_VOL,
63=PELEM_MODEL_CLIP_IND, 64=PELEM_RESTORE_MODEL_CLIP_VOL,
65=PELEM_VIEW_IND, 66=PELEM_EXEC_STRUCT, 67=PELEM_LABEL,
68=PELEM_APPL_DATA, 69=PELEM_GSE, 70=PELEM_PICK_ID).
size_t *elem_size
Element size.
Input Parameters
integer strid
Structure identifier.
integer elenum
Element position (>=0).
Output Parameters
integer errind
Error indicator.
integer eltype
Element type (1=PENIL, 2=PEPL3, 3=PEPL, 4=PEPM3, 5=PEPM, 6=PETX3, 7=PETX,
8=PEATR3, 9=PEATR, 10=PEFA3, 11=PEFA, 12=PEFAS3, 13=PEFAS, 14=PECA3, 15=PECA,
16=PEGDP3, 17=PEGDP, 18=PEPLI, 19=PEPMI, 20=PETXI, 21=PEII, 22=PEEDI, 23=PELN,
24=PELWSC, 25=PEPLCI, 26=PEMK, 27=PEMKSC, 28=PEPMCI, 29=PETXFN, 30=PETXPR,
31=PECHXP, 32=PECHSP, 33=PETXCI, 34=PECHH, 35=PECHUP, 36=PETXP, 37=PETXAL,
38=PEATCH, 39=PEATCU, 40=PEATP, 41=PEATAL, 42=PEANST, 43=PEIS, 44=PEISI, 45=PEICI,
46=PEEDFG, 47=PEEDT, 48=PEEWSC, 49=PEEDCI, 50=PEPA, 51=PEPRPV, 52=PEPARF,
53=PEADS, 54=PERES, 55=PEIASF, 56=PEHRID, 57=PELMT3, 58=PELMT, 59=PEGMT3,
60=PEGMT, 61=PEMCV3, 62=PEMCV, 63=PEMCLI, 64=PERMCV, 65=PEVWI, 66=PEEXST,
67=PELB, 68=PEAP, 69=PEGSE, 70=PEPKID).
integer il
Dimension of integer array.
integer rl
Dimension of real array.
integer sl
Dimension of character array.
Errors
None
Related Subroutines
v Inquire Element Content
Use Inquire Error Handling Mode to inquire if the error handling mode is set to either ON or OFF.
To set the mode, use the Set Error Handling Mode subroutine The default error handling mode is ON.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the value
in the output parameter. If the information is unavailable, then the value returned in the output parameter is
unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Output Parameters
Pint *err_ind
Error indicator.
Perr_mode *err_mode
Error handling mode (0=PERR_OFF, 1=PERR_ON).
FORTRAN
Output Parameters
integer errind
Error indicator.
integer erhm
Error handling mode (0=POFF, 1=PON).
Errors
None
Related Subroutines
v Set Error Handling Mode
Use Inquire Generalized Drawing Primitive to inquire the list of sets of attributes used by the specified
Generalized Drawing Primitive (GDP) on the specified workstation. Possible sets of attributes include:
POLYLINE, POLYMARKER, TEXT, INTERIOR and/or EDGE attributes.
The graPHIGS API returns a list of the attributes used by the specified GDP. For registered GDP
identifiers, the ISO International Register of Graphical Items defines the list of sets of attributes used. For
implementation dependent GDP identifiers, the list of sets of attributes used is workstation dependent.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
64 Specified Workstation Type Cannot Generate Specified GDP
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint gdp
GDP function identifier.
Output Parameters
Pint *err_ind
Error indicator.
Pint *num_attr
Number of sets of attributes used.
Pattrs attr[5]
List of sets of attributes used (0=PATTR_LINE, 1=PATTR_MARKER, 2=PATTR_TEXT,
3=PATTR_INT, 4=PATTR_EDGE).
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer gdp
GDP function identifier.
Output Parameters
integer errind
Error indicator.
integer nbnd
Number of sets of attributes used.
integer bndl(5)
List of sets of attributes used (0=PPLATT, 1=PPMATT, 2=PTXATT, 3=PINATT, 4=PEDATT).
Errors
None
Related Subroutines
v Generalized Drawing Primitive
Use Inquire Generalized Drawing Primitive 3 to inquire the list of sets of attributes used by the specified
Generalized Drawing Primitive 3 (GDP 3) on the specified workstation. Possible sets of attributes include:
POLYLINE, POLYMARKER, TEXT, INTERIOR and/or EDGE attributes.
The graPHIGS API returns a list of the attributes used by the specified GDP 3. For registered GDP 3
identifiers, the ISO International Register of Graphical Items defines the list of sets of attributes used. For
implementation dependent GDP 3 identifiers, the list of sets of attributes used is workstation dependent.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
64 Specified Workstation Type Cannot Generate Specified GDP
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint gdp
GDP 3 function identifier.
Output Parameters
Pint *err_ind
Error indicator.
Pint *num_attr
Number of sets of attributes used.
Pattrs attr[5]
List of sets of attributes used (0=PATTR_LINE, 1=PATTR_MARKER, 2=PATTR_TEXT,
3=PATTR_INT, 4=PATTR_EDGE).
FORTRAN
Input Parameters
Output Parameters
integer errind
Error indicator.
integer nbnd
Number of sets of attributes used.
integer bndl(5)
List of sets of attributes used (0=PPLATT, 1=PPMATT, 2=PTXATT, 3=PINATT, 4=PEDATT).
Errors
None
Related Subroutines
v Generalized Drawing Primitive 3
Use Inquire Generalized Structure Element Facilities to inquire the list of Generalized Structure Element
(GSE) identifiers which are supported on the specified workstation. For each GSE identifier, the graPHIGS
API returns a workstation dependent indicator which specifies if that particular GSE has actions which are
workstation independent or workstation dependent.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
FORTRAN
Input Parameters
integer n
Element requested from the list of GSEs (>=0).
Output Parameters
integer errind
Error indicator.
integer ol
Number of available GSEs.
integer gseid
GSE function identifier of the nth element in the list of available GSEs.
integer wsdind
Workstation dependency indicator of the nth element in the list of available GSEs (0=PWKI,
1=PWKD).
Errors
None
Related Subroutines
v Generalized Structure Element
Use Inquire Highlighting Filter to inquire the current highlighting inclusion and exclusion filters on the
specified workstation.
The graPHIGS API returns the inclusion filter list and the exclusion filter list.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pfilter **highl_filter
Highlighting filter. The memory referenced by *highl_filter is managed by the parameter store.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer isbsz
Inclusion set buffer size (>=0).
integer esbsz
Exclusion set buffer size (>=0).
Output Parameters
integer errind
Error indicator.
integer isn
Number of names in the inclusion set.
integer is (isbsz)
Inclusion set.
integer esn
Number of names in the exclusion set.
integer es (esbsz)
Exclusion set.
Errors
None
Related Subroutines
v Set Highlighting Filter
Use Inquire HLHSR Identifier Facilities to inquire the list of available Hidden Line/Hidden Surface Removal
(HLHSR) identifiers on the specified workstation. See Set HLHSR Identifier subroutine for a listing of the
possible HLHSR identifiers.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
57 Specified Workstation Is Of Category MI
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *hlhsr_ids
List of available HLHSR identifiers.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer nhrid
Number of available HLHSR identifiers.
integer hrid
NIth element in the list of available HLHSR identifiers.
Errors
None
Related Subroutines
v Inquire HLHSR Mode Facilities
v Set HLHSR Identifier
v Set HLHSR Mode
Use Inquire HLHSR Mode to inquire the current and requested Hidden Line/Hidden Surface Removal
(HLHSR) mode, and the HLHSR update state on the specified workstation. Possible HLHSR modes
include: 0=OFF and 1=ON THE FLY.
The HLHSR update state is PENDING if the application has requested an HLHSR mode change but the
workstation has not yet provided that change. Otherwise, the update state is NOT PENDING.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Output Parameters
Pint *err_ind
Error indicator.
330 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
Pupd_st *upd_st
HLHSR update state (0=PUPD_NOT_PEND, 1=PUPD_PEND).
Pint *cur_mode
Current HLHSR mode.
Pint *req_mode
Requested HLHSR mode.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
integer hupd
HLHSR mode update state (0=PNPEND, 1=PPEND).
integer chrm
Current HLHSR mode.
integer rhrm
Requested HLHSR mode.
Errors
None
Related Subroutines
v Inquire HLHSR Mode Facilities
v Set HLHSR Mode
Use Inquire HLHSR Mode Facilities to inquire the list of available Hidden Line/Hidden Surface Removal
(HLHSR) modes on the specified workstation. Possible HLHSR modes include: 0=OFF and 1=ON THE
FLY.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
57 Specified Workstation Is Of Category MI
62 This Information Not Available For MO Workstation Type
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *hlhsr_modes
List of available HLHSR modes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer nm
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer nhrmd
Number of available HLHSR modes.
integer hrmd
NMth element in the list of available HLHSR modes.
Errors
None
Related Subroutines
v Inquire HLHSR Mode Facilities
v Set HLHSR Identifier
v Set HLHSR Mode
Use Inquire Input Queue Overflow to inquire identification of the event report causing the event queue
overflow.
Once the event queue overflow occurs, the graPHIGS API will not add more events to the event queue
until the application clears the overflow situation by emptying the event queue. The application can make
the event queue empty by using the Await Event or Flush Device Events subroutines.
If the event queue has overflowed since Open PHIGS or the last invocation of this subroutine, then the
graPHIGS API returns the identification of the logical input device that caused the overflow. Logical input
device classes include: LOCATOR, STROKE, VALUATOR, CHOICE, PICK, and STRING.
The graPHIGS API does not report the event queue overflow to the application when the overflow occurs.
It is reported on the next invocation of the following subroutines which may change the contents of the
event queue:
v Await Event
v Flush Device Events
v Close Workstation
The graPHIGS API reports the event queue overflow to the application only once per event queue overflow
situation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
257 Input Queue Has Not Overflowed
258 Input Queue Has Overflowed, But Workstation Is Closed
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pint *ws_id
Workstation identifier.
Pin_class *in_class
Input class (1=PIN_LOC, 2=PIN_STROKE, 3=PIN_VAL, 4=PIN_CHOICE, 5=PIN_PICK,
6=PIN_STRING).
Pint *in_num
Input device number.
Output Parameters
integer errind
Error indicator.
integer wkid
Workstation identifier.
integer icl
Input class (1=PLOCAT, 2=PSTROK, 3=PVALUA, 4=PCHOIC, 5=PPICK, 6=PSTRIN).
integer idn
Input device number.
Errors
None
Related Subroutines
v None
Use Inquire Interior Facilities to inquire the interior facilities for the specified workstation type.
The graPHIGS API returns data indicating the total number of available interior styles, the number of
available hatch styles, and the total number of indexes predefined in the interior bundle table. Possible
interior styles include: HOLLOW, SOLID, PATTERN, HATCH, and EMPTY.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pint_facs *int_facs
Interior facilities.
Pint *hatch_num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
PQIF (wtype, ni, nh, errind, nis, is, nhs, hs, npfai)
Input Parameters
integer wtype
Workstation type.
integer ni
List element of interior styles requested (>=0).
integer nh
List element of hatch styles requested (>=0).
Output Parameters
integer errind
Error indicator.
integer nis
Number of available interior styles.
integer is
NIth element in the list of available interior styles (0=PHOLLO, 1=PSOLID, 2=PPATTR,
3=PHATCH, 4=PISEMP).
integer nhs
Number of available hatch styles.
integer hs
NHth element in list of available hatch style indexes.
integer npfai
Number of predefined interior indexes.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Interior Representation to inquire the current attribute values in the specified entry in the
interior bundle table for the specified workstation. Your application may specify returned values of either
type SET or REALIZED. Possible interior styles include: HOLLOW, SOLID, PATTERN, HATCH, and
EMPTY.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
101 Specified Representation Has Not Been Defined
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint index
Interior index (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Output Parameters
Pint *err_ind
Error indicator.
Pint_bundle *int_rep
Interior representation. (See Chapter 17. “ISO PHIGS C Type and Macro Definitions” for the type
definitions).
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer ii
Interior index (>=1).
Output Parameters
integer errind
Error indicator.
integer ints
Interior style (0=PHOLLO, 1=PSOLID, 2=PPATTR, 3=PHATCH, 4=PISEMP).
integer istyli
Interior style index.
integer coli
Interior color index.
Errors
None
Related Subroutines
v Set Interior Representation
Use Inquire Invisibility Filter to inquire the current invisibility inclusion and exclusion filters on the specified
workstation.
The graPHIGS API returns the inclusion filter list and the exclusion filter list.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Chapter 15. Inquire Subroutines 337
Pint *err_ind
Error indicator.
Pfilter **invis_filter
Invisibility filter. The memory referenced by *invis_filter is managed by the parameter store.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer isbsz
Inclusion set buffer size (>=0).
integer esbsz
Exclusion set buffer size (>=0).
Output Parameters
integer errind
Error indicator.
integer isn
Number of names in the inclusion set.
integer is (isbsz)
Inclusion set.
integer esn
Number of names in the exclusion set.
integer es (esbsz)
Exclusion set.
Errors
None
Related Subroutines
v Set Invisibility Filter
v Inquire PHIGS Facilities
Use Inquire List of Available Generalized Drawing Primitives to inquire the available Generalized Drawing
Primitives (GDPs) for the specified workstation type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list gdps
List of GDPs.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer ngdp
Number of available GDPs.
integer gdpl
nth element in the list of GDP identifiers.
Errors
None
Use Inquire List of Available Generalized Drawing Primitives 3 to inquire the available Generalized
Drawing Primitives 3 (GDP 3s) for the specified workstation type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list gdps
List of available 3D GDPs.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
Output Parameters
integer errind
Error indicator.
integer ngdp
Number of available 3D GDPs.
integer gdpl
nth element in the list of 3D GDP identifiers.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire List of Available Generalized Structure Elements to inquire a list of available Generalized
Structure Element (GSE) identifiers for the specified workstation type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *gses
List of available GSEs.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer ngse
Number of available GSEs.
integer gsel
nth element in the list of available GSE identifiers.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire List of Available Workstation Types to inquire a list of available generic workstation types that
can be opened. The workstation types returned are those which your application may use as a workstation
type parameter to the Open Workstation subroutine
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *types
List of available workstation types.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer number
Number of workstation types.
integer wktyp
nth element in the list of available workstation types.
Errors
None
Related Subroutines
v Open Workstation
Use Inquire List of Color Indices to inquire the list of color indexes existing on the workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *colr_ind
List of color indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer ol
Number of color table entries.
integer coli
nth element in the list of color indexes.
Errors
None
Use Inquire List of Edge Indices to inquire the list of defined edge indexes existing on the workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *def_edge_ind
List of defined edge indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0).
Output Parameters
Errors
None
Related Subroutines
v Set edge Representation
Use Inquire List of Interior Indices to inquire the list of defined interior indexes existing on the workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *def_int_ind
List of defined interior indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer ol
Number of interior bundle table entries.
integer ii
nth element in the list of defined interior indexes.
Errors
None
Related Subroutines
v Set Interior Representation
Use Inquire List of Pattern Indices to inquire the list of defined pattern indexes existing on the workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *def_pat_ind
List of defined pattern indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0)
Input Parameters
integer errind
Error indicator.
integer ol
Number of pattern table entries.
integer pai
nth element in the list of pattern indexes.
Errors
None
Related Subroutines
v Set Pattern Representation
Use Inquire List of Polyline Indices to inquire the list of defined polyline indexes existing on the
workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *def_line_ind
List of defined polyline indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer ol
Number of polyline bundle table entries.
integer pli
nth element in the list of defined polyline indexes.
Errors
None
Related Subroutines
v Set Polyline Representation
Use Inquire List of Polymarker Indices to inquire the list of defined polymarker indexes existing on the
workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *def_marker_ind
List of defined polymarker indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
Errors
None
Related Subroutines
v Set Polymarker Representation
Use Inquire List of Text Indices to inquire the list of defined text indexes existing on the workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *def_text_ind
List of defined text indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Output Parameters
integer errind
Error indicator.
integer ol
Number of text bundle table entries.
integer txi
nth element in the list of defined text indexes.
Errors
None
Related Subroutines
v Set Text Representation
Use Inquire List of View Indices to inquire the list of defined view indexes existing on the workstation.
The graPHIGS API returns the view indexes in a list, which is ordered by view transformation input priority,
starting with the highest priority view.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *view_inds
List of defined view indexes.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer nvwix
Number of view bundle table entries.
integer viewi
nth element in the list of defined view indexes.
Errors
None
Related Subroutines
v Set View Representation
Use Inquire Locator Device State to inquire the current state of the specified locator device on the
specified workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
Language Bindings
pinq_loc_st (ws_id, loc_num, type, store, err_ind, op_mode, echo_switch, init_view_ind, init_loc_pos, prompt_echo,
echo_area, loc_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Pint *init_view_ind
Initial view index.
Ppoint *init_loc_pos
Initial locator position in WC.
Pint *prompt_echo
Prompt and echo type.
Plimit *echo_area
Echo area in DC.
Ploc_data **loc_data
Data record. The memory referenced by *loc_data is managed by the parameter store.
FORTRAN
PQLCS (wkid, lcdnr, type, mldr, errind, mode, esw, iviewi, ipx, ipy, pet, earea, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer iviewi
Initial view index.
real ipx
x coordinate of the initial locator position in WC.
real ipy
y coordinate of the initial locator position in WC.
integer pet
Prompt and echo type.
real earea(4)
Echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
integer character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Locator
v Initialize Locator 3
v Inquire Default Locator Device Data
v Inquire Default Locator Device Data 3
v Inquire Locator Device State 3
Use Inquire Locator Device State 3 to inquire the current state of the specified locator device on the
specified workstation. Returned values of type SET or REALIZED may be specified.
Language Bindings
pinq_loc_st3 (ws_id, loc_num, type, store, err_ind, op_mode, echo_switch, init_view_ind, init_loc_pos, prompt_echo,
echo_vol, loc_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint loc_num
Locator device number (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Pint *init_view_ind
Initial view index.
Ppoint3 *init_loc_pos
Initial locator position in WC.
Pint *prompt_echo
Prompt and echo type.
Plimit3 *echo_vol
Echo volume in DC.
Ploc_data3 **loc_data
Data record. The memory referenced by *loc_data is managed by the parameter store.
PQLCS3 (wkid, lcdnr, type, mldr, errind, mode, esw, iviewi, ipx, ipy, ipz, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer lcdnr
Locator device number (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
integer mldr
Dimension of data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer iviewi
Initial view index.
real ipx
x coordinate of the initial locator position in WC.
real ipy
y coordinate of the initial locator position in WC.
real ipz
z coordinate of the initial locator position in WC.
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
integer character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Locator
v Initialize Locator 3
v Inquire Default Locator Device Data
v Inquire Default Locator Device Data 3
Use Inquire Modeling Clipping Facilities to inquire the number and list of modeling clipping operators, and
the number of distinct planes in the modeling clipping volume.
Although this inquiry returns two operations (REPLACE and INTERSECT) and six as the number of
distinct planes in the modeling clipping volume, support differs by workstation. Therefore, use the
graPHIGS API Inquire Workstation Description (GPQWDT) to inquire these values for a specific
workstation.
If the inquired information is available, then the graPHIGS API sets the error indicator to zero and returns
the values in the output parameters. If the inquired information is unavailable, then the values returned in
the output parameters are invalid and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint *num_planes
Number of distinct half planes in the modeling clipping volume.
Pint_list *ops
List of modeling clipping operators (1=REPLACE, 2=INTERSECT).
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer n
Element list requested (>=0).
Output Parameters
Errors
None
Related Subroutines
v Set Modeling Clipping Indicator
v Set Modeling Clipping Volume
v Set Modeling Clipping Volume 3
Use Inquire More Simultaneous Events to inquire whether additional simultaneous events are waiting in
the input queue.
The graPHIGS API returns a value indicating whether additional events are waiting that occurred from the
same device trigger as the event previously in the current event report (CEV).
Your application can call this subroutine after your application issued the appropriate “Get” subroutine to
obtain the current event from the CEV.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the value
in the output parameter. If the information is unavailable, then the value returned in the output parameter is
unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pmore_simult_events *simult_events
More simultaneous events (0=PSIMULT_NO_MORE, 1=PSIMULT_MORE).
FORTRAN
Errors
None
Related Subroutines
v None
Use Inquire Number of Available Logical Input Devices to inquire the number of available logical input
devices at the specified workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
61 Specified Workstation Is Not Of Category Input Or Outin
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Input Parameters
Pint *err_ind
Error indicator.
Pnum_in *num_in
Number of input devices.
FORTRAN
Input Parameters
360 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer nlcd
Number of locator devices.
integer nskd
Number of stroke devices.
integer nvld
Number of valuator devices.
integer nchd
Number of choice devices.
integer npkd
Number of pick devices.
integer nstd
Number of string devices.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Number of Display Priorities Supported to inquire the number of display priorities supported for
the specified workstation type.
When posting a structure to a workstation, the application specifies a structure priority, which is a real
number between 0.0 and 1.0. The graPHIGS API traverses the structures in order, from lowest to highest
priority.
The graPHIGS API returns values indicating the total number of supported display priorities. For example,
if a workstation uses a 4-bit mask to keep track of priorities, then it is able to support only 16 different
priorities and must map the real number to one of 16 values. If a workstation can support a continuous
range of display priorities, then the inquiry returns a zero.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pint *num_pri
Number of display priorities supported.
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer nspsup
Number of display priorities supported.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
v Post Structure
Use Inquire Open Structure to inquire the identifier of the open structure.
If your application has opened a structure, then the open structure status is OPEN and the graPHIGS API
returns the identifier of the open structure as a structure identifier. If your application has not opened a
structure, then the graPHIGS API returns the open structure status as NONE and the structure identifier is
undefined.
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Popen_struct_status *status
Open structure status (0=PSTRUCT_NONE, 1=PSTRUCT_OPEN).
Pint *struct_id
Structure identifier.
FORTRAN
Output Parameters
integer errind
Error indicator.
integer stype
Open structure status (0=PNONST, 1=POPNST).
integer strid
Structure identifier.
Errors
None
Related Subroutines
v Open Structure
v Close Structure
Use Inquire Paths to Ancestors to inquire the ancestral paths of a specified structure. A path of ancestors
of a structure S is a list of ordered pairs: ((A1,E1),(A2,E2),...,(Am,Em&# 41;, (S,0)) where each ordered
pair consists of an identifier of a structure (Ax) that is an ancestor of the specified structure (S) and the
position of an execute structure-type element (Ex) that references the next structure in the path. Ancestor
structure A1 is the top of the path (i.e., it is not referenced by any other structure) and S is the bottom of
the path.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
201 Specified Structure Does Not Exist
207 Specified Path Depth < Zero
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Ppath_order order
Path order (0=PORDER_TOP_FIRST, 1=PORDER_BOTTOM_FIRST).
Pint depth
Path depth (>=0).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pelem_ref_list_list **paths
Structure path list. The memory referenced by *paths is managed by the parameter store.
FORTRAN
Input Parameters
integer strid
Structure identifier.
integer pthord
Path order (0=PPOTOP, 1=PPOBOT).
Output Parameters
integer errind
Error indicator.
integer ol
Number of paths available.
integer apthsz
Actual number of entries of the nth structure path returned.
integer paths(2,ipthsz)
nth structure path.
Errors
None
Related Subroutines
v Inquire Paths To Descendants
Use Inquire Paths to Descendants to inquire the descendant paths of a specified structure. A path of
descendants of a structure S is a list of ordered pairs: ((S,E0),(D1,E1),(D2,E2), ...,(Dn,0)), where each
ordered pair consists of an identifier of a structure (Dx) that is a descendant of the specified structure (S)
and the position of an execute structure-type element (Ex) that references the next structure in the path.
The specified structure S is the top of the path and descendant structure Dn is the bottom of the path (i.e.,
it does not reference any other structure).
The path order and path depth determine the portion of each path to be returned. Your application may
specify the path order as TOP FIRST or BOTTOM FIRST. The path depth determines the maximum
number of ordered pairs returned in any one path. Specifying a path depth of zero returns each path in its
entirety. When truncation occurs, the path order determines whether the graPHIGS API returns the head or
tail portion of the path. This truncation may result in two or more portions of paths having the same set of
element references. The graPHIGS API returns only one such portion so that all of the returned path
portions are distinct.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
201 Specified Structure Does Not Exist
207 Specified Path Depth < Zero
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Ppath_order order
Path order (0=PORDER_TOP_FIRST, 1=PORDER_BOTTOM_FIRST).
Pint depth
Path depth (>=0).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pelem_ref_list_list **paths
Structure path list. The memory referenced by *paths is managed by the parameter store.
FORTRAN
Input Parameters
integer strid
Structure identifier.
integer pthord
Path order (0=PPOTOP, 1=PPOBOT).
integer pthdep
Path depth (>=0).
integer ipthsz
Maximum number of path entries the buffer can contain.
integer n
Element of the list of paths.
Output Parameters
integer errind
Error indicator.
integer ol
Number of paths available.
integer apthsz
Actual number of entries of the nth structure path returned.
integer paths(2,ipthsz)
nth structure path.
None
Related Subroutines
v Inquire Paths To Ancestors
Use Inquire Pattern Facilities to inquire the pattern facilities for the specified workstation type.
The graPHIGS API returns the number of predefined pattern indexes for the specified workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pint *num_pred
Number of predefined pattern indexes.
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Pattern Representation to inquire the current pattern representation in the specified entry in
the pattern table of the specified workstation. Returned values of type SET or REALIZED may be
specified.
If the specified pattern index is not present in the pattern table on the workstation and the specified type of
returned values is REALIZED, then the graPHIGS API returns the representation for pattern index 1.
Pattern index 1 is present if your workstation supports interior style PATTERN.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
112 Pattern Index Value < ONE
101 Specified Representation Has Not Been Defined
109 Interior Style Pattern Not Supported On Workstation
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint index
Pattern index (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
Output Parameters
Pint *err_ind
Error indicator.
Ppat_rep **pat_rep
Pattern representation. The memory referenced by *pat_rep is managed by the parameter store.
FORTRAN
PQPAR (wkid, pai, type, dimx, dimy, errind, dx, dy, colia)
Input Parameters
integer wkid
Workstation identifier.
integer pai
Pattern index (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
integer dimx
Maximum column dimension in pattern array (>=0).
integer dimy
Maximum row dimension in pattern array (>=0).
Output Parameters
integer errind
Error indicator.
integer dx
Number of columns in pattern color index array.
integer dy
Number of rows in pattern color index array.
integer colia(dimx,dimy)
Pattern color index array.
Errors
None
Related Subroutines
v Set Pattern Representation
The graPHIGS API returns the maximum number of simultaneously open workstations, the maximum
number of simultaneously open archive files, the number of available names for name sets, the list of
Chapter 15. Inquire Subroutines 369
available character sets, the maximum length of a normal filter list for Incremental Spatial Search (ISS),
and the maximum length of an inverted filter list for ISS.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
The error indicator.
Pint *max_open_ws
Maximum number of simultaneously opened workstations.
Pint *max_open_ar
Maximum number of simultaneously opened archive files.
Pint *num_avail_names
Number of available names for name sets.
Pint_list *char_sets
List of available character sets.
Pint *num_elems_impl_list
Number of elements in the implementation list.
Pint *iss_norm_max
Maximum length of the normal filter list for Incremental Spacial Search (ISS).
Pint *iss_inv_max
Maximum length of the inverted filter list for Incremental Spacial Search (ISS).
FORTRAN
PQPHF (ncs, errind, simopw, simopa, namesn olcs, cs, nfln, ifln)
Input Parameters
integer ncs
Character set requested.
Output Parameters
Errors
None
Related Subroutines
v None
Use Inquire Pick Device State to inquire the current state of the specified pick device on the specified
workstation. Returned values of type SET or REALIZED may be specified.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
60 Specified Workstation Is Not Of Category Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_pick_st (ws_id, pick_num, type, store, err_ind, op_mode, echo_switch, pick_filter, init_status, init_pick,
prompt_echo, echo_area, pick_data, order)
Input Parameters
Pint ws_id
Workstation identifier.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Pfilter **pick_filter
Pick filter. The memory referenced by *pick_filter is managed by the parameter store.
Pin_status *init_status
Initial pick status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Ppick_path **init_pick
Initial pick path. The memory referenced by *init_pick is managed by the parameter store.
Pint *prompt_echo
Prompt and echo type.
Plimit *echo_area
Echo area in DC.
Ppick_data3 **pick_data
Data record. The memory referenced by *pick_data is managed by the parameter store.
Ppath_order *order
Pick path order (0=PORDER_TOP_FIRST, 1=PORDER_BOTTOM_FIRST).
FORTRAN
PQPKS (wkid, pkdnr, type, mldr, ipissz, ipessz, ippsz, errind, mode, esw, pissz, pins, pessz, pes, istat, ppd, pp, pet,
earea, ldr, datrec, ppordr)
Input Parameters
integer wkid
Workstation identifier.
integer pkdnr
Pick device number (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
integer mldr
Dimension of data record array (>=0).
integer ipissz
Pick inclusion set buffer size (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer pissz
Pick inclusion set size.
integer pins(ipissz)
Pick inclusion set.
integer pessz
Pick exclusion set size.
integer pes(ipessz)
Pick exclusion set.
integer istat
Initial pick status (1=POK, 2=PNPICK).
integer ppd
Initial pick path depth.
integer pp(3,ippsz)
Initial pick path.
integer pet
Prompt and echo type.
real earea(4)
Echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
integer ppordr
Pick path order (0=PPOTOP, 1=PPOBOT).
Errors
None
Related Subroutines
v Initialize Pick
v Initialize Pick 3
v Inquire Default Pick Device Data
v Inquire Default Pick Device Data 3
v Inquire Pick Device State 3
Use Inquire Pick Device State 3 to inquire the current state of the specified pick device on the specified
workstation. Returned values of type SET or REALIZED may be specified.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
60 Specified Workstation Is Not Of Category Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_pick_st3 (ws_id, pick_num, type, store, err_ind, op_mode, echo_switch, pick_filter, init_status, init_pick,
prompt_echo, echo_vol, pick_data, order)
Input Parameters
Pint ws_id
Workstation identifier.
Pint pick_num
Pick device number (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Pfilter **pick_filter
Pick filter. The memory referenced by *pick_filter is managed by the parameter store.
Pin_status *init_status
Initial pick status (1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Ppick_path **init_pick
Initial pick path. The memory referenced by *init_pick is managed by the parameter store.
FORTRAN
PQPKS3 (wkid, pkdnr, type, mldr, ipissz, ipessz, ippsz, errind, mode, esw, pissz, pins, pessz, pes, istat, ppd, pp, pet,
evol, ldr, datrec, ppordr)
Input Parameters
integer wkid
Workstation identifier.
integer pkdnr
Pick device number (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
integer mldr
Dimension of data record array (>=0).
integer ipissz
Pick inclusion set buffer size (>=0).
integer ipessz
Pick exclusion set buffer size (>=0).
integer ippsz
Pick path buffer size (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer pissz
Pick inclusion set size.
integer pins(ipissz)
Pick inclusion set.
integer pessz
Pick exclusion set size.
integer pes(ipessz)
Pick exclusion set.
Errors
None
Related Subroutines
v Initialize Pick
v Initialize Pick 3
v Inquire Default Pick Device Data
v Inquire Default Pick Device Data 3
v Inquire Pick Device State
Use Inquire Polyline Facilities to inquire the polyline facilities for the specified workstation type.
The graPHIGS API returns the total number of available line types and their identifiers; the number of
available line widths and the nominal, minimum, and maximum line width size; and the number of
predefined polyline bundle table indexes for the specified workstation type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pline_facs *fac
Polyline facilities.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
PQPLF (wtype, n, errind, nlt, lt, nlw, nomlw, rlwmin, rlwmax, nppli)
Input Parameters
integer wtype
Workstation type.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer nlt
Number of available line types.
integer lt
nth element in the list of available line types.
integer nlw
Number of available line widths.
real nomlw
Nominal line width in DC.
real rlwmin
Minimum value of a line width in DC.
real rlwmax
Maximum value of a line width in DC.
integer nppli
Number of predefined polyline indexes.
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Polyline Representation to inquire the current polyline representation in the specified entry in
the polyline bundle table of the specified workstation. Returned values of type SET or REALIZED may be
specified.
If the specified polyline index is not present in the polyline bundle table on the workstation and the
specified type of returned values is REALIZED, then the graPHIGS API returns the representation for
polyline index 1.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
101 Specified Representation Has Not Been Defined
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint index
Polyline index (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Output Parameters
Pint *errind
Error indicator.
Pline_bundle *line_rep
Polyline representation.
Input Parameters
integer wkid
Workstation identifier.
integer pli
Polyline index (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
Output Parameters
integer errind
Error indicator.
integer ltype
Line type.
real lwidth
Line width scale factor.
integer coli
Polyline color index.
Errors
None
Related Subroutines
v Set Polyline Representation
Use Inquire Polymarker Facilities to inquire the polymarker facilities for the specified workstation type.
The graPHIGS API returns data indicating the total number of available marker types and their identifiers;
the nominal, minimum, and maximum marker sizes; and the number of predefined polymarker bundle table
indexes for the specified workstation type. If the graPHIGS API returns a value of zero for the number of
available marker sizes, then the workstation supports a continuous range of marker sizes.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pmarker_facs *fac
Polymarker facilities.
Pint num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
PQPMF (wtype, n, errind, nmt, mt, nms, nomms, rmsmin, rmsmax, nppmi)
Input Parameters
integer wtype
Workstation type.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer nmt
Number of available marker types.
integer mt
nth element in the list of available marker types.
integer nms
Number of available marker widths.
real nomms
Nominal marker width in DC.
real rmsmin
Minimum value of a marker width in DC.
real rmsmax
Maximum value of a marker width in DC.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Polymarker Representation to inquire the current polymarker representation in the specified
entry in the polymarker bundle table of the specified workstation. Returned values of type SET or
REALIZED may be specified.
If the specified polymarker index is not present in the polyline bundle table on the workstation and the
specified type of returned values is REALIZED, then the graPHIGS API returns the representation for
polymarker index 1.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
100 Bundle Index Value Is Less Than One
101 Specified Representation Has Not Been Defined
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint index
Polymarker index (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Output Parameters
Pint *err_ind
Error indicator.
Pmarker_bundle *marker_rep
Polymarker representation.
Input Parameters
integer wkid
Workstation identifier.
integer pmi
Polymarker index (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
Output Parameters
integer errind
Error indicator.
integer mtype
Marker type.
real mszsf
Marker size scale factor.
integer coli
Polymarker color index.
Errors
None
Related Subroutines
v Set Polymarker Representation
Use Inquire Posted Structures to inquire the structure networks which have been identified for display on
the specified workstation by the Post Structure subroutine.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
59 Specified Workstation Does Not Have Output Capability
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pposted_struct_list *struct_ids
List of structures posted to the workstation.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
integer n
List element requested (>=0).
Output Parameters
integer errind
Error indicator.
integer number
Number of structures posted to the workstation.
integer strid
Identifier of the nth structure posted to the workstation.
real priort
Input priority of the nth structure posted to the workstation.
Errors
None
Related Subroutines
v Post Structure
v Unpost All Structures
v Unpost Structure
The graPHIGS API returns the predefined color specification corresponding to the specified index.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
113 Color Index Value < ZERO
102 Representation Has Not Been Predefined On This Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint colr_ind
Predefined color index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pcolr_rep *colr_rep
Predefined color representation.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer pci
Predefined color index (>=0).
integer ccsbsz
Color component specification buffer size (>=0).
`Output Parameters
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Predefined Edge Representation to inquire the predefined settings for the edge attributes in
the edge bundle table of the specified workstation type.
The graPHIGS API returns the edge flag setting, edge line type, edge width scale factor, and edge color
for the predefined edge bundle table. The returned attributes correspond to the requested bundle table
index.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
100 Bundle Index Value Is Less Than One
102 Representation Has Not Been Predefined On This Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint index
Predefined edge index (>=1).
Output Parameters
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer pedi
Predefined edge index (>=1).
Output Parameters
integer errind
Error indicator.
integer edflag
Edge flag (0=POFF, 1=PON).
integer edtype
Edge type.
real ewidth
Edge width scale factor.
integer coli
Edge color index.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Predefined Interior Representation to inquire the predefined settings for the interior attributes
in the interior bundle table of the specified workstation type.
The graPHIGS API returns the interior style, the style index, and the interior color index for the predefined
interior bundle table. The returned attributes correspond to the requested bundle table index. Possible
interior styles include: HOLLOW, SOLID, PATTERN, HATCH, and EMPTY.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint index
Predefined interior index (>=1).
Output Parameters
Pint *err_ind
Error indicator.
Pint_bundle *bundle
Predefined interior representation.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer pii
Predefined interior index (>=1).
Output Parameters
integer errind
Error indicator.
integer style
Interior style (0=PHOLLO, 1=PSOLID, 2=PPATTR, 3=PHATCH, 4=PISEMP).
integer stylid
Interior style index.
integer coli
Interior color index.
Errors
None
Use Inquire Predefined Pattern Representation to inquire a predefined pattern table entry.
For a given workstation type, the graPHIGS API returns the values corresponding to the specified index of
the predefined pattern table. The graPHIGS API returns the pattern color index array.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
112 Pattern Index Value < ONE
102 Representation Has Not Been Predefined On This Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint index
Predefined pattern index (>=1).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Ppat_rep **pat_rep
Predefined pattern representation. The memory referenced by *pat_rep is managed by the
parameter store.
FORTRAN
Output Parameters
integer errind
Error indicator.
integer dx
x-axis dimension of the pattern color index array.
integer dy
y-axis dimension of the pattern color index array.
integer colia (dimx,dimy)
Pattern color index array.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Predefined Polyline Representation to inquire the predefined polyline attributes in an entry of
the bundle table for a specified workstation type.
The graPHIGS API returns the polyline type, width, and color for the specified index of the specified
workstation type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
100 Bundle Index Value Is Less Than One
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint index
Predefined polyline index (>=1).
Output Parameters
Pint *err_ind
Error indicator.
Pline_bundle *bundle
Predefined polyline representation.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer pli
Predefined polyline index (>=1).
Output Parameters
integer errind
Error indicator.
integer ltype
Line type.
real lwidth
Line width scale factor.
integer coli
Polyline color index.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Predefined Polymarker Representation to inquire the predefined polymarker attributes
corresponding to the specified entry in the predefined bundle table of the specified workstation type.
The graPHIGS API returns the polymarker type, size, and color for the specified index of the specified
workstation type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
100 Bundle Index Value Is Less Than One
102 Representation Has Not Been Predefined On This Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint index
Predefined polymarker index (>=1).
Output Parameters
Pint *errind
Error indicator.
Pmarker_bundle *bundle
Predefined polymarker representation.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer pmi
Predefined polymarker index (>=1).
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Predefined Text Representation to inquire the predefined text attributes corresponding to the
specified entry in the text bundle table for the specified workstation type.
The graPHIGS API returns text font, text precision, character expansion factor, character spacing, and text
color for the specified entry. Possible text precisions include: STRING, CHARACTER, and STROKE.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
100 Bundle Index Value Is Less Than One
102 Representation Has Not Been Predefined On This Workstation
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint index
Predefined text index (>=1).
392 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
Output Parameters
Pint *err_ind
Error indicator.
Ptext_bundle *bundle
Predefined text representation.
FORTRAN
Input Parameters
integer wtype
Workstation type.
integer ptxi
Predefined text index (>=1).
Output Parameters
integer errind
Error indicator.
integer font
Text font.
integer prec
Text precision. (0=PSTRP, 1=PCHARP, 2=PSTRKP).
real chxp
Character expansion factor.
real chsp
Character spacing.
integer coli
Text color index.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Predefined View Representation to inquire the predefined view attributes corresponding to the
specified view table entry for the specified workstation type.
The graPHIGS API returns the view orientation matrix, the view mapping matrix, the view clipping limits,
the x to y clipping indicator, and the back and front clipping indicators for the specified entry.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint index
Predefined view index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pview_rep3 *view
View representation.
FORTRAN
PQPVWR (wtype, pvwi, errind, vwormt, vwmpmt, vwcplm, xyclpi, bclipi, fclipi)
Input Parameters
integer wtype
Workstation type
integer pvwi
Predefined view index (>=0).
Input Parameters
integer errind
Error indicator.
real vwormt(4,4)
View orientation matrix.
real vwmpmt(4,4)
View mapping matrix.
real vwcplm(6)
View clipping limits in NPC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Set of Open Workstations to inquire the set of currently open workstations.
The graPHIGS API returns data indicating the total number of open workstation identifiers and the
requested set of workstation identifiers.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *open_ws_ids
List of workstation identifiers.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Output Parameters
integer errind
Error indicator.
integer ol
Number of open workstations.
integer wkid
nth member in the set of open workstations.
Errors
None
Related Subroutines
v Open Workstation
v Close Workstation
Use Inquire Set of Workstations to Which Posted to inquire the list of workstations to which the specified
structure is posted.
This subroutine returns the number of workstations and the workstation identifiers to which the specified
structure is posted.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
201 Specified Structure Does Not Exist
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pint_list *ws
List of workstations to which the structure is posted.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
Input Parameters
integer strid
Structure identifier.
integer n
Set member requested (>=0).
Output Parameters
integer errind
Error indicator.
integer ol
Number of workstations to which the structure is posted.
integer wkid
nth member in the set of workstations to which the structure is posted.
Errors
None
Related Subroutines
v None
Use Inquire String Device State to inquire the current state of the specified string device on the specified
workstation.
The graPHIGS API returns the current values of the specified device.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
Language Bindings
pinq_string_st (ws_id, string_num, store, err_ind, op_mode, echo_switch, init_string, prompt_echo, echo_area,
string_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint string_num
String device number (>=1).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
char **init_string
Initial string. The memory referenced by *init_string is managed by the parameter store.
Pint *prompt_echo
Prompt and echo type.
Plimit *echo_area
Echo area in DC.
Pstring_data **string_data
Data record. The memory referenced by *string_data is managed by the parameter store.
FORTRAN
PQSTS (wkid, stdnr, mldr, errind, mode, esw, lostr, istr, pet, earea, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer mldr
Dimension of the data record array (>=0).
FORTRAN Subset
PQSTS (wkid, stdnr, mldr, errind, mode, esw, lostr, istr, pet, earea, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer mldr
Dimension of the data record array = ??>(>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer lostr
Number of characters returned.
character*80 istr
Initial string.
integer pet
Prompt and echo type.
Errors
None
Related Subroutines
v Initialize String
v Initialize String 3
v Inquire Default String Device Data
v Inquire Default String Device Data 3
v Inquire String Device State 3
Use Inquire String Device State 3 to inquire the current state of the specified string device on the specified
workstation.
The graPHIGS API returns the current values of the specified device.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_string_st3 (ws_id, string_num, store, err_ind, op_mode, echo_switch, init_string, prompt_echo, echo_vol,
string_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint string_num
String device number (>=1).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
char **init_string
Initial string. The memory referenced by *init_string is managed by the parameter store.
Pint *prompt_echo
Prompt and echo type.
Plimit3 *echo_vol
Echo volume in DC.
Pstring_data3 **string_data
Data record. The memory referenced by *string_data is managed by the parameter store.
FORTRAN
PQSTS3 (wkid, stdnr, mldr, errind, mode, esw, lostr, istr, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer mldr
Dimension of the data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer lostr
Number of characters returned.
character*(*) istr
Initial string.
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
FORTRAN Subset
PQSTS3 (wkid, stdnr, mldr, errind, mode, esw, lostr, istr, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer stdnr
String device number (>=1).
integer mldr
Dimension of the data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer lostr
Number of characters returned.
character*80 istr
Initial string.
integer pet
Prompt and echo type
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
The data record.
Errors
None
Related Subroutines
v Initialize String
v Initialize String 3
v Inquire Default String Device Data
v Inquire Default String Device Data 3
v Inquire String Device State
Use Inquire Stroke Device State to inquire the current state of the specified stroke device on the specified
workstation. Returned values of type SET or REALIZED may be specified.
The graPHIGS API returns the current values for the specified device.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_stroke_st (ws_id, stroke_num, type, store, err_ind, op_mode, echo_switch, init_view_ind, init_stroke,
prompt_echo, echo_area, stroke_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
Pint *init_view_ind
Initial view index.
Ppoint_list **init_stroke
Initial stroke. The memory referenced by *init_stroke is managed by the parameter store.
FORTRAN
PQSKS (wkid, skdnr, type, n, mldr, errind, mode, esw, iviewi, np, ipxa, ipya, pet, earea, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
integer n
Maximum number of points (>=0).
integer mldr
Dimension of the data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer iviewi
Initial view index.
integer np
Number of points.
real ipxa(n)
x coordinates of the initial stroke in WC.
real ipya(n)
y coordinates of the initial stroke in WC.
integer pet
Prompt and echo type.
real earea(4)
Echo area in DC. (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
None
Related Subroutines
v Initialize Stroke
v Initialize Stroke 3
v Inquire Default Stroke Device Data
v Inquire Default Stroke Device Data 3
v Inquire Stroke Device State 3
Use Inquire Stroke Device State 3 to inquire the current state of the specified stroke device on the
specified workstation. Returned values of type SET or REALIZED may be specified.
The graPHIGS API returns the current values for the specified device.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_stroke_st3 (ws_id, stroke_num, type, store, err_ind, op_mode, echo_switch, init_view_ind, init_stroke,
prompt_echo, echo_vol, stroke_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint stroke_num
Stroke device number (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
FORTRAN
PQSKS (wkid, skdnr, type, n, mldr, errind, mode, esw, iviewi, np, ipxa, ipya, ipza, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer skdnr
Stroke device number (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
integer n
Maximum number of points (>=0).
integer mldr
Dimension of the data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
integer iviewi
Initial view index.
integer np
Number of points.
real ipxa(n)
x coordinates of the initial stroke in WC.
real ipya(n)
y coordinates of the initial stroke in WC.
Errors
None
Related Subroutines
v Initialize Stroke
v Initialize Stroke 3
v Inquire Default Stroke Device Data
v Inquire Default Stroke Device Data 3
v Inquire Stroke Device State
Use Inquire Structure Identifiers to inquire the currently existing structure identifiers in the centralized
structure store.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
FORTRAN
Input Parameters
integer n
Set member requested (>=0).
Output Parameters
integer errind
Error indicator.
integer number
Number of structure identifiers.
integer strid
nth structure identifier.
Errors
None
Related Subroutines
v None
Use Inquire Structure State Value to inquire the structure state of the graPHIGS API. The structure state is
either Structure Open (STOP) or Structure Closed (STCL).
Language Bindings
pinq_struct_st (struct_st)
Output Parameters
Pstruct_st *struct_st
Structure state value (0=PSTRUCT_ST_STCL, 1=PSTRUCT_ST_STOP).
FORTRAN
PQSTRS (strsta)
Output Parameters
Errors
None
Related Subroutines
v Open Structure
v Close Structure
Use Inquire Structure Status to inquire whether or not the specified structure exists in the centralized
structure store. If the specified structure does not exist, then the graPHIGS API sets the structure status
indicator to NON-EXISTENT. If the structure exists and contains no elements, then the graPHIGS API sets
the structure status indicator to EMPTY; otherwise, the graPHIGS API sets the structure status indicator to
NOT EMPTY.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
structure status value in the output parameter. If the information is unavailable, then the value returned in
the output parameter is unpredictable and the graPHIGS API sets the error indicator to the following error:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint struct_id
Structure identifier.
Output Parameters
Pint *err_ind
Error indicator.
Pstruct_status *status
Structure status identifier (0=PSTRUCT_STATUS_NON_EXISTENT,
1=PSTRUCT_STATUS_EMPTY, 2=PSTRUCT_STATUS_NOT_EMPTY).
FORTRAN
Input Parameters
integer strid
Structure identifier.
Output Parameters
Errors
None
Related Subroutines
v None
Use Inquire System State Value to inquire the system state of the graPHIGS API. The system state is
either PHIGS Open (PHOP) or PHIGS Closed (PHCL).
Language Bindings
pinq_sys_st (sys_st)
Output Parameters
Psys_st *sys_st
System state value (0=PSYS_ST_PHCL, 1=PSYS_ST_PHOP).
FORTRAN
PQSYS (syssta)
Output Parameters
integer syssta
System state value (0=PPHCL, 1=PPHOP).
Errors
None
Related Subroutines
v Close PHIGS
v Open PHIGS
Use Inquire Text Extent to inquire the extent of the specified character string in the local 2D text coordinate
system. The graPHIGS API uses the specified text attributes for the specified workstation type to compute
the extent. STROKE precision is assumed. The text position is (0,0) in the local 2D text coordinate system.
The concatenation offset, with a suitable modeling transformation applied to account for the character up
vector, indicates the text position for the concatenation of a subsequent text output primitive in the local 2D
text coordinate system. This includes for text paths RIGHT and LEFT, a suitable modification to adjust for
the intercharacter spacing of the last character as specified by the character spacing parameter.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
62 This Information Not Available For MO Workstation Type
106 Specified Font Not Available For Requested Text Precision
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint text_font
Text font.
Pfloat char_expan
Character expansion factor.
Pfloat char_space
Character spacing.
Pfloat char_ht
Character height.
Ptext_path text_path
Text path (0=PPATH_RIGHT, 1=PPATH_LEFT, 2=PPATH_UP, 3=PPATH_DOWN).
Phor_text_align hor_text_align
Horizontal text alignment (0=PHOR_NORM, 1=PHOR_LEFT, 2=PHOR_CTR, 3=PHOR_RIGHT).
Pvert_text_align vert_text_align
Vertical text alignment (0=PVERT_NORM, 1=PVERT_TOP, 2=PVERT_CAP, 3=PVERT_HALF,
4=PVERT_BASE, 5=PVERT_BOTTOM).
const char *char_string
Character string.
Output Parameters
FORTRAN
PQTXX (wktype, font, chxp, chsp, chh, txp, txalh, txalv, str, errind, txexrx, txexry, copx, copy)
Input Parameters
integer wktype
Workstation type.
integer font
Text font.
real chxp
Character expansion factor.
real chsp
Character spacing.
real chh
Character height.
integer txp
Text path (0=PRIGHT, 1=PLEFT, 2=PUP, 3=PDOWN).
integer txalh
Horizontal text alignment (0=PAHNOR, 1=PALEFT, 2=PACENT, 3=PARITE).
integer txalv
Vertical text alignment (0=PAVNOR, 1=PATOP, 2=PACAP, 3=PAHALF, 4=PABASE, 5=PABOTT).
character*(*) str
Character string.
Output Parameters
integer errind
Error indicator.
real txexrx(2)
x coordinates of the text extent rectangle.
real txexry(2)
y coordinates of the text extent rectangle.
real copx
x coordinate of the concatenation offset.
real copy
y coordinate of the concatenation offset.
FORTRAN Subset
PQTXXS (wktype, font, chxp, chsp, chh, txp, txalh, txalv, lstr, str, errind, txexrx, txexry, copx, copy)
Output Parameters
integer errind
Error indicator.
real txexrx(2)
x coordinates of the text extent rectangle.
real txexry(2)
y coordinates of the text extent rectangle.
real copx
x coordinate of the concatenation offset.
real copy
y coordinate of the concatenation offset.
Errors
None
Related Subroutines
v None
Use Inquire Text Facilities to inquire the text facilities for the specified workstation type.
If the graPHIGS API returns a value of zero for the number of available character heights, then the
workstation supports a continuous range of character heights. If the graPHIGS API returns a value of zero
for the number of available character expansion factors, then the workstation supports a continuous range
of character expansion factors.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Pint num_elems_appl_list
Number of elements in the application list (>=0).
Pint start_ind
Starting index (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Ptext_facs *fac
Text facilities.
Pint *num_elems_impl_list
Number of elements in the implementation list.
FORTRAN
PQTXF (wtype, n, errind, nfpp, font, prec, nchh, minchh, maxchh, nchx, minchx, maxchx, nptxi)
Input Parameters
integer wtype
Workstation type.
integer n
List element requested (>=0).
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
v Set Text Representation
v Text
v Text 3
Use Inquire Text Representation to inquire the current text attributes contained in the specified entry in the
text bundle table of the specified workstation. Returned values of type SET or REALIZED may be
specified.
The graPHIGS API returns data indicating the text font and precision, character expansion factor and
spacing, and text color of the specified entry. Possible text precisions include: STRING, CHARACTER, and
STROKE.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint index
Text index (>=1).
Pinq_type type
Type of returned values (0=PINQ_SET, 1=PINQ_REALIZED).
Output Parameters
Pint *err_ind
Error indicator.
Ptext_bundle *text_rep
Text representation.
FORTRAN
PQTXR (wkid, txi, type, errind, font, prec, chxp, chsp, coli)
Input Parameters
integer wkid
Workstation identifier.
integer txi
Text index (>=1).
integer type
Type of returned values (0=PSET, 1=PREALI).
Output Parameters
integer errind
Error indicator.
integer font
Text font.
integer prec
Text precision (0=PSTRP, 1=PCHARP, 2=PSTRKP).
real chxp
Character expansion factor.
Errors
None
Related Subroutines
v Set Text Representation
Use Inquire Valuator Device State to inquire the current state of the specified valuator device on the
specified workstation.
The graPHIGS API returns the values of the specified device. The format and content of these values
returned by the graPHIGS API depends on the prompt/echo type defined in the subroutine that initializes
the input device.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_val_st (ws_id, val_num, store, err_ind, op_mode, echo_switch, init_value, prompt_echo, echo_area, val_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint val_num
Valuator device number (>=1).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
FORTRAN
PQVLS (wkid, vldnr, mldr, errind, mode, esw, ival, pet, earea, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer vldnr
Valuator device number (>=1).
integer mldr
Dimension of the data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
real ival
Initial value.
integer pet
Prompt and echo type.
real earea(4)
Echo area in DC (XMIN, XMAX, YMIN, YMAX).
integer ldr
Number of array elements in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Use Inquire Valuator Device State 3 to inquire the current state of the specified valuator device on the
specified workstation.
The graPHIGS API returns the values of the specified device. The format and content of these values
returned by the graPHIGS API depends on the prompt/echo type defined in the subroutine that initializes
the input device.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
61 Specified Workstation Is Not Of Category Input Or Outin
250 Specified Device Not Available On Workstation
Language Bindings
pinq_val_st3 (ws_id, val_num, store, err_ind, op_mode, echo_switch, init_value, prompt_echo, echo_vol, val_data)
Input Parameters
Pint ws_id
Workstation identifier.
Pint val_num
Valuator device number (>=1).
Pstore store
Handle to the store object. The graPHIGS API uses an object of type Store to facilitate the use of
subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
Pop_mode *op_mode
Operating mode (0=POP_REQ, 1=POP_SAMPLE, 2=POP_EVENT).
Pecho_switch *echo_switch
Echo switch (0=PSWITCH_NO_ECHO, 1=PSWITCH_ECHO).
FORTRAN
PQVLS3 (wkid, vldnr, mldr, errind, mode, esw, ival, pet, evol, ldr, datrec)
Input Parameters
integer wkid
Workstation identifier.
integer vldnr
Valuator device number (>=1).
integer mldr
Dimension of the data record array (>=0).
Output Parameters
integer errind
Error indicator.
integer mode
Operating mode (0=PREQU, 1=PSAMPL, 2=PEVENT).
integer esw
Echo switch (0=PNECHO, 1=PECHO).
real ival
Initial value.
integer pet
Prompt and echo type.
real evol(6)
Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer ldr
Number of array elements used in the data record.
character*80 datrec(mldr)
Data record.
Errors
None
Related Subroutines
v Initialize Valuator
v Initialize Valuator 3
v Inquire Default Valuator Device Data
Use Inquire View Facilities to inquire the view facilities for the specified workstation type.
The graPHIGS API returns data indicating the number of predefined view indexes on the workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
number in the output parameter. If the information is unavailable, then the value returned in the output
parameter is unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
57 Specified Workstation Is Of Category MI
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pint *num_view_ind
Number of predefined view indexes.
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer npvwi
Number of predefined view indexes.
None
Related Subroutines
v Inquire Workstation Connection And Type
v Set View Representation
Use Inquire View Representation to inquire the current and/or requested values from the specified view
table entry of the specified workstation.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
114 View Index Value < ZERO
101 Specified Representation Has Not Been Defined
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pint view_ind
View index requested (>=0).
Output Parameters
Pint *err_ind
Error indicator.
Pupd_st *upd_st
Viewing transformation update state (0=PUPD_NOT_PEND, 1=PUPD_PEND).
Pview_rep3 *cur_view
Current view representation.
Pview_rep3 *req_view
Requested view representation
FORTRAN
PQVWR (wkid, viewi, curq, errind, vwupd, vwormt, vwmpmt, vwcplm, xyclpi, bclipi, fclipi)
Output Parameters
integer errind
Error indicator.
integer vwupd
Viewing transformation update state (0=PNPEND, 1=PPEND).
real vwormt(4,4)
View orientation matrix.
real vwmpmt(4,4)
View mapping matrix.
real vwcplm(6)
View clipping limits in NPC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).
integer xyclpi
x to y clipping indicator (0=PNCLIP, 1=PCLIP).
integer bclipi
Back clipping indicator (0=PNCLIP, 1=PCLIP).
integer fclipi
Front clipping indicator (0=PNCLIP, 1=PCLIP).
Errors
None
Related Subroutines
v Set View Representation
Use Inquire Workstation Category to inquire the category of the specified workstation type.
The graPHIGS API returns the category of the workstation type indicating whether it is output (OUTPUT),
input (INPUT), output and input (OUTIN), metafile output (MO), or metafile input (MI).
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
workstation category in the output parameter. If the information is unavailable, then the value returned in
the output parameter is unpredictable and the graPHIGS API sets the error indicator to one of the following
errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
Input Parameters
Pint ws_type
Workstation type.
Input Parameters
Pint *err_ind
Error indicator
Pws_cat *cat
Workstation category (0=PCAT_OUT, 1=PCAT_IN, 2=PCAT_OUTIN, 3=PCAT_MO, 4=PCAT_MI).
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer wkcat
Workstation category (0=POUTPT, 1=PINPUT, 2=POUTIN, 3=PMO, 4=PMI).
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Workstation Classification to inquire the display classification of the specified workstation type.
The graPHIGS API returns a value indicating the type of display technology utilized by the specified
workstation type. Possible classifications include: VECTOR, RASTER, and OTHER.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
display classification in the output parameter. If the information is unavailable, then the value returned in
the output parameter is unpredictable and the graPHIGS API sets the error indicator to one of the following
errors:
2 Function Requires State (PHOP,*,*,*)
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pws_class *ws_class
Workstation classification (0=PCLASS_VEC, 1=PCLASS_RASTER, 2=PCLASS_OTHER).
FORTRAN
Input Parameters
integer wtype
Workstation type.
Output Parameters
integer errind
Error indicator.
integer vrtype
Workstation classification (0=PVECTR, 1=PRASTR, 2=POTHWK).
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
Use Inquire Workstation Connection and Type to inquire the connection identifier and the realized
workstation type of the specified workstation identifier. The realized workstation type is the type assigned
by the graPHIGS API when the workstation is created by the Open Workstation subroutine.
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pstore store
Handle to the Store identifier. The graPHIGS API uses an object of type Store to facilitate the use
of subroutines which return complex data. See Create Store ( CREATE STORE (PHOP,*,*,*))
subroutine for details on how the graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
void **conn_id
Connection identifier. The memory referenced by *conn_id is managed by the parameter store.
Pint *ws_type
Workstation type.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
integer conid
Connection identifier.
integer wtype
Workstation type.
Errors
None
Related Subroutines
Use Inquire Workstation Connection and Type to inquire the connection identifier and the realized
workstation type of the specified workstation identifier. The realized workstation type is the type assigned
by the graPHIGS API when the workstation is created by the Open Workstation subroutine.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 FUNCTION REQUIRES STATE (PHOP,WSOP,*,*)
54 SPECIFIED WORKSTATION IS NOT OPEN
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Pstore store
Handle to the Store identifier. The graPHIGS API uses an object of type Store to facilitate the use
of subroutines which return complex data. See Create Store subroutine for details on how the
graPHIGS API uses this parameter on inquiries.
Output Parameters
Pint *err_ind
Error indicator.
void **conn_id
Connection identifier. The memory referenced by *conn_id is managed by the parameter store.
Pint *ws_type
Workstation type.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
Errors
None
Related Subroutines
None
Use Inquire Workstation State Table Lengths to inquire the maximum number of entries supported for
workstation tables for the specified workstation type.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
2 Function Requires State (PHOP,*,*,*)
52 Workstation Type Not Recognized By Implementation
51 Information Not Available For Generic Workstation Type
59 Specified Workstation Does Not Have Output Capability
62 This Information Not Available For MO Workstation Type
Language Bindings
Input Parameters
Pint ws_type
Workstation type.
Output Parameters
Pint *err_ind
Error indicator.
Pws_st_tables *lengths
Lengths of workstation tables.
FORTRAN
PQWKSL (wtype, errind, mplbte, mpmbte, mtxbte, minbte, medbte, mpai, mcoli, vwtbi)
Input Parameters
Output Parameters
integer errind
Error indicator.
integer mplbte
Maximum number of polyline bundle table entries.
integer mpmbte
Maximum number of polymarker bundle table entries.
integer mtxbte
Maximum number of text bundle table entries.
integer minbte
Maximum number of interior bundle table entries.
integer medbte
Maximum number of edge bundle table entries.
integer mpai
Maximum number of pattern indexes.
integer mcoli
Maximum number of color indexes.
integer vwtbi
Maximum number of view table indexes.
Errors
None
Related Subroutines
v Inquire Workstation Connection And Type
v Set Color Representation
v Set edge Representation
v Set Interior Representation
v Set Polyline Representation
v Set Polymarker Representation
v Set Text Representation
v Set View Representation
Use Inquire Workstation State Value to inquire the current workstation state of the graPHIGS API. The
workstation state is either Workstation Open (WSOP) or Workstation Closed (WSCL). then at least one
workstation is open. If the state is WSCL, then no workstations are open.
Language Bindings
pinq_ws_st (ws_st)
Output Parameters
Pws_st *ws_st
Workstation state value (0=PWS_ST_WSCL, 1=PWS_ST_WSOP).
FORTRAN
PQWKST (wksta)
Output Parameters
integer wksta
Workstation state value (0=PWSCL, 1=PWSOP).
Errors
None
Related Subroutines
v Close Workstation
v Open Workstation
Use Inquire Workstation Transformation to inquire the current and requested workstation transformation
values of a specified workstation.
If your application has not updated the workstation, then the graPHIGS API returns a value of PENDING.
In this case, the requested values reflect either the default settings or the settings established in the
application by the Set Workstation Window, Set Workstation Window 3, Set Workstation Viewport and Set
Workstation Viewport 3 subroutines. The current values reflect the workstation’s current transformation
values. As soon as the workstation is updated, the requested and current values are the same and the
state is NOT PENDING. The values returned by the graPHIGS API are the window and viewport
definitions.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
Language Bindings
Output Parameters
Pint *err_ind
Error indicator.
Pupd_st *upd_st
Workstation transformation update state (0=PUPD_NOT_PEND, 1=PUPD_PEND).
Plimit *req_win_lim
Requested workstation window limits in NPC.
Plimit *cur_win_lim
Current workstation window limits in NPC.
Plimit *req_vp_lim
Requested workstation viewport limits in DC.
Plimit *cur_vp_lim
Current workstation viewport limits in DC.
FORTRAN
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
integer tus
Workstation transformation update state (0=PNPEND, 1=PPEND).
real rwindo(4)
Requested workstation window limits in NPC (RWXMIN, RWXMAX, RWYMIN, RWYMAX).
real cwindo(4)
Current workstation window limits in NPC. (CWXMIN, CWXMAX, CWYMIN, CWYMAX).
real rviewp(4)
Requested workstation viewport limits in DC (RVXMIN, RVXMAX, RVYMIN, RVYMAX).
real cviewp(4)
Requested workstation viewport limits in DC (CVXMIN, CVXMAX, CVYMIN, CVYMAX).
Errors
None
Related Subroutines
v Inquire Workstation Transformation 3
v Set Workstation Viewport
v Set Workstation Viewport 3
Use Inquire Workstation Transformation 3 to inquire the current and requested workstation transformation
values of a specified workstation.
If your application has not updated the workstation, then the graPHIGS API returns a value of PENDING.
In this case, the requested values reflect either the default settings or the settings established in the
application by the Set Workstation Window, Set Workstation Window 3, Set Workstation Viewport, and Set
Workstation Viewport 3, subroutines. The current values reflect the workstation’s current transformation
values. As soon as the workstation is updated, the requested and current values are the same and the
state is NOT PENDING. The values returned by the graPHIGS API are the window and viewport
definitions.
If the information is available, then the graPHIGS API sets the error indicator to zero and returns the
values in the output parameters. If the information is unavailable, then the values returned in the output
parameters are unpredictable and the graPHIGS API sets the error indicator to one of the following errors:
3 Function Requires State (PHOP,WSOP,*,*)
54 Specified Workstation Is Not Open
57 Specified Workstation Is Of Category MI
Language Bindings
Input Parameters
Pint ws_id
Workstation identifier.
Output Parameters
Pint *err_ind
Error indicator.
Pupd_st *upd_st
Workstation transformation update state (0=PUPD_NOT_PEND, 1=PUPD_PEND).
Plimit3 *req_win_lim
Requested workstation window limits in NPC.
Plimit3 *cur_win_lim
Current workstation window limits in NPC.
Plimit3 *req_vp_lim
Requested workstation viewport limits in DC.
Plimit3 *cur_vp_lim
Current workstation viewport limits in DC.
Input Parameters
integer wkid
Workstation identifier.
Output Parameters
integer errind
Error indicator.
integer tus
Workstation transformation update state (0=PNPEND, 1=PPEND).
real rwindo(6)
Requested workstation window limits in NPC (RWXMIN, RWXMAX, RWYMIN, RWYMAX,
RWZMIN, RWZMAX).
real cwindo(6)
Current workstation window limits in NPC (CWXMIN, CWXMAX, CWYMIN, CWYMAX, CWZMIN,
CWZMAX).
real rviewp(6)
Requested workstation viewport limits in DC (RVXMIN, RVXMAX, RVYMIN, RVYMAX, RVZMIN,
RVZMAX).
real cviewp(6)
Requested workstation viewport limits in DC (CVXMIN, CVXMAX, CVYMIN, CVYMAX, CVZMIN,
CVZMAX).
Errors
None
Related Subroutines
v Set Workstation Viewport
v Set Workstation Viewport 3
v Set Workstation Window
v Set Workstation Window 3
3-by-3 Matrix
Let the elements of an ISO PHIGS 3x3 matrix be:
_ _
| a b c |
| d e f |
|_g h i _|
C Binding
The ISO PHIGS C binding specifies that these elements be stored such that:
m[0][0] = a; m[0][1] = b; m[0][2] = c;
m[1][0] = d; m[1][1] = e; m[1][2] = f;
m[2][0] = g; m[2][1] = h; m[2][2] = i;
FORTRAN Binding
The ISO PHIGS FORTRAN binding specifies that these elements be stored such that:
p[1,1] = a p[2,1] = b p[3,1] = c
p[1,2] = d p[2,2] = e p[3,2] = f
p[1,3] = g p[2,3] = h p[3,3] = i
4-by-4 Matrix
Let the elements of an ISO PHIGS 4 X 4 matrix be:
_ _
| a b c d |
| e f g h |
| i j k l |
|_m n o p_|
C Binding
The ISO PHIGS C binding specifies that these elements be stored such that:
FORTRAN Binding
The ISO PHIGS FORTRAN binding specifies that these elements be stored such that:
t[1,1] = a t[2,1] = b t[3,1] = c t[4,1] = d
t[1,2] = e t[2,2] = f t[3,2] = g t[4,2] = h
t[1,3] = i t[2,3] = j t[3,3] = k t[4,3] = l
t[1,4] = m t[2,4] = n t[3,4] = o t[4,4] = p
PENIL=1: (Nil)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Nil,
v IL = 0
v IA = ()
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
PEPL3=2: (Polyline 3)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Polyline 3,
v IL = 1
v IA(1) = number of points in the polyline 3
v RL = 3*IA(1)
v RA = elements 1 through IA(1) contain the x components of the polyline 3
elements IA(1)+1 through 2*IA(1) contain the y components of the polyline 3
elements 2*IA(1)+1 through 3*IA(1) contain the z components of the polyline 3
v SL = 0
v LSTR = ()
v STR = ()
PEPL=3: (Polyline)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Polyline,
v IL = 1
v IA(1) = number of points in the polyline
v RL = 2*IA(1)
v RA = elements 1 through IA(1) contain the x components of the polyline
elements IA(1)+1 through 2*IA(1) contain the y components of the polyline
v SL = 0
v LSTR = ()
v STR = ()
PEPM3=4: (Polymarker 3)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Polymarker 3,
v IL = 1
v IA(1) = number of points in the polymarker 3
v RL = 3*IA(1)
© Copyright IBM Corp. 1994, 2002 437
v RA = elements 1 through IA(1) contain the x components of the polymarker 3
elements IA(1)+1 through 2*IA(1) contain the y components of the polymarker 3
elements 2*IA(1)+1 through 3*IA(1) contain the z components of the polymarker 3
v SL = 0
v LSTR = ()
v STR = ()
PEPM=5: (Polymarker)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Polymarker,
v IL = 1
v IA(1) = number of points in the polymarker
v RL = 2*IA(1)
v RA = elements 1 through IA(1) contain the x components of the polymarker
elements IA(1)+1 through 2*IA(1) contain the y components of the polymarker
v SL = 0
v LSTR = ()
v STR = ()
PETX3=6: (Text 3)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Text 3,
v IL = 0
v IA = ()
v RL = 9
v RA(1) = x coordinate of text point (MC)
v RA(2) = y coordinate of text point (MC)
v RA(3) = z coordinate of text point (MC)
v RA(4) = x coordinate of first text direction vector (MC)
v RA(5) = y coordinate of first text direction vector (MC)
v RA(6) = z coordinate of first text direction vector (MC)
v RA(7) = x coordinate of second text direction vector (MC)
v RA(8) = y coordinate of second text direction vector (MC)
v RA(9) = z coordinate of second text direction vector (MC)
v SL = 1
v LSTR(1) = length of string
v STR(1) = string
PETX=7: (Text)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Text,
v IL = 0
v IA = ()
v RL = 2
v RA(1) = x coordinate of text point (MC)
v RA(2) = y coordinate of text point (MC)
v SL = 1
v LSTR(1) = length of string
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Annotation Text Relative
3,
v IL = 0
v IA = ()
v RL = 6
v RA(1) = x coordinate of reference point (MC)
v RA(2) = y coordinate of reference point (MC)
v RA(3) = z coordinate of reference point (MC)
v RA(4) = x coordinate of annotation point (NPC)
v RA(5) = y coordinate of annotation point (NPC)
v RA(6) = z coordinate of annotation point (NPC)
v SL = 1
v LSTR(1) = length of string
v STR(1) = string
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Annotation Text
Relative,
v IL = 0
v IA = ()
v RL = 4
v RA(1) = x coordinate of reference point (MC)
v RA(2) = y coordinate of reference point (MC)
v RA(3) = x coordinate of annotation point (NPC)
v RA(4) = y coordinate of annotation point (NPC)
v SL = 1
v LSTR(1) = length of string
v STR(1) = string
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Fill Area 3,
v IL = 1
v IA(1) = number of points in the fill area 3
v RL = 3*IA(1)
v RA = elements 1 through IA(1) contain the x components of the fill area 3
elements IA(1) +1 through 2*IA(1) contain the y components of the fill area 3
elements 2* IA(1)+1 through 3*IA(1) contain the z components of the fill area 3
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Fill Area Set 3,
v IL = number of point lists in fill area set 3
v IA() = array of end indexes for point lists in fill area set 3
v RL = 3*(IA(IL))
v RA = elements 1 through (IA(IL)) contain the x components of the fill area set 3
elements IA(IL) +1 through 2*(IA(IL)) contain the y components of the fill area set 3
elements 2* IA(IL)+1 through 3*(IA()) contain the z components of the fill area set 3
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Fill Area Set,
v IL = number of point lists in fill area set
v IA() = array of end indexes for point lists in fill area set
v RL = 2*(IA(IL))
v RA = elements 1 through (IA(IL)) contain the x components of the fill area set
elements IA(IL) +1 through 2*(IA(IL)) contain the y components of the fill area set set
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Cell Array 3,
v IL = 2+(IA(1)*IA(2))
v IA(1) = x dimension of cell index array
v IA(2) = y dimension of cell index array
v IA(3) to IA(IA(1)*IA(2) +2) = cell index array in column major order (e.g.,IA(3) = COLIA(1,1), IA(4) =
COLIA(2,1), ... )
v RL = 9
v RA(1) = x coordinate of P (MC)
v RA(2) = y coordinate of P (MC)
v RA(3) = z coordinate of P (MC)
v RA(4) = x coordinate of Q (MC)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Cell Array,
v IL = 2+(IA(1)*IA(2))
v IA(1) = x dimension of cell index array
v IA(2) = y dimension of cell index array
v IA(3) to IA((IA(1)*IA(2))+2) = cell index array in column major order (e.g.,IA(3) = COLIA(1,1), IA(4) =
COLIA(2,1), ... )
v RL = 4
v RA(1) = x coordinate of P (MC)
v RA(2) = y coordinate of P (MC)
v RA(3) = x coordinate of Q (MC)
v RA(4) = y coordinate of Q (MC)
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Generalized Drawing
Primitive 3,
v IL = 2
v IA(1) = number of points in the generalized drawing primitive 3
v IA(2) = generalized drawing primitive 3 identifier
v RL = 3*IA(1)
v RA = elements 1 through IA(1) contain the x components of the GDP3 point list
elements IA(1) +1 through 2*IA(1) contain the y components of the GDP 3 point list
elements 2*IA(1)+1 through 3*IA(1) contain the z components of the GDP 3 point list
v SL = number of 80 character data records(LDR for PGDP3 subroutine)
v LSTR(1) to LSTR(SL) = 80
v STR(1) to STR(SL) = GDP data records (DATREC(1) to DATREC(SL) for PGDP3 subroutine)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Generalized Drawing
Primitive,
v IL = 2
v IA(1) = number of points in the generalized drawing primitive
v IA(2) = generalized drawing primitive identifier
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Polyline Index,
v IL = 1
v IA(1) = polyline index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Polymarker Index,
v IL = 1
v IA(1) = polymarker index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Text Index,
v IL = 1
v IA(1) = text index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Interior Index,
v IL = 1
v IA(1) = interior index
v RL = 0
v RA = ()
v SL = 0
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Edge Index,
v IL = 1
v IA(1) = edge index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Linetype,
v IL = 1
v IA(1) = linetype
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Linewidth Scale
Factor,
v IL = 0
v IA = ()
v RL = 1
v RA(1) = linewidth scale factor
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Polyline Color
Index,
v IL = 1
v IA(1) = polyline color index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Marker Type,
v IL = 1
v IA(1) = marker type
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Marker Size Scale
Factor,
v IL = 0
v IA = ()
v RL = 1
v RA(1) = marker size scale factor
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Polymarker Color
Index,
v IL = 1
v IA(1) = polymarker color index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Text Font,
v IL = 1
v IA(1) = text font
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Text Precision,
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Character
Expansion Factor,
v IL = 0
v IA = ()
v RL = 1
v RA(1) = character expansion factor
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Character Spacing,
v IL = 0
v IA = ()
v RL = 1
v RA(1) = character spacing
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Text Color Index,
v IL = 1
v IA(1) = text color index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Character Height,
v IL = 0
v IA = ()
v RL = 1
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Character Up
Vector,
v IL = 0
v IA = ()
v RL = 2
v RA(1) = x component of character up vector
v RA(2) = y component of character up vector
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Text Path,
v IL = 1
v IA(1) = text path (PRIGHT,PLEFT,PUP,PDOWN)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Text Alignment,
v IL = 2
v IA(1) = horizontal text alignment (PAHNOR,PALEFT,PACENT,PARITE)
v IA(2) = vertical text alignment (PAVNOR,PATOP,PACAP,PAHALF,PABASE,PABOTT)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Annotation Text
Character Height,
v IL = 0
v IA = ()
v RL = 1
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Annotation Text
Character Up Vector,
v IL = 0
v IA = ()
v RL = 2
v RA(1) = x component of annotation text character up vector
v RA(2) = y component of annotation text character up vector
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Annotation Text
Path,
v IL = 1
v IA(1) = annotation text path (PRIGHT,PLEFT,PUP,PDOWN)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Annotation Text
Alignment,
v IL = 2
v IA(1) = horizontal text alignment (PAHNOR,PALEFT,PACENT,PARITE)
v IA(2) = vertical text alignment (PAVNOR,PATOP,PACAP,PAHALF,PABASE,PABOTT)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Annotation Style,
v IL = 1
v IA(1) = annotation style
v RL = 0
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Interior Style,
v IL = 1
v IA(1) = interior style (PHOLLO,PSOLID,PPATTR,PHATCH,PISEMP)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Interior Style Index,
v IL = 1
v IA(1) = interior style index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Interior Color Index,
v IL = 1
v IA(1) = interior color index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Edge Flag,
v IL = 1
v IA(1) = edge flag (POFF,PON)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Edgetype,
v IL = 1
v IA(1) = edgetype
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Edgewidth Scale
Factor,
v IL = 0
v IA = ()
v RL = 1
v RA(1) = edgewidth scale factor
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Edge Color Index,
v IL = 1
v IA(1) = edge color index
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Pattern Size,
v IL = 0
v IA = ()
v RL = 2
v RA(1) = x component of pattern size (MC)
v RA(2) = y component of pattern size (MC)
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Pattern Reference
Point,
v IL = 0
v IA = ()
v RL = 2
v RA(1) = x coordinate of pattern reference point (MC)(i.e.RFX)
v RA(2) = y coordinate of pattern reference point (MC)(i.e.RFY)
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Add Names To Set,
v IL = number of names in the set
v IA = array of name set elements
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Remove Names From
Set,
v IL = number of names in the set
v IA = array of name set elements
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Individual ASF,
v IL = 2
v IA(1) = attribute identifier
(PLN,PLWSC,PPLCI,PMK,PMKSC,PPMCI,PTXFN,PTXPR,PCHXP,PCHSP,PTXCI,
PIS,PISI,PICI,PEDFG,PEDT,PEWSC,PEDCI)
v IA(2) = aspect source flag value (PBUNDL,PINDIV)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set HLHSR Identifier,
v IL = 1
v IA(1) = HLHSR identifier
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Local
Transformation 3,
v IL = 1
v IA(1) = composition type (PCPRE,PCPOST,PCREPL)
v RL = 16
v RA(1) = (1,1) component of local transformation matrix
v RA(2) = (2,1) component of local transformation matrix
v RA(3) = (3,1) component of local transformation matrix
v RA(4) = (4,1) component of local transformation matrix
v RA(5) = (1,2) component of local transformation matrix
v RA(6) = (2,2) component of local transformation matrix
v RA(7) = (3,2) component of local transformation matrix
v RA(8) = (4,2) component of local transformation matrix
v RA(9) = (1,3) component of local transformation matrix
v RA(10) = (2,3) component of local transformation matrix
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Local
Transformation,
v IL = 1
v IA(1) = composition type (PCPRE,PCPOST,PCREPL)
v RL = 9
v RA(1) = (1,1) component of local transformation matrix
v RA(2) = (2,1) component of local transformation matrix
v RA(3) = (3,1) component of local transformation matrix
v RA(4) = (1,2) component of local transformation matrix
v RA(5) = (2,2) component of local transformation matrix
v RA(6) = (3,2) component of local transformation matrix
v RA(7) = (1,3) component of local transformation matrix
v RA(8) = (2,3) component of local transformation matrix
v RA(9) = (3,3) component of local transformation matrix
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Global
Transformation 3,
v IL = 0
v IA = ()
v RL = 16
v RA(1) = (1,1) component of global transformation matrix
v RA(2) = (2,1) component of global transformation matrix
v RA(3) = (3,1) component of global transformation matrix
v RA(4) = (4,1) component of global transformation matrix
v RA(5) = (1,2) component of global transformation matrix
v RA(6) = (2,2) component of global transformation matrix
v RA(7) = (3,2) component of global transformation matrix
v RA(8) = (4,2) component of global transformation matrix
v RA(9) = (1,3) component of global transformation matrix
v RA(10) = (2,3) component of global transformation matrix
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Global
Transformation,
v IL = 0
v IA = ()
v RL = 9
v RA(1) = (1,1) component of global transformation matrix
v RA(2) = (2,1) component of global transformation matrix
v RA(3) = (3,1) component of global transformation matrix
v RA(4) = (1,2) component of global transformation matrix
v RA(5) = (2,2) component of global transformation matrix
v RA(6) = (3,2) component of global transformation matrix
v RA(7) = (1,3) component of global transformation matrix
v RA(8) = (2,3) component of global transformation matrix
v RA(9) = (3,3) component of global transformation matrix
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Modeling Clipping
Volume 3,
v IL = 2
v IA(1) = modeling clipping operator
v IA(2) = number of modeling clipping half-spaces in list
v RL = 6*IA(2)
v FOR i = 0 TO IA(2)—1
v RA((6*i)+1) = x coordinate of point defining plane of half-space (MC)
v RA((6*i)+2) = y coordinate of point defining plane of half-space (MC)
v RA((6*i)+3) = z coordinate of point defining plane of half-space (MC)
v RA((6*i)+4) = dx component of normal vector defining the plane of half-space (MC)
v RA((6*i)+5) = dy component of normal vector defining the plane of half-space (MC)
v RA((6*i)+6) = dz component of normal vector defining the plane of half-space (MC)
v SL = 0
v LSTR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Modeling Clipping
Volume,
v IL = 2
v IA(1) = modeling clipping operator
v IA(2) = number of modeling clipping half-spaces in list
v RL = 4*IA(2)
v FOR i = 0 TO IA(2)—1
v RA((4*i)+1) = x coordinate of point defining plane of half-space (MC)
v RA((4*i)+2) = y coordinate of point defining plane of half-space (MC)
v RA((4*i)+3) = dx component of normal vector defining the plane of half-space (MC)
v RA((4*i)+4) = dy component of normal vector defining the plane of half-space (MC)
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Modeling Clipping
Indicator,
v IL = 1
v IA(1) = modeling clipping indicator (PNCLIP, PCLIP)
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Restore Modeling
Clipping Volume,
v IL = 0
v IA = ()
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set View Index,
v IL = 1
v IA(1) = view index
v RL = 0
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Execute Structure,
v IL = 1
v IA(1) = structure identifier
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
PELB=67: (Label)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Label,
v IL = 1
v IA(1) = label identifier
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Application Data,
v IL = 0
v IA = ()
v RL = 0
v RA = ()
v SL = number of application data records (LDR for PAP subroutine)
v LSTR(1) to LSTR(SL) = 80
v STR(1) to STR(SL) = application data records (DATREC(1) to DATREC(SL) for PAP subroutine)
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Generalized Structure
Element,
v IL = 1
v IA(1) = generalized structure element identifier
v RL = 0
v RA = ()
v SL = number of GSE data records (LDR for PGSE subroutine)
v LSTR(1) to LSTR(SL) = 80
Output parameters for STRUCTURE CONTENT DATA RECORD for element type Set Pick Identifier,
v IL = 1
v IA(1) = pick identifier
v RL = 0
v RA = ()
v SL = 0
v LSTR = ()
v STR = ()
union Pchoice_pets {
struct Pchoice_pet_r1 {
Pint number; /* number of whatever */
} pet_r1;
struct Pchoice_pet_r2 {
Pint num_prompts; /* number of prompts */
Ppr_switch *prompts; /* array of prompts */
} pet_r2;
struct Pchoice_pet_r3 {
Pint num_strings; /* number of choice strings */
char **strings; /* array of choice strings */
} pet_r3;
struct Pchoice_pet_r4 {
Pint num_strings; /* number of choice strings */
char **strings; /* array of choice strings */
} pet_r4;
struct Pchoice_pet_r5 {
Pint struct_id; /* structure identifier */
Pint num_pick_ids; /* number of pick identifiers */
Pint *pick_ids; /* array of pick identifiers */
} pet_r5;
} pets;
} Pchoice_data;
typedef struct {
union Pchoice3_pets {
struct Pchoice3_pet_r1 {
Pint number; /* number of whatever */
} pet_r1;
struct Pchoice3_pet_r2 {
Pint num_prompts; /* number of prompts */
Ppr_switch *prompts; /* array of prompts */
} pet_r2;
struct Pchoice3_pet_r3 {
Pint num_strings; /* number of choice strings */
char **strings; /* array of choice strings */
} pet_r3;
struct Pchoice3_pet_r5 {
Pint struct_id; /* struct identifier */
Pint num_pick_ids; /* number of pick identifiers */
Pint *pick_ids; /* array of pick identifiers */
} pet_r5;
} pets;
} Pchoice_data3;
typedef union {
} Pcolr_rep;
typedef union {
struct Pescape_in_r1 {
char *string; /* escape registration dependent */
} escape_in_r1;
} Pescape_in_data;
typedef union {
struct Pescape_out_r1 {
char *string; /* escape registration dependent */
} escape_out_r1;
struct Pescape_out_r2 {
Pint ws_id; /* workstation identifier */
char *string; /* escape output data record */
} escape_out_r2;
} Pescape_out_data;
typedef union {
struct Pgdp_r1 {
char *string; /* registration dependent */
} gdp_r1;
} Pgdp_data;
typedef union {
struct Pgdp3_r1 {
char *string; /* registration dependent */
} gdp3_r1;
} Pgdp_data3;
typedef union {
struct Pgse_r1 {
char *string; /* registration dependent */
} gse_r1;
} Pgse_data;
typedef union {
} Pitem_data;
typedef struct {
union Ploc_pets {
struct Ploc_pet_r1 {
Pint number; /* number of whatever */
} pet_r1;
struct Ploc_pet_r2 {
Pint number; /* number of whatever */
} pet_r2;
struct Ploc_pet_r3 {
Pint number; /* number of whatever */
} pet_r3;
struct Ploc_pet_r4 {
Pline_attrs line_attrs; /* polyline attributes */
} pet_r4;
struct Ploc_pet_r5 {
Pline_fill_ctrl_flag line_fill_ctrl_flag; /* control flag */
union Ploc_attrs {
Pline_attrs line_attrs; /* polyline attributes */
} attrs;
} pet_r5;
struct Ploc_pet_r6 {
Pint number; /* number of whatever */
} pet_r6;
} pets;
} Ploc_data;
typedef struct {
union Ploc3_pets {
struct Ploc3_pet_r1 {
Pint number; /* number of whatever */
} pet_r1;
struct Ploc3_pet_r2 {
Pint number; /* number of whatever */
} pet_r2;
struct Ploc3_pet_r3 {
Pint number; /* number of whatever */
} pet_r3;
struct Ploc3_pet_r4 {
Pline_attrs line_attrs; /* polyline attributes */
} pet_r4;
struct Ploc3_pet_r5 {
Pline_fill_ctrl_flag line_fill_ctrl_flag; /* control flag */
union Ploc3_attrs {
Pline_attrs line_attrs; /* polyline attributes */
struct Ploc3_fill_set {
Pint_attrs int_attrs; /* interior attributes */
Pedge_attrs edge_attrs; /* edge attributes */
} fill_set;
} attrs;
} pet_r5;
struct Ploc3_pet_r6 {
Pint number; /* number of whatever */
} pet_r6;
} pets;
} Ploc_data3;
union Ppick_pets {
struct Ppick_pet_r1 {
char *string; /* implementation dependent */
} pet_r1;
} pets;
} Ppick_data;
typedef struct {
union Ppick3_pets {
struct Ppick3_pet_r1 {
char *string; /* implementation dependent */
} pet_r1;
} pets;
} Ppick_data3;
typedef struct {
Pint in_buf_size;
Pint init_pos;
union Pstring_pets {
struct Pstring_pet_r1 {
char **string; /* implementation dependent */
} pet_r1;
} pets;
} Pstring_data;
typedef struct {
Pint in_buf_size;
Pint init_pos;
union Pstring3_pets {
struct Pstring3_pet_r1 {
char **string; /* implementation dependent */
} pet_r1;
} pets;
} Pstring_data3;
typedef struct {
union Pstroke_pets {
struct Pstroke_pet_r1 {
char **string; /* implementation dependent */
} pet_r1;
struct Pstroke_pet_r2 {
char **string; /* implementation dependent */
} pet_r2;
struct Pstroke_pet_r3 {
Pmarker_attrs marker_attrs; /* marker attributes */
} pet_r3;
struct Pstroke_pet_r4 {
Pline_attrs line_attrs; /* line attributes */
} pet_r4;
} pets;
} Pstroke_data;
typedef struct {
union Pstroke3_pets {
struct Pstroke3_pet_r1 {
char **string; /* implementation dependent */
} pet_r1;
struct Pstroke3_pet_r2 {
char **string; /* implementation dependent */
} pet_r2;
struct Pstroke3_pet_r3 {
Pmarker_attrs marker_attrs; /* marker attributes */
} pet_r3;
struct Pstroke3_pet_r4 {
Pline_attrs line_attrs; /* line attributes */
} pet_r4;
} pets;
} Pstroke_data3;
union Pval_pets {
struct Pval_pet_r1 {
char **string; /* implementation dependent */
} pet_r1;
} pets;
} Pval_data;
typedef struct {
union Pval3_pets {
struct Pval3_pet_r1 {
char **string; /* implementation dependent */
} pet_r1;
} pets;
} Pval_data3;
typedef struct {
} Par_file;
typedef struct {
} Par_file_list;
typedef enum {
PST_ARCL
PST_AROP
} Par_st;
typedef enum {
/*--Paspect ASPECT--------------------------------------------------*/
typedef enum {
PASPECT_LINETYPE
PASPECT_LINEWIDTH
PASPECT_LINE_COLR_IND
PASPECT_MARKER_TYPE
PASPECT_MARKER_SIZE
PASPECT_MARKER_COLR_IND
PASPECT_TEXT_FONT
PASPECT_TEXT_PREC
PASPECT_CHAR_EXPAN
PASPECT_CHAR_SPACE
PASPECT_TEXT_COLR_IND
PASPECT_INT_STYLE
PASPECT_INT_STYLE_IND
PASPECT_INT_COLR_IND
PASPECT_EDGE_FLAG
PASPECT_EDGETYPE
PASPECT_EDGEWIDTH
PASPECT_EDGE_COLR_IND
} Paspect;
typedef enum {
PATTR_LINE
PATTR_MARKER
PATTR_TEXT
PATTR_INT
PATTR_EDGE
} Pattrs;
typedef struct {
} Pcieluv;
typedef enum {
PIND_NO_CLIP
PIND_CLIP
} Pclip_ind;
typedef enum {
PAVAIL_MONOCHR
PAVAIL_COLR
} Pcolr_avail;
typedef enum {
PTYPE_PRECONCAT
PTYPE_POSTCONCAT
PTYPE_REPLACE
} Pcompose_type;
typedef enum {
PRES_MAINTAIN
PRES_ABANDON
PRES_UPD
} Pconf_res;
typedef enum {
PFLAG_COND
PFLAG_ALWAYS
} Pctrl_flag;
/*--Pdata DATA------------------------------------------------------*/
typedef struct {
} Pdata;
typedef enum {
PDC_METRES
PDC_OTHER
} Pdc_units;
typedef enum {
PDEFER_ASAP
PDEFER_BNIG
PDEFER_BNIL
PDEFER_ASTI
PDEFER_WAIT
} Pdefer_mode;
} Pdisp_space_size;
typedef struct {
} Pdisp_space_size3;
typedef enum {
PSURF_NOT_EMPTY
PSURF_EMPTY
} Pdisp_surf_empty;
typedef struct {
} Pdyns_structs;
typedef struct {
} Pdyns_ws_attrs;
typedef enum {
PDYN_IRG
PDYN_IMM
PDYN_CBS
typedef enum {
PSWITCH_NO_ECHO
PSWITCH_ECHO
} Pecho_switch;
typedef struct {
} Pedge_attrs;
typedef struct {
} Pedge_bundle;
typedef struct {
} Pedge_facs;
typedef union {
struct Pelem_text3 {
Ppoint3 pos; /* text position */
Pvec3 dir[2] /* direction vectors */
char *char_string; /* char string */
} text3;
struct Pelem_anno_text_rel3 {
Ppoint3 ref_point; /* reference point */
Pvec3 offset; /* annotation offset */
char *char_string; /* character string */
} anno_text_rel3;
struct Pelem_anno_text_rel {
Ppoint ref_point; /* reference point */
Pvec offset; /* annotation offset */
char *char_string; /* character string */
} anno_text_rel;
struct Pelem_cell_array3 {
Pparal paral; /* parallelogram */
Ppat_rep colr_array; /* color array */
} cell_array3;
struct Pelem_cell_array {
Prect rect; /* rectangle */
Ppat_rep colr_array; /* color array */
} cell_array;
struct Pelem_gdp3 {
Pint id; /* GDP3 id */
Ppoint_list3 point_list; /* point list */
Pgdp_data3 data; /* data record */
} gdp3;
struct Pelem_gdp {
Pint id; /* GDP id */
Ppoint_list point_list; /* point list */
Pgdp_data data; /* data record */
} gdp;
struct Pelem_pat_ref_point_vecs {
Ppoint3 ref_point; /* pattern refer. point */
Pvec3 ref_vec[2] /* vectors */
} pat_ref_point_vecs;
struct Pelem_asf {
Paspect id; /* attribute id */
Pasf source; /* attribute source */
} asf;
struct Pelem_local_tran3 {
Pcompose_type compose_type; /* composition type */
Pmatrix3 matrix; /* matrix */
} local_tran3;
struct Pelem_local_tran {
Pcompose_type compose_type; /* composition type */
struct Pelem_model_clip3 {
Pint op; /* operator */
Phalf_space_list3 half_spaces; /*half space list*/
} model_clip3;
struct Pelem_model_clip {
Pint op; /* operator */
Phalf_space_list half_spaces; /*half space list*/
} model_clip;
struct Pelem_gse {
Pint id; /* GSE id */
Pgse_data data; /* GSE data record */
} gse;
} Pelem_data;
typedef struct {
} Pelem_ref;
typedef struct {
} Pelem_ref_list;
typedef struct {
} Pelem_ref_list_list;
typedef enum {
PELEM_ALL
PELEM_NIL
PELEM_POLYLINE3
PELEM_POLYLINE
PELEM_POLYMARKER3
PELEM_POLYMARKER
PELEM_TEXT3
PELEM_TEXT
} Pelem_type_list;
typedef enum {
PERR_OFF
PERR_ON
} Perr_mode;
/*--Pfilter FILTER--------------------------------------------------*/
typedef struct {
} Pfilter;
typedef struct {
} Pfilter_list;
typedef struct {
} Pfloat_size;
typedef struct {
} Pfloat_size3;
typedef struct {
} Pgse_id_dep;
typedef struct {
} Pgse_id_dep_list;
typedef struct {
} Phalf_space;
typedef struct {
} Phalf_space3;
typedef struct {
} Phalf_space_list;
typedef struct {
} Phalf_space_list3;
typedef struct {
} Phls;
typedef enum {
PHOR_NORM
PHOR_LEFT
PHOR_CTR
PHOR_RIGHT
typedef struct {
} Phsv;
typedef enum {
PINQ_SET
PINQ_REALIZED
} Pinq_type;
typedef struct {
} Pint_attrs;
typedef struct {
} Pint_bundle;
typedef struct {
} Pint_facs;
typedef struct {
} Pint_list;
typedef struct {
} Pint_size;
typedef struct {
} Pint_size3;
typedef enum {
PSTYLE_HOLLOW
PSTYLE_SOLID
PSTYLE_PAT
PSTYLE_HATCH
PSTYLE_EMPTY
} Pint_style;
typedef enum {
PIN_NONE
PIN_LOC
PIN_STROKE
PIN_VAL
PIN_CHOICE
PIN_PICK
PIN_STRING
} Pin_class;
typedef enum {
PIN_STATUS_NONE
PIN_STATUS_OK
PIN_STATUS_NO_IN
} Pin_status;
/*--Plimit LIMIT----------------------------------------------------*/
typedef struct {
} Plimit;
} Plimit3;
typedef struct {
} Pline_attrs;
typedef struct {
} Pline_bundle;
typedef struct {
} Pline_facs;
typedef enum {
PFLAG_LINE
PFLAG_FILL
PFLAG_FILL_SET
} Pline_fill_ctrl_flag;
typedef struct {
typedef struct {
} Pmarker_bundle;
typedef struct {
} Pmarker_facs;
/*--Pmatrix MATRIX--------------------------------------------------*/
typedef enum {
PMODE_NIVE
PMODE_UWOR
PMODE_UQUM
} Pmod_mode;
typedef enum {
PSIMULT_NO_MORE
PSIMULT_MORE
} Pmore_simult_events;
typedef struct {
typedef enum {
PSTRUCT_NONE
PSTRUCT_OPEN
} Popen_struct_status;
typedef enum {
POP_REQ
POP_SAMPLE
POP_EVENT
} Pop_mode;
/*--Pparal PARALLELOGRAM--------------------------------------------*/
typedef struct {
Ppoint3 p; /* point p */
Ppoint3 q; /* point q */
Ppoint3 r; /* point r */
} Pparal;
typedef enum {
PORDER_TOP_FIRST
PORDER_BOTTOM_FIRST
} Ppath_order;
typedef struct {
} Ppat_rep;
typedef struct {
} Ppick_path;
typedef struct {
/*--Ppoint POINT----------------------------------------------------*/
typedef struct {
Pfloat x; /* x coordinate */
Pfloat y; /* y coordinate */
} Ppoint;
typedef struct {
Pfloat x; /* x coordinate */
Pfloat y; /* y coordinate */
Pfloat z; /* z coordinate */
} Ppoint3;
typedef struct {
} Ppoint_list;
typedef struct {
} Ppoint_list3;
typedef struct {
} Ppoint_list_list;
typedef struct {
} Ppoint_list_list3;
typedef struct {
} Pposted_struct;
typedef struct {
} Pposted_struct_list;
typedef enum {
PTYPE_PARAL
PTYPE_PERSPECT
} Pproj_type;
typedef enum {
PPR_OFF
PPR_ON
} Ppr_switch;
/*--Prect RECTANGLE-------------------------------------------------*/
typedef struct {
Ppoint p; /* point p */
Ppoint q; /* point q */
} Prect;
typedef enum {
PFLAG_DEL
PFLAG_KEEP
} Pref_flag;
typedef enum {
PFLAG_POSTPONE
PFLAG_PERFORM
} Pregen_flag;
typedef enum {
PPRI_HIGHER
PPRI_LOWER
} Prel_pri;
Pfloat red;
Pfloat green;
Pfloat blue;
} Prgb;
typedef enum {
PDIR_BACKWARD
PDIR_FORWARD
} Psearch_dir;
typedef enum {
PSEARCH_STATUS_FAILURE
PSEARCH_STATUS_SUCCESS
} Psearch_status;
/*--Pstore STORE----------------------------------------------------*/
typedef enum {
PNET_CSS
PNET_AR
} Pstruct_net_source;
typedef enum {
PSTRUCT_ST_STCL
PSTRUCT_ST_STOP
} Pstruct_st;
typedef enum {
PSTRUCT_STATUS_NON_EXISTENT
PSTRUCT_STATUS_EMPTY
PSTRUCT_STATUS_NOT_EMPTY
} Pstruct_status ;
typedef enum {
PSYS_ST_PHCL
PSYS_ST_PHOP
} Psys_st;
typedef struct {
} Ptext_align;
typedef struct {
} Ptext_bundle;
typedef struct {
} Ptext_facs;
typedef struct {
} Ptext_font_prec;
typedef enum {
PPATH_RIGHT
PPATH_LEFT
PPATH_UP
PPATH_DOWN
} Ptext_path;
typedef enum {
PPREC_STRING
PPREC_CHAR
PPREC_STROKE
} Ptext_prec;
typedef enum {
/*--Pvec VECTOR-----------------------------------------------------*/
typedef struct {
} Pvec;
typedef struct {
} Pvec3;
typedef enum {
PVERT_NORM
PVERT_TOP
PVERT_CAP
PVERT_HALF
PVERT_BASE
PVERT_BOTTOM
}Pvert_text_align;
typedef struct {
} Pview_map;
typedef struct {
} Pview_map3;
typedef struct {
} Pview_rep;
typedef struct {
} Pview_rep3;
typedef enum {
PVISUAL_ST_CORRECT
PVISUAL_ST_DEFER
PVISUAL_ST_SIMULATED
} Pvisual_st;
typedef enum {
PCAT_OUT
PCAT_IN
PCAT_OUTIN
PCAT_MO
PCAT_MI
} Pws_cat;
typedef enum {
PCLASS_VEC
PCLASS_RASTER
PCLASS_OTHER
} Pws_class;
typedef enum {
PWS_INDEP
PWS_DEP
} Pws_dep_ind;
typedef enum {
PWS_ST_WSCL
PWS_ST_WSOP
} Pws_st;
} Pws_st_tables;
Function identifiers
/* Function identifiers */
(Ref #1.)
/* Workstation Errors */
#define PE_BAD_CONN_ID (50) /* Ignoring function, connection */
/* identifier not recognized by the */
/* implementation */
/* Structure Errors */
#define PE_IGNORE_STRUCTS (200) /* Warning, ignoring structures */
/* that do not exist */
/* Input Errors */
#define PE_NO_DEVICE (250) /* Ignoring function, the specified*/
/* device is not available on the */
/* specified workstation */
/* Metafile Errors */
#define PE_ILLEGAL_ITEM_TYPE (300) /* Ignoring function, item type is*/
/* not allowed for user items */
/* Escape Errors */
#define PE_ESCAPE_NOT_AVAIL (350) /* Warning, the specified escape */
/* is not available on one or more */
/* workstations in this implemen- */
/* tation. The escape will be */
/* processed by those workstations */
/* on which it is available */
/* Miscellaneous Errors */
#define PE_BAD_ERROR_FILE (450) /* Ignoring function, the speci- */
/* fied error file is invalid */
/* System Errors */
#define PE_OFLOW_PHIGS (900) /* Storage overflow has occurred */
/* in PHIGS */
/* Miscellaneous */
/* Linetypes */
#define PLINE_SOLID (1)
#define PLINE_DASH (2)
#define PLINE_DOT (3)
#define PLINE_DASH_DOT (4)
/* Marker types */
#define PMARKER_DOT (1)
#define PMARKER_PLUS (2)
#define PMARKER_ASTERISK (3)
#define PMARKER_CIRCLE (4)
#define PMARKER_CROSS (5)
/* Annotation styles */
#define PANNO_STYLE_UNCONNECTED (1)
#define PANNO_STYLE_LEAD_LINE (2)
/* Color models */
#define PMODEL_RGB (1)
#define PMODEL_CIELUV (2)
#define PMODEL_HSV (3)
#define PMODEL_HLS (4)
/* Element enumeration */
#define PFIRST_PHIGS_ELEM PELEM_POLYLINE3
#define PLAST_PHIGS_ELEM PELEM_PICK_ID
C ---- Off/On Switch for Edge Flag and Error Handling ----
INTEGER POFF, PON
PARAMETER(POFF=0, PON=1)
The table IS arranged alphabetically by ISO PHIGS subroutine names. A missing ISO PHIGS subroutine
implies that either it is not supported by the graPHIGS API, or there is no approximately equivalent
GPxxxx subroutine call.
Table 2. ISO PHIGS Subroutines and Their Associated GPxxxx Subroutine Calls
ISO PHIGS Subroutine Call Associated GPxxxx Subroutine Call(s)
Add Names to Set GPADCN
Annotation Text Relative GPANR2
Annotation Text Relative 3 GPANR3
Application Data GPINAD
Archive All Structures GPARAS
Archive Structure Networks GPARSN
Archive Structures GPARST
Await Event GPAWEV
Change Structure Identifier GPCSI
Change Structure Identifier And References GPCSIR
Change Structure References GPCSRS
Close Archive File GPCLAR
Close PHIGS GPCLPH
Close Structure GPCLST
Close Workstation GPCLWS
Compose Matrix GPCMT2
Compose Matrix 3 GPCMT3
Copy All Elements From Structure GPCPST
Delete All Structures GPDAST
Delete All Structures from Archive GPDASA
Delete Element GPDLE
Delete Element Range GPDLER
Delete Elements Between Labels GPDLEG
Delete Structure GPDLST
Delete Structure Network GPDLNT, GPDLNC
Delete Structure Networks from Archive GPDSNA
Delete Structures from Archive GPDSAR
Element Search GPELS
Emergency Close PHIGS GPCLPH
Empty Structure GPEST
Error Handling GPEHND
Error Logging GPELOG
Escape GPES
Evaluate View Mapping Matrix GPEVM2
Evaluate View Mapping Matrix 3 GPEVM3
Evaluate View Orientation Matrix GPCVMT, GPVPLN, GPVR, GPVUP
Evaluate View Orientation Matrix 3 GPCVMT, GPVPLN, GPVR, GPVUP
Execute Structure GPEXST
Fill Area Set GPPG2
Fill Area Set 3 GPPG3
Flush Device Events GPFLEV
Get Choice GPGTCH
The tables are arranged alphabetically by GPxxxx subroutine calls. A missing GPxxxx subroutine call
implies that there is no approximately equivalent ISO PHIGS subroutine.
Table 3. GPxxxx Subroutine Calls and Their Associated ISO PHIGS Subroutines
Associated ISO PHIGS Subroutine
xxxx Subroutine Call xxxx Subroutine Call Description Call(s)
GPAAL Set Annotation Alignment Set Annotation Text Alignment
GPADCN Add Class Name to Set Add Names to Set
GPAH Set Annotation Height Set Annotation Text Character Height
GPAN2 Annotation Text 2 Annotation Text Relative
GPAN3 Annotation Text 3 Annotation Text Relative 3
GPANR2 Annotation Text Relative 2 Annotation Text Relative
GPANR3 Annotation Text Relative 3 Annotation Text Relative 3
GPAPT Set Annotation Path Set Annotation Text Path
GPARAS Archive All Structures Archive All Structures
GPARSN Archive Structure Networks Archive Structure Networks
GPARST Archive Structures Archive Structures
GPARV Associate Root with View Post Structure
GPAS Set Annotation Style Set Annotation Style
GPASF Set Aspect Source Flag Set Individual ASF
GPAUP Set Annotation Up Vector Set Annotation Text Character Up
Vector
GPAWEV Await Event Await Event
GPCHH Set Character Height Set Character Height
GPCHMO Set Choice Mode Set Choice Mode
GPCHSP Set Character Spacing Set Character Spacing
GPCHUP Set Character Up Vector Set Character Up Vector
GPCHXP Set Character Expansion Factor Set Character Expansion Factor
GPCLAR Close Archive File Close Archive File
GPCLPH Close graPHIGS Close PHIGS, Emergency Close
PHIGS
GPCLST Close Structure Close Structure
GPCLWS Close Workstation Close Workstation
GPCML Set Color Model Set Color Model
GPCMT2 Compose Matrix 2 Compose Matrix
GPCMT3 Compose Matrix 3 Compose Matrix 3
GPCNRS Set Conflict Resolution Set Conflict Resolution
GPCPST Copy Structure Copy All Elements from Structure
GPCR Set Color Representation Set Color Representation
GPCRWS Create Workstation Open Workstation
GPCSI Change Structure Identifier Change Structure Identifier
GPCSIR Change Structure Identifier and Change Structure Identifier and
References References
GPCSRS Change Structure References Change Structure References
GPCVMT Compute View Matrix Evaluate View Orientation Matrix 3
GPDARW Disassociate All Roots from Unpost All Structures
Workstation
GPDASA Delete All Structures from Archive Delete All Structures from Archive
The absolute value of a negative error number refers to a GPxxxx message number listed in The
graPHIGS Programming Interface: Messages and Codes.
The following tables list the graPHIGS API messages for ISO PHIGS standard errors, ISO PHIGS C
binding errors, and ISO PHIGS FORTRAN binding errors. The graPHIGS API ignores functions which
cause errors, unless the error message specifically says that it is a WARNING. See the ISO PHIGS
standard and ISO PHIGS FORTRAN and C bindings for more information on the errors.
Table 4. graPHIGS API Messages for ISO PHIGS Standard Errors
Error Number Message
1 FUNCTION REQUIRES STATE (PHCL,WSCL,STCL,ARCL)
2 FUNCTION REQUIRES STATE (PHOP,*,*,*)
3 FUNCTION REQUIRES STATE (PHOP,WSOP,*,*)
4 FUNCTION REQUIRES STATE (PHOP,WSCL,STCL,ARCL)
5 FUNCTION REQUIRES STATE (PHOP,*,STOP,*)
6 FUNCTION REQUIRES STATE (PHOP,*,STCL,*)
7 FUNCTION REQUIRES STATE (PHOP,*,*,AROP)
50 CONNECTION IDENTIFIER NOT RECOGNIZED BY IMPLEMENTATION
51 INFORMATION NOT AVAILABLE FOR GENERIC WORKSTATION TYPE
52 WORKSTATION TYPE NOT RECOGNIZED BY IMPLEMENTATION
53 WORKSTATION IDENTIFIER ALREADY IN USE
54 SPECIFIED WORKSTATION IS NOT OPEN
55 WORKSTATION NOT OPENED FOR IMPLEMENTATION DEPENDENT REASON
56 SPECIFIED WORKSTATION IS NOT OF CATEGORY MO
57 SPECIFIED WORKSTATION IS OF CATEGORY MI
58 SPECIFIED WORKSTATION IS NOT OF CATEGORY MI
59 SPECIFIED WORKSTATION DOES NOT HAVE OUTPUT CAPABILITY
60 SPECIFIED WORKSTATION IS NOT OF CATEGORY OUTIN
61 SPECIFIED WORKSTATION IS NOT OF CATEGORY INPUT OR OUTIN
62 THIS INFORMATION NOT AVAILABLE FOR MO WORKSTATION TYPE
63 EXCEEDED MAXIMUM NUMBER OF SIMULTANEOUSLY OPEN WORKSTATIONS
64 SPECIFIED WORKSTATION TYPE CANNOT GENERATE SPECIFIED GDP
100 BUNDLE INDEX VALUE IS LESS THAN ONE
101 SPECIFIED REPRESENTATION HAS NOT BEEN DEFINED
102 REPRESENTATION HAS NOT BEEN PREDEFINED ON THIS WORKSTATION
103 EXCEEDED MAXIMUM NUMBER OF WORKSTATION BUNDLE TABLE ENTRIES
104 SPECIFIED LINETYPE NOT AVAILABLE ON WORKSTATION
105 SPECIFIED MARKER TYPE NOT AVAILABLE ON WORKSTATION
106 SPECIFIED FONT NOT AVAILABLE FOR REQUESTED TEXT PRECISION
107 SPECIFIED EDGETYPE NOT AVAILABLE ON WORKSTATION
108 SPECIFIED INTERIOR STYLE NOT AVAILABLE ON WORKSTATION
109 INTERIOR STYLE PATTERN NOT SUPPORTED ON WORKSTATION
The following table lists the graPHIGS API messages for ISO PHIGS FORTRAN binding errors. See the
ISO/IEC FORTRAN binding for more information on these errors.
Table 5. graPHIGS API Messages for ISO PHIGS FORTRAN Binding Errors
Error Number Message
2000 ENUMERATION TYPE OUT OF RANGE
2001 OUTPUT PARAMETER SIZE INSUFFICIENT
20021 LIST OR SET ELEMENT NOT AVAILABLE
2003 INVALID DATA RECORD
2004 INPUT PARAMETER SIZE OUT OF RANGE
2005 INVALID LIST OF POINT LISTS
2006 INVALID LIST OF FILTERS
Note: 1If this error occurs, the total number in the list is still returned, but the requested element is not returned.
The following table lists the graPHIGS API messages for ISO PHIGS C binding errors.
Table 6. graPHIGS API Messages for ISO PHIGS C Binding Errors
Error Number Message
2200 START INDEX IS OUT OF RANGE
2201 LENGTH OF THE APPLICATION’S LIST IS NEGATIVE
2202 ENUMERATION TYPE OUT OF RANGE
2203 ERROR WHILE ALLOCATING STORE
2204 ERROR WHILE ALLOCATING MEMORY FOR STORE
Chapter 22. Implementation Errors and graPHIGS API Messages for ISO PHIGS-Defined Errors 519
520 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
Chapter 23. graPHIGS API Extensions and Compatibility with
the ISO PHIGS Standard
You can write applications that combine GPxxxx subroutine calls and ISO PHIGS subroutine calls. All of
the GPxxxx subroutines (documented in The graPHIGS Programming Interface: Subroutine Reference) are
available as extensions to the ISO PHIGS library of subroutine calls. This chapter identifies some
graPHIGS API extensions and discusses considerations for combining GPxxxx subroutine calls and ISO
PHIGS subroutine calls.
Helpful Hints
Enumerations in ISO PHIGS subroutine calls are not necessarily the same as in GPxxxx subroutine calls.
Matrixes in ISO PHIGS apply to a column vector, while GPxxxx matrixes apply to a row vector. In addition, the order in
which the matrix is stored is determined by the binding. See Chapter 15. ″ISO PHIGS Transformations″ for a
description of the storage of a transformation matrix.
Other features
v More primitives (spheres, grids, composite fill, polyhedron edge, . ..)
v Proportional/filled fonts
v Conditional traversal
v Image display
v Integration with X-Windows
v Distributed architecture for networked processing
v Sharing of graphical resources between processes
v Enhanced structure editing
v View-based traversal.
See Chapter 19. ″ISO PHIGS Subroutines to GPxxxx Subroutines″ and Chapter 20. ″GPxxxx Subroutines
to ISO PHIGS Subroutines″ for listings of ISO PHIGS subroutines and their GPxxxx equivalents or
approximate equivalents, and vice versa.
Control Subroutines
Issuing Open Workstation
Opening a workstation with the ISO PHIGS Open Workstation subroutine results in the following
differences in default values used at the workstation as compared to the defaults assumed when the
workstation is opened using either GPOPWS or GPCRWS.
Since connecting to a nucleus is not an ISO PHIGS concept, when you issue an ISO PHIGS Open PHIGS
subroutine call, the graPHIGS API connects to a nucleus with an id value of 1 by default. If a program
issues the Open graPHIGS (GPOPPH) subroutine with suppression of the nucleus and structure store
creation via defaults, and then fails to create a nucleus with an id value of 1, the graPHIGS API generates
implementation error (-202) on every ISO PHIGS subroutine call that assumes a nucleus with an id value
of 1. Inquire PHIGS Facilities is an ISO PHIGS subroutine call that could generate such an error.
Asynchronous Errors
Some errors from the nucleus may not be reported during the subroutine call which forced the error. The
following rules are followed when reporting such an error to an application that combines GPxxxx
subroutine calls and ISO PHIGS subroutine calls. (For details on the timing of error reporting, see
Appendix B of The graPHIGS Programming Interface: Understanding Concepts).
v If the application has opened PHIGS with ISO PHIGS Open PHIGS, the error is returned as an ISO
PHIGS error, and the subroutine name is an ISO PHIGS subroutine call.
v If the application has opened PHIGS with GPOPPH, the error is returned as a GPxxxx error, and the
subroutine name is a GPxxxx subroutine call.
v These error logs have an asterisk after the subroutine name to alert the user that this is an error being
returned asynchronously from the graPHIGS API nucleus, and as such the error reported and the
subroutine name follow the above rules.
Delete Elements Between Labels and Set Element Pointer at Label could cause asynchronous GPxxxx
error 130 (LABEL IDENTIFIER CANNOT BE FOUND IN THE OPEN STRUCTURE). ISO PHIGS has two
distinct errors (205 and 206) defined instead. The graPHIGS API issues error 130 if you used GPOPPH,
otherwise the graPHIGS API issues the mapped ISO PHIGS error.
Initialize input device subroutine calls could cause asynchronous GPxxxx error 141 (INPUT DEVICE NOT
IN CORRECT MODE). ISO PHIGS defines error 251. If you used GPOPPH, then the graPHIGS API
issues GPxxxx error 141, otherwise the graPHIGS API issues ISO PHIGS error 251.
Workstation Settings
The graPHIGS API supports workstations that have hatch, polymarker, and linetype tables that you can
set. The following GPxxxx subroutine calls can change default entries in these tables:
GPLTR
(Set Linetype Representation)
GPMTR
(Set Marker Type Representation)
GPHR (Set Hatch Representation)
If an application uses the GPxxxx interface to alter these tables, then the representation that ISO PHIGS
defines for a line type, marker type, or hatch value has been altered.
Note: For workstations opened by an ISO PHIGS Open Workstation subroutine call, the default
representations for the line type, marker type, and hatch tables are as defined by the ISO PHIGS
standard.
HLHSR
Chapter 23. graPHIGS API Extensions and Compatibility with the ISO PHIGS Standard 523
ISO PHIGS has only one HLHSR mode for a workstation, whereas the GPxxxx interface has an HLHSR
mode per view. If your application uses an ISO PHIGS subroutine call to set the HLHSR mode, the
graPHIGS API automatically assigns this mode to view 0. The ISO PHIGS inquiry for the HLHSR mode
returns the mode for view 0. The only way to set or inquire the mode of a view other than view 0 is
through GPxxxx subroutine calls.
Issuing Inquires
You must be careful when your application combines GPxxxx subroutines with ISO PHIGS inquiries. Any
element placed into a structure by an ISO PHIGS subroutine may always be inquired through the GPxxxx
interface as well as through ISO PHIGS. However, using ISO PHIGS inquiries to obtain data that only
could have been placed in a structure or into a workstation table via a GPxxxx subroutine call, generates
implementation error -606.
Implementation error -606 implies that the graPHIGS API is ignoring this function, and you should use the
appropriate GPQxxx inquiry to obtain the data.
Note: An element type may be known to both ISO PHIGS and the GPxxxx interface, but the GPxxxx
interface may only know the data within the type. If such an element is inquired through ISO
PHIGS, then the graPHIGS API generates error -606.
Display Subroutines
The following table lists display-related ISO PHIGS calls and their equivalent GPxxxx subroutine calls:
Table 7. Display-related ISO PHIGS subroutines and their equivalent GPxxxx subroutines.
ISO PHIGS Subroutine Equivalent GPxxxx Subroutine
Post Structure GPARV (Associate Root with View) with a view parameter of 0
Unpost Structure GPDRW (Disassociate Root from Workstation)
Unpost All Structures GPDARW (Disassociate All Roots from Workstation)
Inquire Posted Structures GPQRV (Inquire Set of Roots in View) with a requested view of 0
Input Events
For programs that combine GPxxxx subroutines and ISO PHIGS subroutines, the ISO PHIGS Await Event
subroutine could return such events as Link Switch In, Link Switch Out, Update Completion, Input
Overflow Events, Broadcast Message, Private Message, and Threshold Exceeded. For more information
on events supported by the graPHIGS API, see The graPHIGS Programming Interface: Technical
Reference.
Chapter 23. graPHIGS API Extensions and Compatibility with the ISO PHIGS Standard 525
526 The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
Chapter 24. graPHIGS API Deviations from the ISO PHIGS
Standard
This chapter describes the following graPHIGS API deviations from the ISO PHIGS standard:
v Unsupported subroutines
v Structure building
v Color components
v Input
v Traversal defaults
v Errors
Unsupported Subroutines
The graPHIGS API implementation of ISO PHIGS does not support the functionality required for:
v Metafile subroutine functions
v Incremental spatial search functions.
The C and FORTRAN bindings are supported, but the functionality is not implemented. A complete list of
unsupported functions follows:
Metafile Functions
v Get Item Type From Metafile
v Interpret Item
v Read Item From Metafile
v Write Item To Metafile
Structure Building
For Set Annotation Text Character Up Vector and Set Character Up Vector, the graPHIGS API stores only
the normalized vectors. Therefore, on the inquiry for these elements, the normalized vectors are returned.
In addition, if the application passes a vector of length 0, the default vector is stored in the element. On a
subsequent inquiry for the element, the graPHIGS API returns the default vector.
For Text 3, only the normalized text reference vectors are stored into the element. These normalized
vectors are returned on an inquiry for the element. If the text reference vectors are linearly dependent
(e.g., one vector is 0, or they are parallel) the default vectors of [1,0,0] and [0,1,0] are stored. An inquiry
for this element returns the default vectors. In either case, the display is identical.
Color Components
Inquired color components of type SET may differ from the parameters passed to the setting routine due
to conversions between the color model in which color components are stored and the model at the time
the set and inquiry routines are called. either subroutine call. In most cases these differences are due to
numerical roundoff and truncation, and are slight. Differences can be large when CIELUV coordinates are
Input
The ISO PHIGS Await Event subroutine call could return a class of Input Overflow Events in the graPHIGS
API. See The graPHIGS Programming Interface: Technical Reference for additional information.
Initial pick path is ignored by the graPHIGS API. Therefore, on an inquiry for the pick device data, the pick
path set by the application on the Initialize Pick is not returned.
A sample input device subroutine call forces an invalid mode error if the device is in request mode, but no
error is issued if the device is in event or sample mode. The ISO PHIGS standard defines a 252 error if
not in sample mode, but the graPHIGS API does not issue the error if the device is sampled while in event
or sample mode.
A request input device subroutine call never forces an invalid mode error. ISO PHIGS defines a 251 error
if you are not in request mode.
Traversal Defaults
During traversal, if a text precision is not available in the current font, then the graPHIGS API uses the
highest precision available for that font. ISO PHIGS states that STRING precision of font 1 should be the
default.
During traversal, if a text font is not available, the graPHIGS API substitutes font 1 at the same precision.
ISO PHIGS states that STRING precision of font 1 should be used.
Errors
Copy All Elements from Structure and Execute Structure have no error defined in ISO PHIGS for ″an
attempt to execute the open structure″. The graPHIGS API rejects such an attempt and issues
implementation error -125.
The following is a list of functions and related errors which can be detected only by a graPHIGS API
nucleus. Therefore, it is possible that the error may not be generated during the subroutine call which
caused it.
IBM may not offer the products, services, or features discussed in this document in other countries.
Consult your local IBM representative for information on the products and services currently available in
your area. Any reference to an IBM product, program, or service is not intended to state or imply that only
that IBM product, program, or service may be used. Any functionally equivalent product, program, or
service that does not infringe any IBM intellectual property right may be used instead. However, it is the
user’s responsibility to evaluate and verify the operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter described in this document.
The furnishing of this document does not give you any license to these patents. You can send license
inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other country where such
provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION
PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer
of express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically
made to the information herein; these changes will be incorporated in new editions of the publication. IBM
may make improvements and/or changes in the product(s) and/or the program(s) described in this
publication at any time without notice.
Licensees of this program who wish to have information about it for the purpose of enabling: (i) the
exchange of information between independently created programs and other programs (including this one)
and (ii) the mutual use of the information which has been exchanged, should contact:
IBM Corporation
Dept. LRAS/Bldg. 003
11400 Burnet Road
Austin, TX 78758-3498
U.S.A.
Such information may be available, subject to appropriate terms and conditions, including in some cases,
payment of a fee.
The licensed program described in this document and all licensed material available for it are provided by
IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any
equivalent agreement between us.
For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property
Department in your country or send inquiries, in writing, to:
IBM may use or distribute any of the information you supply in any way it believes appropriate without
incurring any obligation to you.
Information concerning non-IBM products was obtained from the suppliers of those products, their
published announcements or other publicly available sources. IBM has not tested those products and
cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products.
Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.
Any references in this information to non-IBM Web sites are provided for convenience only and do not in
any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of
the materials for this IBM product and use of those Web sites is at your own risk.
This information contains examples of data and reports used in daily business operations. To illustrate
them as completely as possible, the examples include the names of individuals, companies, brands, and
products. All of these names are fictitious and any similarity to the names and addresses used by an
actual business enterprise is entirely coincidental.
COPYRIGHT LICENSE:
This information contains sample application programs in source language, which illustrates programming
techniques on various operating platforms. You may copy, modify, and distribute these sample programs in
any form without payment to IBM, for the purposes of developing, using, marketing or distributing
application programs conforming to the application programming interface for the operating platform for
which the sample programs are written. These examples have not been thoroughly tested under all
conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these
programs. You may copy, modify, and distribute these sample programs in any form without payment to
IBM for the purposes of developing, using, marketing, or distributing application programs conforming to
IBM’s application programming interfaces.
Each copy or any portion of these sample programs or any derivative work, must include a copyright
notice as follows:
(c) (your company name) (year). Portions of this code are derived from IBM Corp. Sample Programs. (c)
Copyright IBM Corp. _enter the year or years_. All rights reserved.
Trademarks
The following terms are trademarks of International Business Machines Corporation in the United States,
other countries, or both:
AIX
GDDM
IBM
RS/6000
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other company, product, or service names may be the trademarks or service marks of others.
We appreciate your comments about this publication. Please comment on specific errors or omissions, accuracy,
organization, subject matter, or completeness of this book. The comments you send should pertain to only the
information in this manual or product and the way in which the information is presented.
For technical questions and information about products and prices, please contact your IBM branch office, your IBM
business partner, or your authorized remarketer.
When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any
way it believes appropriate without incurring any obligation to you. IBM or any other organizations will only use the
personal information that you supply to contact you about the issues that you state on this form.
Comments:
If you would like a response from IBM, please fill in the following information:
Name Address
Company or Organization
_ _ _ _ _ _ _Fold
_ _ _and
_ _ _Tape
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Please
_ _ _ _ _do
_ _not
_ _ staple
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Fold
_ _ _and
_ _ Tape
______
NO POSTAGE
NECESSARY
IF MAILED IN THE
UNITED STATES
IBM Corporation
Information Development
Department 04XA-905-6B013
11501 Burnet Road
Austin, TX 78758-3400
_________________________________________________________________________________________
Fold and Tape Please do not staple Fold and Tape
Cut or Fold
SC33-8140-03 Along Line
Printed in U.S.A.
SC33-8140-03