INQUIRE PREDEFINED VIEW REPRESENTATION(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE PREDEFINED VIEW REPRESENTATION − inquire a predefined view representation for a workstation type
SYNOPSIS
C Syntax
void
pinqpredviewrep ( type, index, error_ind, rep )
Pwstypetype;workstation type
Pintindex;predefined view index
Pint∗error_ind;OUT error indicator
Pviewrep3∗rep;OUT view representation
FORTRAN Syntax
SUBROUTINE pqpvwr ( WTYPE, PVWI, ERRIND, VWORMT, VWMPMT, VWCPLM, XYCLPI, BCLIPI,
FCLIPI )
INTEGERWTYPEworkstation type
INTEGERPVWIpredefined view index
INTEGERERRINDOUT error indicator
REALVWORMT(4,4)OUT view orientation matrix
REALVWMPMT(4,4)OUT view mapping matrix
REALVWCPLM(6)OUT view clipping limits (NPC)
INTEGERXYCLPIOUT x-y clipping indicator (PNCLIP, PCLIP)
INTEGERBCLIPIOUT back clipping indicator (PNCLIP, PCLIP)
INTEGERFCLIPIOUT front clipping indicator (PNCLIP, PCLIP)
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
INQUIRE PREDEFINED VIEW REPRESENTATION determines the predefined view representation for a specified workstation type at a given view index.
C Input Parameters
type
Type of workstation.
index
Entry to be returned from the workstation table of predefined view representations.
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 Pviewrep3 structure in which the system returns the view representation at index in the workstation table of predefined view representations. Pviewrep3 is defined in phigs.h as follows:
typedef struct {
Pmatrix3orientation_matrix;/∗ orientation matrix ∗/
Pmatrix3mapping_matrix;/∗ mapping matrix ∗/
Plimit3clip_limit;/∗ clipping limits ∗/
Pclipclip_xy;/∗ x-y clipping indicator ∗/
Pclipclip_back;/∗ back clipping indicator ∗/
Pclipclip_front;/∗ front clipping indicator ∗/
} Pviewrep3;
The Pmatrix3 type definition is a 4x4 matrix, defined in phigs.h as: typedef Pfloat Pmatrix3[4][4]; The Plimit3 structure used to define the clipping limits is defined in phigs.h as follows:
typedef struct {
Pfloatxmin;/∗ x min ∗/
Pfloatxmax;/∗ x max ∗/
Pfloatymin;/∗ y min ∗/
Pfloatymax;/∗ y max ∗/
Pfloatzmin;/∗ z min ∗/
Pfloatzmax;/∗ z max ∗/
} Plimit3;
The clipping indicators control whether the clipping limits for the associated plane are active or inactive. Valid values for the Pclip enumerated type are defined in phigs.h as:
PCLIPPerform Clipping
PNOCLIPDo Not Clip
FORTRAN Input Parameters
WTYPE
Type of workstation.
PVWIEntry to be returned from the workstation table of predefined view representations.
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
VWORMT
The view orientation matrix at index PVWI in the workstation table of predefined view representations.
VWMPMT
The view mapping matrix at index PVWI in the workstation table of predefined view representations.
VWCPLM
The view clipping limits at index PVWI in the workstation table of predefined view representations; the first two elements of this array give the minimum and maximum clipping values in NPC for x, the next two for y, and the last two for z.
XYCLPI
The x-y plane clipping indicator at index PVWI in the workstation table of predefined view representations.
BCLIPI
The back plane clipping indicator at index PVWI in the workstation table of predefined view representations.
FCLIPI
The front plane clipping indicator at index PVWI in the workstation table of predefined view representations.
The clipping indicators control whether the clipping limits for the associated plane are active or inactive. Valid values for the clipping indicators are defined in phigs77.h as:
PCLIPPerform Clipping
PNCLIPDo Not Clip
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
051Ignoring function, this information is not yet available for this generic workstation type; open a workstation of this type and use the specific workstation type
052Ignoring function, workstation type not recognized by the implementation
057Ignoring function, specified workstation is of category MI
062Ignoring function, this information is not available for this MO workstation type
101Ignoring function, the specified representation has not been defined
114Ignoring function, the view index value is less than zero
SEE ALSO
INQUIRE VIEW FACILITIES (3P)
SET VIEW REPRESENTATION 3 (3P)
INQUIRE VIEW REPRESENTATION (3P)
SET VIEW INDEX (3P)
Sun Release 4.0 — Last change: 29 July 1989