| 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 vdicgi_char - FORTRAN shell for handling strings |
| 8 |
|
| 9 |
C CESC - Escape |
| 10 |
SUBROUTINE CESC2 (FUNCID, N, ARGS) |
| 11 |
INTEGER FUNCID |
| 12 |
REAL ARGS(N+1) |
| 13 |
INTEGER LDR |
| 14 |
CHARACTER*80 DATA |
| 15 |
c CGI enumerated type definitions for FORTRAN programs |
| 16 |
c 8 Sep 1989, last date modified |
| 17 |
c Pat McGee, [email protected] |
| 18 |
|
| 19 |
c SRCP escapes |
| 20 |
integer XEMFNM, XEMXCL, XEPCTL, XEAGMD, XEPCCL, XESVDI |
| 21 |
parameter (XEMFNM= -28372, XEMXCL= -19281, XEPCTL= -190, |
| 22 |
* XEAGMD= -23671, XEPCCL= -12048, XESVDI= -1001) |
| 23 |
|
| 24 |
c SRCP definitions |
| 25 |
c maximum error class |
| 26 |
integer XMXERR |
| 27 |
parameter (XMXERR = 9) |
| 28 |
|
| 29 |
c maximum function identifier |
| 30 |
integer XMXFCL |
| 31 |
parameter (XMXFCL = 61) |
| 32 |
|
| 33 |
c CGI definitions |
| 34 |
c (used in many places) |
| 35 |
integer CNO, CYES |
| 36 |
parameter (CNO= 0, CYES= 1) |
| 37 |
|
| 38 |
c force clear viewsurface (argument of CPDS) |
| 39 |
integer CFORCC, CCONDC |
| 40 |
parameter (CFORCC= 0, CCONDC= 1) |
| 41 |
|
| 42 |
c view surface state (arg of most CQxxxx routines) |
| 43 |
integer CDIRTY, CCLEAN |
| 44 |
parameter (CDIRTY=0, CCLEAN=1) |
| 45 |
|
| 46 |
c clip indicator |
| 47 |
integer COFF, CON |
| 48 |
parameter (COFF=0, CON=1) |
| 49 |
|
| 50 |
c drawing surface clip indicator |
| 51 |
integer CDCOFF, CDCREC, CVPORT |
| 52 |
parameter (CDCOFF=0, CDCREC=1, CVPORT=2) |
| 53 |
|
| 54 |
c error handling flag (arg of CERHCT) |
| 55 |
integer CEHON, CEHROF, CEHDOF |
| 56 |
parameter (CEHON=0, CEHROF=1, CEHDOF=2) |
| 57 |
|
| 58 |
c device class (arg of CQID) |
| 59 |
integer COUTPT, CINPUT, COUTIN |
| 60 |
parameter (COUTPT=0, CINPUT=1, COUTIN=2) |
| 61 |
|
| 62 |
c hard/soft copy flag |
| 63 |
integer CHARD, CSOFT |
| 64 |
parameter (CHARD= 0, CSOFT= 1) |
| 65 |
|
| 66 |
c display type |
| 67 |
integer CVECT, CRAST, COTHER |
| 68 |
parameter (CVECT= 0, CRAST= 1, COTHER= 2) |
| 69 |
|
| 70 |
c dynamic modification |
| 71 |
integer CIRG, CCBS, CIMM |
| 72 |
parameter (CIRG= 0, CCBS= 1, CIMM= 2) |
| 73 |
|
| 74 |
c pixel location relative to coordinates */ |
| 75 |
integer CPXON, CPXBET |
| 76 |
parameter (CPXON=0, CPXBET=1) |
| 77 |
|
| 78 |
c support indicator |
| 79 |
integer CSNO, CSYES, CSUNR |
| 80 |
parameter (CSNO= 0, CSYES= 1, CSUNR=2) |
| 81 |
|
| 82 |
c text final flag |
| 83 |
integer CNOTFI, CFINAL |
| 84 |
parameter (CNOTFI=0, CFINAL=1) |
| 85 |
|
| 86 |
c clipping mode |
| 87 |
integer CLOCUS, CSHAPE, CLOCSH |
| 88 |
parameter(CLOCUS=0, CSHAPE=1, CLOCSH=2) |
| 89 |
|
| 90 |
c text precision |
| 91 |
integer CSTRNG, CCHAR, CSTROK |
| 92 |
parameter(CSTRNG=0, CCHAR=1, CSTROK=2) |
| 93 |
|
| 94 |
c text path |
| 95 |
integer CTPRIT, CTPLFT, CTPUP, CTPDWN |
| 96 |
parameter(CTPRIT=0, CTPLFT=1, CTPUP=2, CTPDWN=3) |
| 97 |
|
| 98 |
c text horizontal alignment |
| 99 |
integer CTALFT, CTACTR, CTARIT, CTANH, CTACOH |
| 100 |
parameter(CTALFT=0, CTACTR=1, CTARIT=2, CTANH=3, CTACOH=4) |
| 101 |
|
| 102 |
c text vertical alignment |
| 103 |
integer CTATOP, CTACAP, CTAHAF, CTABAS |
| 104 |
integer CTABOT, CTANV, CTACOV |
| 105 |
parameter(CTATOP=0, CTACAP=1, CTAHAF=2, CTABAS=3) |
| 106 |
parameter(CTABOT=4, CTANV=5, CTACOV=6) |
| 107 |
|
| 108 |
c interior style |
| 109 |
integer CHOLLO, CSOLID |
| 110 |
parameter (CHOLLO= 0, CSOLID= 1) |
| 111 |
|
| 112 |
c color selection mode (arg of CCSM, CQTXA) |
| 113 |
integer CDRECT, CINDEX |
| 114 |
parameter (CDRECT= 0, CINDEX= 1) |
| 115 |
|
| 116 |
c line, edge width specification mode |
| 117 |
c marker specification mode |
| 118 |
|
| 119 |
c cell array fill capability |
| 120 |
integer COUTLN, CFILLD |
| 121 |
parameter (COUTLN=0, CFILLD=1) |
| 122 |
|
| 123 |
c cell array alignment |
| 124 |
integer CAXIS, CSKEW |
| 125 |
parameter (CAXIS=0, CSKEW=1) |
| 126 |
|
| 127 |
c compound text capability |
| 128 |
c and closed figure capability |
| 129 |
integer CCNONE, CGLOBL, CLOCAL |
| 130 |
parameter (CCNONE=0, CGLOBL=1, CLOCAL=2) |
| 131 |
|
| 132 |
c pattern transformation support |
| 133 |
|
| 134 |
c color selection mode availability |
| 135 |
integer CCLRI, CCLRID |
| 136 |
parameter (CCLRI=0, CCLRID=1) |
| 137 |
|
| 138 |
c color overwrite capability |
| 139 |
|
| 140 |
c response validity |
| 141 |
integer CINVAL, CVAL |
| 142 |
parameter (CINVAL= 0, CVAL= 1) |
| 143 |
|
| 144 |
c input class |
| 145 |
|
| 146 |
c request status |
| 147 |
|
| 148 |
c input device state |
| 149 |
|
| 150 |
c direction |
| 151 |
integer CINCR, CDECR |
| 152 |
parameter (CINCR= 0, CDECR= 1) |
| 153 |
|
| 154 |
c action required flag |
| 155 |
integer CNOACT, CACT |
| 156 |
parameter (CNOACT= 0, CACT= 1) |
| 157 |
|
| 158 |
c pixel validity flag |
| 159 |
integer CVNONE, CVALL, CVSOME |
| 160 |
parameter (CVNONE= 0, CVALL= 1, CVSOME= 2) |
| 161 |
|
| 162 |
LDR = 1 |
| 163 |
DATA = ' ' |
| 164 |
IF (FUNCID .EQ. XEAGMD) THEN |
| 165 |
IF (ARGS(1) .EQ. 0) THEN |
| 166 |
DATA(1:5) = 'ALPHA' |
| 167 |
ELSE |
| 168 |
DATA(1:8) = 'GRAPHICS' |
| 169 |
ENDIF |
| 170 |
ELSE |
| 171 |
c*** I know this won't work for real, real numbers |
| 172 |
DO 10 I = 1,N |
| 173 |
DATA(I:I) = CHAR(INT(ARGS(I))) |
| 174 |
10 CONTINUE |
| 175 |
ENDIF |
| 176 |
|
| 177 |
CALL CESC( FUNCID, LDR, DATA ) |
| 178 |
RETURN |
| 179 |
END |
| 180 |
|
| 181 |
C CTX - Text |
| 182 |
SUBROUTINE CTX2(X, Y, TEXT1, LENGTH ) |
| 183 |
REAL X,Y |
| 184 |
INTEGER FLAG |
| 185 |
INTEGER TEXT1(LENGTH) |
| 186 |
CHARACTER*136 TEXT2 |
| 187 |
|
| 188 |
FLAG = 1 |
| 189 |
|
| 190 |
DO 20 I=1,LENGTH |
| 191 |
TEXT2(I:I) = CHAR(TEXT1(I)) |
| 192 |
20 CONTINUE |
| 193 |
|
| 194 |
CALL CTX( X, Y, FLAG, TEXT2(1:LENGTH)) |
| 195 |
RETURN |
| 196 |
END |
| 197 |
|
| 198 |
C CGTXX - Get Text Extent |
| 199 |
SUBROUTINE CGTXX2 ( X, Y, VSTAT, VCONC, XCONC, YCONC, |
| 200 |
1 X1, Y1, X2, Y2, X3, Y3, X4, Y4) |
| 201 |
REAL X,Y |
| 202 |
CHARACTER*1 STRING |
| 203 |
INTEGER VSTAT, VCONC |
| 204 |
REAL XCONC, YCONC |
| 205 |
REAL X1, Y1, X2, Y2, X3, Y3, X4, Y4 |
| 206 |
|
| 207 |
STRING = 'M' |
| 208 |
CALL CGTXX( X, Y, STRING, VSTAT, VCONC, XCONC, YCONC, |
| 209 |
1 X1, Y1, X2, Y2, X3, Y3, X4, Y4 ) |
| 210 |
RETURN |
| 211 |
END |
| 212 |
|
| 213 |
C CQCHH - Inquire Character Height |
| 214 |
SUBROUTINE CQCHH2 (txp, nreq, first, vstat, ntotal, |
| 215 |
1 nlist, chhit) |
| 216 |
CHARACTER*1 FONT |
| 217 |
INTEGER TXP, NREQ, FIRST, VSTAT, NTOTAL, NLIST |
| 218 |
INTEGER CHHIT(*) |
| 219 |
|
| 220 |
FONT = char(0) |
| 221 |
CALL CQCHH( FONT, TXP, NREQ, FIRST, VSTAT, NTOTAL, |
| 222 |
1 NLIST, CHHIT) |
| 223 |
RETURN |
| 224 |
END |
| 225 |
|
| 226 |
C vdgnam - |
| 227 |
subroutine vdgnam(name) |
| 228 |
character *(*) name |
| 229 |
c CGI enumerated type definitions for FORTRAN programs |
| 230 |
c 8 Sep 1989, last date modified |
| 231 |
c Pat McGee, [email protected] |
| 232 |
|
| 233 |
c SRCP escapes |
| 234 |
integer XEMFNM, XEMXCL, XEPCTL, XEAGMD, XEPCCL, XESVDI |
| 235 |
parameter (XEMFNM= -28372, XEMXCL= -19281, XEPCTL= -190, |
| 236 |
* XEAGMD= -23671, XEPCCL= -12048, XESVDI= -1001) |
| 237 |
|
| 238 |
c SRCP definitions |
| 239 |
c maximum error class |
| 240 |
integer XMXERR |
| 241 |
parameter (XMXERR = 9) |
| 242 |
|
| 243 |
c maximum function identifier |
| 244 |
integer XMXFCL |
| 245 |
parameter (XMXFCL = 61) |
| 246 |
|
| 247 |
c CGI definitions |
| 248 |
c (used in many places) |
| 249 |
integer CNO, CYES |
| 250 |
parameter (CNO= 0, CYES= 1) |
| 251 |
|
| 252 |
c force clear viewsurface (argument of CPDS) |
| 253 |
integer CFORCC, CCONDC |
| 254 |
parameter (CFORCC= 0, CCONDC= 1) |
| 255 |
|
| 256 |
c view surface state (arg of most CQxxxx routines) |
| 257 |
integer CDIRTY, CCLEAN |
| 258 |
parameter (CDIRTY=0, CCLEAN=1) |
| 259 |
|
| 260 |
c clip indicator |
| 261 |
integer COFF, CON |
| 262 |
parameter (COFF=0, CON=1) |
| 263 |
|
| 264 |
c drawing surface clip indicator |
| 265 |
integer CDCOFF, CDCREC, CVPORT |
| 266 |
parameter (CDCOFF=0, CDCREC=1, CVPORT=2) |
| 267 |
|
| 268 |
c error handling flag (arg of CERHCT) |
| 269 |
integer CEHON, CEHROF, CEHDOF |
| 270 |
parameter (CEHON=0, CEHROF=1, CEHDOF=2) |
| 271 |
|
| 272 |
c device class (arg of CQID) |
| 273 |
integer COUTPT, CINPUT, COUTIN |
| 274 |
parameter (COUTPT=0, CINPUT=1, COUTIN=2) |
| 275 |
|
| 276 |
c hard/soft copy flag |
| 277 |
integer CHARD, CSOFT |
| 278 |
parameter (CHARD= 0, CSOFT= 1) |
| 279 |
|
| 280 |
c display type |
| 281 |
integer CVECT, CRAST, COTHER |
| 282 |
parameter (CVECT= 0, CRAST= 1, COTHER= 2) |
| 283 |
|
| 284 |
c dynamic modification |
| 285 |
integer CIRG, CCBS, CIMM |
| 286 |
parameter (CIRG= 0, CCBS= 1, CIMM= 2) |
| 287 |
|
| 288 |
c pixel location relative to coordinates */ |
| 289 |
integer CPXON, CPXBET |
| 290 |
parameter (CPXON=0, CPXBET=1) |
| 291 |
|
| 292 |
c support indicator |
| 293 |
integer CSNO, CSYES, CSUNR |
| 294 |
parameter (CSNO= 0, CSYES= 1, CSUNR=2) |
| 295 |
|
| 296 |
c text final flag |
| 297 |
integer CNOTFI, CFINAL |
| 298 |
parameter (CNOTFI=0, CFINAL=1) |
| 299 |
|
| 300 |
c clipping mode |
| 301 |
integer CLOCUS, CSHAPE, CLOCSH |
| 302 |
parameter(CLOCUS=0, CSHAPE=1, CLOCSH=2) |
| 303 |
|
| 304 |
c text precision |
| 305 |
integer CSTRNG, CCHAR, CSTROK |
| 306 |
parameter(CSTRNG=0, CCHAR=1, CSTROK=2) |
| 307 |
|
| 308 |
c text path |
| 309 |
integer CTPRIT, CTPLFT, CTPUP, CTPDWN |
| 310 |
parameter(CTPRIT=0, CTPLFT=1, CTPUP=2, CTPDWN=3) |
| 311 |
|
| 312 |
c text horizontal alignment |
| 313 |
integer CTALFT, CTACTR, CTARIT, CTANH, CTACOH |
| 314 |
parameter(CTALFT=0, CTACTR=1, CTARIT=2, CTANH=3, CTACOH=4) |
| 315 |
|
| 316 |
c text vertical alignment |
| 317 |
integer CTATOP, CTACAP, CTAHAF, CTABAS |
| 318 |
integer CTABOT, CTANV, CTACOV |
| 319 |
parameter(CTATOP=0, CTACAP=1, CTAHAF=2, CTABAS=3) |
| 320 |
parameter(CTABOT=4, CTANV=5, CTACOV=6) |
| 321 |
|
| 322 |
c interior style |
| 323 |
integer CHOLLO, CSOLID |
| 324 |
parameter (CHOLLO= 0, CSOLID= 1) |
| 325 |
|
| 326 |
c color selection mode (arg of CCSM, CQTXA) |
| 327 |
integer CDRECT, CINDEX |
| 328 |
parameter (CDRECT= 0, CINDEX= 1) |
| 329 |
|
| 330 |
c line, edge width specification mode |
| 331 |
c marker specification mode |
| 332 |
|
| 333 |
c cell array fill capability |
| 334 |
integer COUTLN, CFILLD |
| 335 |
parameter (COUTLN=0, CFILLD=1) |
| 336 |
|
| 337 |
c cell array alignment |
| 338 |
integer CAXIS, CSKEW |
| 339 |
parameter (CAXIS=0, CSKEW=1) |
| 340 |
|
| 341 |
c compound text capability |
| 342 |
c and closed figure capability |
| 343 |
integer CCNONE, CGLOBL, CLOCAL |
| 344 |
parameter (CCNONE=0, CGLOBL=1, CLOCAL=2) |
| 345 |
|
| 346 |
c pattern transformation support |
| 347 |
|
| 348 |
c color selection mode availability |
| 349 |
integer CCLRI, CCLRID |
| 350 |
parameter (CCLRI=0, CCLRID=1) |
| 351 |
|
| 352 |
c color overwrite capability |
| 353 |
|
| 354 |
c response validity |
| 355 |
integer CINVAL, CVAL |
| 356 |
parameter (CINVAL= 0, CVAL= 1) |
| 357 |
|
| 358 |
c input class |
| 359 |
|
| 360 |
c request status |
| 361 |
|
| 362 |
c input device state |
| 363 |
|
| 364 |
c direction |
| 365 |
integer CINCR, CDECR |
| 366 |
parameter (CINCR= 0, CDECR= 1) |
| 367 |
|
| 368 |
c action required flag |
| 369 |
integer CNOACT, CACT |
| 370 |
parameter (CNOACT= 0, CACT= 1) |
| 371 |
|
| 372 |
c pixel validity flag |
| 373 |
integer CVNONE, CVALL, CVSOME |
| 374 |
parameter (CVNONE= 0, CVALL= 1, CVSOME= 2) |
| 375 |
|
| 376 |
call cesc(XEMFNM,1,name) |
| 377 |
return |
| 378 |
end |