| 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 GRTEXT (DX, DY, STRING) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** GRTEXT *** (GRPLIB) Write text (PLT) |
| 12 |
C -- Written by Amy Gilkey - revised 02/14/86 |
| 13 |
C -- |
| 14 |
C --GRTEXT writes a software or hardware character string at a location |
| 15 |
C --(left-justified). |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- DX, DY - IN - the horizontal and vertical string location |
| 19 |
C -- (in device coordinates) |
| 20 |
C -- STRING - IN - the string to be written, may be truncated |
| 21 |
C -- |
| 22 |
C --Common Variables: |
| 23 |
C -- Uses ICURDV, SOFTCH of /GRPCOM/ |
| 24 |
|
| 25 |
C --Routines Called: |
| 26 |
C -- PLTXTH - (PLTLIB) Display a hardware string |
| 27 |
C -- PLTXTS - (PLTLIB) Display a software string |
| 28 |
C -- LENSTR - (STRLIB) Find string length |
| 29 |
|
| 30 |
include 'grpcom.blk' |
| 31 |
|
| 32 |
REAL DX, DY |
| 33 |
CHARACTER*(*) STRING |
| 34 |
|
| 35 |
LSTR = LENSTR(STRING) |
| 36 |
IF (STRING(LSTR:LSTR) .EQ. ' ') RETURN |
| 37 |
|
| 38 |
IF (SOFTCH(ICURDV)) THEN |
| 39 |
CALL PLTXTS (DX, DY, STRING(:LSTR)) |
| 40 |
ELSE |
| 41 |
CALL PLTXTH (DX, DY, STRING(:LSTR)) |
| 42 |
END IF |
| 43 |
|
| 44 |
RETURN |
| 45 |
END |