1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
c*********************************************************c
c cette routine definit la station de travail c
c reference de base a partir de quoi sont faits c
c les calculs c
c*********************************************************c
SUBROUTINE SETREF(TYPE)
c------------------------
character*1 devjs
character*(*) type
common/refdevjs/devjs
common/jsgks/xmax0,ymax0,irasx,irasy,refx,refy,
+ratioxw,ratioyw,ratxref,ratyref,
+ifill,icolor,iactif,ipasjsgks,ifont,xleft(11),xright(11),
+yleft(11),yright(11),xlog,ylog,iseg(11),iseg0(11),itransf,
+portxmin,portxmax,portymin,portymax,angrot,iexactcopy,
+iplo,igraph,ilin,weig,itypfill,iflagcopy(17),rarr(121)
c------------------------
devjs='O'
if(TYPE.eq.'VT240'.or.type.eq.'vt240')go to 1
if(TYPE.eq.'VT340'.or.type.eq.'vt340')go to 1
if(TYPE.eq.'VT330'.or.type.eq.'vt330')go to 1
if(TYPE.eq.'VT125'.or.type.eq.'vt125')go to 4
if(TYPE.eq.'V2000'.or.type.eq.'v2000')go to 6
if(TYPE.eq.'VII'.or.type.eq.'vII')go to 6
if(TYPE.eq.'T4014'.or.type.eq.'t4014')go to 7
print *, 'Sorry ! this station is not supported for reference'
print *, ' '
print *, 'Supported stations: VT125,VT240,VT330,VT340'
print *, ' Vax stations II et 2000'
print *, ' (V2000 and VII)'
print *, ' Tektronix 4014 (T4014)'
print *, ' '
print *, ' Assumed reference station : VT240 !!!!!!'
print *, ' '
devjs='U'
1 refx=799.
refy=479.
ratxref=1.
ratyref=479./799.
if(devjs.ne.'U')devjs='V'
return
4 refx=767.
refy=479.
ratxref=1.
ratyref=479./767.
return
6 refx=1010.
refy=833.
ratxref=1.
ratyref=833./1010.
devjs='A'
return
7 refx=4095.
refy=3071.
ratxref=1.
ratyref=3071./4095.
devjs='T'
return
end |
Partager