Debian Codegraph @

packages/seacas/applications/blot/grbox.f

raw
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 GRBOX (LINSOL, XMIN, XMAX, YMIN, YMAX)
9 C=======================================================================
10
11 C --*** GRBOX *** (GRPLIB) Draw box (either outline or solid)
12 C -- Written by Amy Gilkey - revised 02/20/87
13 C --
14 C --GRBOX draws a box (either the outline or a solid) defined by two
15 C --coordinate pairs.
16 C --
17 C --Parameters:
18 C -- LINSOL - IN - 'L' if outline, 'S' if solid
19 C -- XMIN, XMAX - IN - the horizontal minimum and maximum of box
20 C -- (in device coordinates)
21 C -- YMIN, YMAX - IN - the vertical minimum and maximum of box
22 C -- (in device coordinates)
23
24 C --Routines Called:
25 C -- PLTPLY - (PLTLIB) Plot a filled polygon
26 C -- PLTVCT - (PLTLIB) Plot a vector
27
28 CHARACTER LINSOL
29 REAL XMIN, XMAX, YMIN, YMAX
30
31 REAL X(5), Y(5)
32
33 X(1) = XMIN
34 Y(1) = YMIN
35 X(2) = XMAX
36 Y(2) = Y(1)
37 X(3) = X(2)
38 Y(3) = YMAX
39 X(4) = X(1)
40 Y(4) = Y(3)
41 IF (LINSOL .NE. 'S') THEN
42 X(5) = X(1)
43 Y(5) = Y(1)
44 END IF
45
46 IF (LINSOL .NE. 'S') THEN
47 CALL PLTVCT (4, X(1), Y(1), X(2), Y(2))
48 ELSE
49 CALL PLTPLY (4, X(1), Y(1), X(2), Y(2))
50 END IF
51
52 RETURN
53 END