PSWKV3(3g) — Subroutines
Name
PSWKV3 − Resets the workstation transformation according to 3D viewport limits.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function
Syntax
PSWKV3 (WKID, WKVP)
Argument Data Type Access Description
---------------------------------------------------------------------------
WKID Integer Read Workstation identifier
WKVP(6) Array of Read Workstation viewport limits, in
reals device coordinates (XMIN, XMAX,
YMIN, YMAX, ZMIN, ZMAX)
---------------------------------------------------------------------------
Description
PSWKV3 resets the workstation transformation on the specified workstation. (See Getting Started with DEC PHIGS for information about workstation transformations and the coordinate systems comprising the transformation pipeline.) You specify three-dimensional workstation viewport limits within device coordinate space in the order XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX.
The XMIN and YMIN values must be less than the XMAX and YMAX values, respectively. The ZMIN value must be less than or equal to the ZMAX value.
The PSWKV3 function sets the requested workstation viewport entry in the workstation state list to the specified values. Digital PHIGS sets only the requested entry, because workstation transformation may be deferred. (See the PUWK function.)
When the workstation is updated, Digital PHIGS resets the current workstation viewport entry in the workstation state list, as influenced by the values of these entries:
•The dynamic modification accepted (DMA) for workstation transformation entry in the workstation description table (where IMM indicates that all picture changes of the specified category can be performed immediately)
•The display space empty (DSE) entry in the workstation state list
•The workstation transformation update state entry in the workstation state list
The effects are defined in the following table:
DMA DSE Result
------------------------------------------------------------------------
IMM N/A The current workstation viewport entry is set to the
specified value, and the workstation transformation
update state entry is set to NOTPENDING.
N/A EMPTY The current workstation viewport entry is set to the
specified value, and the workstation transformation
update state entry is set to NOTPENDING.
Not Not The current workstation viewport entry is unchanged,
IMM EMPTY and the workstation transformation update state entry
is set to PENDING.
------------------------------------------------------------------------
The workstation transformation is an isotropic transformation. Therefore, if the workstation window and the workstation viewport do not have the same aspect ratio, the workstation viewport is not fully utilized.
The default workstation viewport is the maximum display space of the workstation.
See Also
PQDSP3
PQWKT3
PSWKV
PSWKW3
PUWK