Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

INQUIRE LIST OF EDGE INDICES(3P)  —  Kubota Pacfic Computer Inc. (29 February 1991)

NAME

INQUIRE LIST OF EDGE INDICES− inquire list of edge indices defined on a workstation

SYNOPSIS

C Syntax

void
pinq_list_edge_inds ( ws, length, start, error_ind, indices, total_length )
Pintws;workstation identifier
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pint_list∗indices;OUT list of edge indices
Pint∗total_length;OUT length of list in PHIGS

Required PHIGS Operating States

(PHOP, WSOP, ∗, ∗)

DESCRIPTION

Purpose

Use INQUIRE LIST OF EDGE INDICES to obtain a list of the currently defined edge indices on the specified workstation.  The defined edge table indices are conceptually sparse:  a PHIGS implementation could allow definition of n edge representations with arbitrary indices.  However, edge indices are nonsparse in PEX-SI: the n edge representations necessarily have indices 1 through n. 

C Input Parameters

wsWorkstation identifier of the workstation whose edge indices are to be returned. 

lengthNumber of items for which the application has allocated memory in the output parameter indices.  Specify 0 to get the total length of the list. 

startStarting position in the list at which to begin the inquiry. 

C Output Parameters

error_ind
Pointer to the location for storing the error number of any error this function detects.

indicesPointer to a Pint_list structure in which the system returns the portion of the list of currently defined edge indices, starting at the entry specified with start. 

Pint_list is defined in phigs.h as follows:

typedef struct {
Pintnum_ints;/∗ number of Pints in list ∗/
Pint∗ints;/∗ list of integers ∗/

} Pint_list; Pointer indices→ints must be initialized to an array of length Pint elements. 

total_length
Pointer to an integer in which to return the total length of the list. This is the value required for length if all the items in the list are to be returned. 

ERRORS

003Ignoring function, function requires state (PHOP, WSOP, ∗, ∗)

054Ignoring function, specified workstation is not open

059Ignoring function, specified workstation does not have output capability (in other words, the workstation category is neither OUTPUT, OUTIN, nor MO)

SEE ALSO

SET EDGE REPRESENTATION (3P)
INQUIRE EDGE REPRESENTATION (3P)

September 02, 1992

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