INQUIRE EXTENDED POLYLINE FACILITIES(3P+) — MISC. REFERENCE MANUAL PAGES
NAME
INQUIRE EXTENDED POLYLINE FACILITIES− inquire workstation type extended polyline facilities
SYNOPSIS
C Syntax
void
pinqextlinefacil ( wstype, lt_length, lt_start, sm_length, sm_start, error_ind, tot_lt_length, tot_sm_length, facilities)
Pwstypewstype;workstation type
Pintlt_length;length of application’s line type list
Pintlt_start;starting position
Pintsm_length; length of shading methods to ret.
Pintsm_start; index of first element to return
Pint∗error_ind;OUT error indicator
Pint∗tot_lt_length;OUT length of line type list
Pint∗tot_sm_length;OUT total number of shading methods
Pextlnfac∗facilities;OUT polyline facilities
FORTRAN Syntax
SUBROUTINE pqeplf ( WKTYPE, ILT, ISM, ERRIND, NLT, LT, NLW, NOMLW, MINLW, MAXLW,NSM,
SM, NPPLI)
INTEGERWKTYPEworkstation type
INTEGERILTindex into linetype list
INTEGERISMindex into shading method list
INTEGERERRINDOUT error indicator
INTEGERNLTOUT number of available linetypes
INTEGERLTOUT ILT entry from linetype list
INTEGERNLWOUT number of available linewidths
REALNOMLWOUT nominal linewidth (DC)
REALMINLW, MAXLWOUT range of linewdths(DC)
INTEGERNSMOUT number of available shading methods
INTEGERSMOUT ISM entry from shading methods list
INTEGERNPPLIOUT number of predefined polyline indices
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
INQUIRE EXTENDED POLYLINE FACILITIES returns the extended polyline support available from a specified workstation type.
This is a SunPHIGS Extension function based on PHIGS+ and is not part of the PHIGS standard.
C Input Parameters
All of the following data types are predefined in phigs.h.
wstypeThe workstation type.
lt_length
The length of line types to return.
lt_start
The index of first line type to return.
sm_length
The length of shading methods to return.
sm_start
The index of first shading method to return.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
tot_lt_length
A pointer to the location to store the total number of line types available.
tot_sm_length
A pointer to the location to store the total number of shading methods available.
facilities
A pointer to the Pextlnfac structure that returns the requested information. Pextlnfac is defined as:
typedef struct {
Pintlsttypes;/∗ list of available line types ∗/
Pintwidths;/∗ number of available line widths ∗/
Pfloatnom_width;/∗ nominal line width ∗/
Pfloatmin_width;/∗ minimum line width ∗/
Pfloatmax_width;/∗ maximum line width ∗/
Pintpredefined;/∗ number of predefined bundles ∗/
Pintlstshades;/∗ list of shading methods ∗/
} Pextlnfac;
Pintlst is defined as:
typedef struct {
Pintnumber;/∗ number of Pints in list ∗/
Pint∗integers;/∗ list of integers ∗/
} Pintlst;
Prior to calling this function, the integers field of the Pintlst structures must contain a pointer to an application supplied buffer. This buffer must be at least as large as the corresponding length parameter. Defined shading methods are:
1PSD_NONENo Shading
2PSD_COLOURColour Interpolation Shading
FORTRAN Input Parameters
WKTYPE
The workstation type.
ILTThe index of the entry desired from the list of available linetypes.
ISMThe index of the entry desired from the list of available shading methods.
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
NLTThe number of entries in the list of available linetypes.
LTThe requested entry of the available linetype list.
NLWThe number of available linewidths.
NOMLW
The nominal linewidth in Device Coordinates (DC).
MINLW
The minimum linewidth in DC.
MAXLW
The maximum linewidth in DC.
NSMThe number of entries in the list of available shading methods.
SMThe requested entry of the available shading method list. Defined shading methods are:
1PSDNONNo Shading
2PSDCOLColour Interpolation Shading
NPPLI
The number of predefined polyline indices.
Execution
If the inquired information is available, the error indicator is returned as zero and the requested information is returned in the output parameters.
If the inquired information is not available, the values returned in the output parameters are undefined and the error indicator is set to one of the below error numbers to indicate the reason for nonavailability.
Since this is an inquiry function, ERROR HANDLING is not invoked when an error is detected by this function.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
052Ignoring function, workstation type not recognized by the implementation
051Ignoring function, this information is not yet available for this workstation type; open a workstation of this type and use the specific workstation type
062Ignoring function, this information is not available for this MO workstation type
SEE ALSO
SET EXTENDED POLYLINE REPRESENTATION (3P+)
INQUIRE EXTENDED POLYLINE REPRESENTATION (3P+)
INQUIRE PREDEFINED EXTENDED POLYLINE REPRESENTATION (3P+)
Sun Release 4.0 — Last change: 25 July 1989