INQUIRE POLYMARKER REPRESENTATION(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE POLYMARKER REPRESENTATION − inquire a polymarker representation on a workstation
SYNOPSIS
C Syntax
void
pinqmarkerrep ( ws, index, type, error_ind, rep )
Pintws;workstation identifier
Pintindex;polymarker index
Pinqtypetype;type of returned value
Pint∗error_ind;OUT error indicator
Pmkbundl∗rep;OUT polymarker representation
FORTRAN Syntax
SUBROUTINE pqpmr ( WKID, PMI, TYPE, ERRIND, MTYPE, MSZSF, COLI )
INTEGERWKIDworkstation identifier
INTEGERPMIpolymarker index
INTEGERTYPEtype of returned values (PSET, PREALI)
INTEGERERRINDOUT error indicator
INTEGERMTYPEOUT marker type
REALMSZSFOUT marker size scale factor
INTEGERCOLIOUT polymarker colour index
Required PHIGS Operating States
(PHOP, WSOP, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE POLYMARKER REPRESENTATION to determine the current attribute values for a specified entry in a specified workstation’s table of defined polymarker representations.
See the description of the subroutine SET POLYMARKER REPRESENTATION for information on the meaning of these attribute values.
C Input Parameters
wsWorkstation identifier.
indexEntry to be returned from the workstation’s table of polymarker representations; if this entry is not present in the table and the type of returned value parameter is REALIZED, the representation for polymarker index 1 is returned.
typeAn enumerated value specifying whether the inquired values are to be returned as the values originally specified by the application (SET), or as the values actually being used by the workstation if any of the application-specified values had to be mapped to ones available on the workstation (REALIZED). Valid values are defined in phigs.h as:
PSET(return application-specified value)
PREALIZED(return value available on the workstation)
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
repA pointer to a Pmkbundl structure in which the system returns the polymarker representation at index in the workstation’s table of polymarker representations. Pmkbundl is defined in phigs.h as follows:
typedef struct {
Pinttype;/∗ marker type ∗/
Pfloatsize;/∗ marker size scale factor ∗/
Pintcolour;/∗ colour index ∗/
} Pmkbundl;
FORTRAN Input Parameters
WKIDWorkstation identifier.
PMIEntry to be returned from the workstation’s table of polymarker representations; if this entry is not present in the table and the type of returned value parameter is REALIZED, the representation for polymarker index 1 is returned.
TYPEAn enumerated value specifying whether the inquired values are to be returned as the values originally specified by the application (SET), or as the values actually being used by the workstation if any of the application-specified values had to be mapped to ones available on the workstation (REALIZED). Valid values are defined in phigs.h as:
PSET(return application-specified value)
PREALI(return value available on the workstation)
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
MTYPE
The marker type at index PMI in the workstation’s table of polymarker representations.
MSZSF
The marker size scale factor at index PMI in the workstation’s table of polymarker representations.
COLIThe marker colour index at index PMI in the workstation’s table of polymarker representations.
ERRORS
003Ignoring function, function requires state (PHOP, WSOP, ∗, ∗)
054Ignoring function, the specified workstation is not open
059Ignoring function, the specified workstation does not have output capability (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO)
100Ignoring function, the bundle index value is less than one
101Ignoring function, the specified representation has not been defined
SEE ALSO
SET POLYMARKER REPRESENTATION (3P)
INQUIRE LIST OF POLYMARKER INDICES (3P)
INQUIRE PREDEFINED POLYMARKER REPRESENTATION (3P)
INQUIRE EXTENDED POLYMARKER REPRESENTATION (3P+)
Sun Release 4.0 — Last change: 1 August 1989