| 1 |
C Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
C NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
C |
| 5 |
C See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
C======================================================================= |
| 8 |
SUBROUTINE SETVW (IVIEW, *) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** SETVW *** (MESH) Set up viewport for view |
| 12 |
C -- Written by Amy Gilkey - revised 02/12/85 |
| 13 |
C -- |
| 14 |
C --SETVW sets up the the viewport for the specified view. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- IVIEW - IN - the view number |
| 18 |
C -- * - return statement the cancel function is active |
| 19 |
C -- |
| 20 |
C --Common Variables: |
| 21 |
C -- Uses DVIEW, WVIEW of /LAYOUT/ |
| 22 |
|
| 23 |
PARAMETER (KLFT=1, KRGT=2, KBOT=3, KTOP=4) |
| 24 |
|
| 25 |
include 'layoud.blk' |
| 26 |
|
| 27 |
LOGICAL MPVIEW, MPORT2, LDUM |
| 28 |
LOGICAL GRABRT |
| 29 |
|
| 30 |
IF (GRABRT ()) RETURN 1 |
| 31 |
|
| 32 |
LDUM = MPVIEW (DVIEW(KLFT,IVIEW), DVIEW(KRGT,IVIEW), |
| 33 |
& DVIEW(KBOT,IVIEW), DVIEW(KTOP,IVIEW)) |
| 34 |
LDUM = MPORT2 (WVIEW(KLFT,IVIEW), WVIEW(KRGT,IVIEW), |
| 35 |
& WVIEW(KBOT,IVIEW), WVIEW(KTOP,IVIEW)) |
| 36 |
|
| 37 |
RETURN |
| 38 |
END |