Debian Codegraph @

apps/scripts/start_img_displays

raw
1 # !/bin/csh
2 #
3 # This script starts the display programs for the imaging demonstration.
4 # $Revision: 1.12 $
5
6 if( $1 == "" ) then
7 echo Usage: $0 ctn_name
8 exit
9 endif
10
11 set SUCCESS = 1
12 set V1 = ""
13 set V2 = ""
14 set V3 = ""
15 set V4 = ""
16 set V5 = ""
17 set Q1 = 0
18 set Q2 = 0
19 set Q3 = 0
20 set Q4 = 0
21 set Q5 = 0
22 setenv ROOT /mir_ctn/img
23 setenv QUEUE_DIRECTORY $ROOT/q
24 setenv D $ROOT/db
25 setenv I $ROOT/db
26 if ($DISPLAY == "") setenv DISPLAY dicom2:0
27
28 switch($1)
29 case "ctn1":
30 set HOST = "ctn1"
31 set V1 = "Cemax"
32 set V2 = "Mitra"
33 set V3 = "Siemens"
34 set Q1 = 10
35 set Q2 = 12
36 set Q3 = 14
37 breaksw
38 case "ctn2":
39 set HOST = "ctn2"
40 set V1 = "AAAI"
41 set V2 = "Konica"
42 set Q1 = 20
43 set Q2 = 22
44 breaksw
45 case "ctn3":
46 set HOST = "ctn3"
47 set V1 = "Acuson"
48 set V2 = "ALI"
49 set V3 = "Kodak"
50 set Q1 = 30
51 set Q2 = 32
52 set Q3 = 34
53 breaksw
54 case "ctn4":
55 set HOST = "ctn4"
56 set V1 = "GE"
57 set V2 = "ISG"
58 set Q1 = 40
59 set Q2 = 42
60 breaksw
61 case "ctn5":
62 set HOST = "ctn5"
63 set V1 = "3M"
64 set V2 = "Merge"
65 set V3 = "Picker"
66 set V4 = "Picker"
67 set Q1 = 50
68 set Q2 = 52
69 set Q3 = 54
70 set Q4 = 55
71 breaksw
72 case "ctn6":
73 set HOST = "ctn6"
74 set V1 = "ATL"
75 set V2 = "Loral"
76 set Q1 = 60
77 set Q2 = 62
78 breaksw
79 case "ctn7":
80 set HOST = "ctn7"
81 set V1 = "ADAC"
82 set V2 = "Agfa"
83 set V3 = "Philips"
84 set Q1 = 70
85 set Q2 = 72
86 set Q3 = 74
87 breaksw
88 case "ctn8":
89 set HOST = "ctn8"
90 set V1 = "Dupont"
91 set V2 = "Star"
92 set Q1 = 80
93 set Q2 = 82
94 breaksw
95 case "demo":
96 set HOST = "demo"
97 set V1 = "GE"
98 set V2 = "Siemens"
99 set V3 = "Philips"
100 set Q1 = 40
101 set Q2 = 14
102 set Q3 = 74
103 breaksw
104 default:
105 set SUCCESS = 0
106 echo $0\: $1 not found.
107 breaksw
108 endsw
109
110 if( $SUCCESS == 1 ) then
111
112 if ($Q1 != 0) ctndisp -n $V1 -q $Q1 -w 300 -h 425 &
113 if ($Q2 != 0) ctndisp -n $V2 -q $Q2 -w 300 -h 425 &
114 if ($Q3 != 0) ctndisp -n $V3 -q $Q3 -w 300 -h 425 &
115 if ($Q4 != 0) then
116 setenv DISPLAY $D4
117 ctndisp -n $V4 -q $Q4 -w 300 -h 425 &
118 endif
119
120 ctnnetwork -n 10 -q 100 -w 200 -h 425 &
121 endif
122
123 exit