[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference

SET WORKSTATION VIEWPORT (PHOP,WSOP,*,*)

Purpose

Use Set Workstation Viewport to set the requested two-dimensional workstation viewport for the specified workstation.

The graPHIGS API sets the x, y components of the current workstation viewport to the requested values when you update the workstation. The graPHIGS API does not change the z coordinates of the requested workstation viewport or the current workstation viewport.

Language Bindings

C

pset_ws_vp (ws_id, ws_vp_limits)

Input Parameters

Pint ws_id
Workstation identifier.

const Plimit *ws_vp_limits
Workstation viewport limits in DC.

FORTRAN

PSWKV (wkid, xmin, xmax, ymin, ymax)

Input Parameters

integer wkid
Workstation identifier.

real xmin
Minimum workstation viewport limit on the x-axis in DC.

real xmax
Maximum workstation viewport limit on the x-axis in DC.

real ymin
Minimum workstation viewport limit on the y-axis in DC.

real ymax
Maximum workstation viewport limit on the y-axis in DC.

Errors

3
Function Requires State (PHOP,WSOP,*,*)
54
Specified Workstation Is Not Open
57
Specified Workstation Is Of Category MI
152
Invalid Viewport: XMIN >= XMAX, YMIN >= YMAX OR ZMIN > ZMAX
157
Workstation Viewport Is Not Within Display Space

Related Subroutines

  • Inquire Workstation Transformation

  • Inquire Workstation Transformation 3

  • Set Workstation Viewport 3

  • Set Workstation Window

  • Set Workstation Window 3


  • [ Previous | Next | Contents | Glossary | Home | Search ]