PUWK(3g) — Subroutines
Name
PUWK − Illustrates the effects deferred by the PSDUS function.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function
Syntax
PUWK (WKID, REGFL)
Argument Data Type Access Description
-------------------------------------------------------------------------
WKID Integer Read Workstation identifier
REGFL Integer Read Regeneration flag
-------------------------------------------------------------------------
Constants
Defined Argument Constant Description
-------------------------------------------------------------------------
REGFL PPOSTP Regeneration flag suppress
PPERFO Regeneration flag perform
-------------------------------------------------------------------------
Description
Depending upon the value of the regeneration flag, PUWK illustrates the effects deferred by the PSDUS function, for the workstation specified by the workstation identifier. This function executes all deferred actions for the specified workstation without intermediate clearing of the display surface. If the specified regeneration flag is set to PPERFO and the state of visual representation entry in the workstation state list is DEFERRED or SIMULATED, Digital PHIGS performs the following in sequence:
1Digital PHIGS clears the display surface and sets the display surface empty entry in the workstation state list to EMPTY.
2If the viewing transformation update state entry in the workstation state list is PENDING, Digital PHIGS assigns requested entry values to the current entries in the workstation state list as follows:
From To
Current workstation window Requested workstation window
Current workstation viewport Requested workstation viewport
Current viewing entries Requested viewing entries
Also, Digital PHIGS sets the viewing transformation update state entry to NOTPENDING.
3If the HLHSR update state entry in the workstation state list is PENDING, Digital PHIGS assigns the values of the requested HLHSR mode entry to the current HLHSR mode entry in the workstation state list. Also, Digital PHIGS sets the HLHSR update state entry to NOTPENDING.
4Digital PHIGS displays all structures posted for the specified workstation (that is, all structures identified in the list of posted structures in the workstation state list). The redisplay action sets the display surface empty entry in the workstation state list to NOTEMPTY. It also sets the viewing transformation update state entry to NOTPENDING.
5Digital PHIGS sets the state of visual representation entry in the workstation state list to CORRECT.
Other possible effects of this function include the following:
•The specified value of the regeneration flag is PPERFO.
This function suspends the effect of the PSDUS function, and has the effect of the following sequence of functions:
PQWKST
(save the deferral state value)
PSDUS (ASAP...)
(set the deferral state to the saved value)
•The state of visual representation entry in the workstation state list is CORRECT, or the specified value of the regeneration flag is PPOSTP.
This function initiates the transmission of blocked data and takes no other action.
•The state of visual representation entry in the workstation state list is PPERFO.
This function behaves as if the application called the PRST function.
See Also
PQDUS
PQPOST
PRST
PSDUS
DUPWSS