101
101
pack [frame $BASE.redrawf.f11 -relief flat -bd 0] -side top -fill x -expand 1
104
set drawbtn [button $BASE.redrawf.f2.exec -text DRAW -bd 1 -fg "darkgreen"]
104
set drawbtn [button $BASE.redrawf.f2.exec -text [G_msg "DRAW"] -bd 1 -fg "darkgreen"]
105
105
bind $drawbtn <1> "Nset_cancel 0"
106
106
bind $drawbtn <B1-ButtonRelease> {Ndraw_all}
107
help $drawbtn balloon "Draw selected features"
109
set clearbtn [button $BASE.redrawf.f2.clear -text Clear -bd 1 -command {do_clear}]
110
help $clearbtn balloon "Clear NVIZ display"
112
set cancelbtn [button $BASE.redrawf.f2.cancel -text Cancel -bd 1 -command {Nset_cancel 1}]
113
help $cancelbtn balloon "Cancel current draw"
107
help $drawbtn balloon [G_msg "Draw selected features"]
109
set clearbtn [button $BASE.redrawf.f2.clear -text [G_msg "Clear"] -bd 1 -command {do_clear}]
110
help $clearbtn balloon [G_msg "Clear NVIZ display"]
112
set cancelbtn [button $BASE.redrawf.f2.cancel -text [G_msg "Cancel"] -bd 1 -command {Nset_cancel 1}]
113
help $cancelbtn balloon [G_msg "Cancel current draw"]
115
115
pack $drawbtn $clearbtn $cancelbtn \
116
116
-side left -expand 1 -fill x
118
118
# Auto check boxes
119
set labl1 [label $BASE.redrawf.f1.label1 -text "Automatically render display:" -anchor w]
119
set labl1 [label $BASE.redrawf.f1.label1 -text [G_msg "Automatically render display:"] -anchor w]
120
120
set auto_d [checkbutton $BASE.redrawf.f1.autodraw \
121
121
-onvalue 1 -offvalue 0 -variable Nauto_draw \
122
122
-justify left -anchor center -padx 5]
123
help $BASE.redrawf.f1.autodraw balloon "Automatically render display after changing parameters"
123
help $BASE.redrawf.f1.autodraw balloon [G_msg "Automatically render display after changing parameters"]
125
125
pack $labl1 $auto_d -side left -expand 0 -fill x -pady 3
127
127
#checkbuttons for features to draw
128
set labl2 [label $BASE.redrawf.f11.label1 -text "Show features:" -anchor w]
128
set labl2 [label $BASE.redrawf.f11.label1 -text [G_msg "Show features:"] -anchor w]
130
130
menubutton $BASE.redrawf.f11.m1 -menu $BASE.redrawf.f11.m1.m \
131
-text "Main features..." -underline 0 -justify left \
131
-text [G_msg "Main features..."] -underline 0 -justify left \
132
132
-indicator on -anchor center -relief raised -bd 1
133
133
#help $BASE.redrawf.f11.m1 balloon "Select main draw features"
135
135
menubutton $BASE.redrawf.f11.m2 -menu $BASE.redrawf.f11.m2.m \
136
-text "Decorations..." -underline 0 -justify left \
136
-text [G_msg "Decorations..."] -underline 0 -justify left \
137
137
-indicator on -anchor center -relief raised -bd 1
138
138
#help $BASE.redrawf.f11.m2 balloon "Select misc. draw features"
140
140
menu $BASE.redrawf.f11.m1.m
142
$BASE.redrawf.f11.m1.m add checkbutton -label "Surface" \
142
$BASE.redrawf.f11.m1.m add checkbutton -label [G_msg "Surface"] \
143
143
-onvalue 1 -offvalue 0 -variable surface
145
$BASE.redrawf.f11.m1.m add checkbutton -label "Vectors" \
145
$BASE.redrawf.f11.m1.m add checkbutton -label [G_msg "Vectors"] \
146
146
-onvalue 1 -offvalue 0 -variable vector
148
$BASE.redrawf.f11.m1.m add checkbutton -label "Sites" \
148
$BASE.redrawf.f11.m1.m add checkbutton -label [G_msg "Sites"] \
149
149
-onvalue 1 -offvalue 0 -variable sites
151
$BASE.redrawf.f11.m1.m add checkbutton -label "Volumes" \
151
$BASE.redrawf.f11.m1.m add checkbutton -label [G_msg "Volumes"] \
152
152
-onvalue 1 -offvalue 0 -variable volume
154
154
menu $BASE.redrawf.f11.m2.m
156
$BASE.redrawf.f11.m2.m add checkbutton -label "Legend" \
156
$BASE.redrawf.f11.m2.m add checkbutton -label [G_msg "Legend"] \
157
157
-onvalue 1 -offvalue 0 -variable legend
158
$BASE.redrawf.f11.m2.m add checkbutton -label "Labels" \
158
$BASE.redrawf.f11.m2.m add checkbutton -label [G_msg "Labels"] \
159
159
-onvalue 1 -offvalue 0 -variable labels
160
$BASE.redrawf.f11.m2.m add checkbutton -label "North Arrow" \
160
$BASE.redrawf.f11.m2.m add checkbutton -label [G_msg "North Arrow"] \
161
161
-onvalue 1 -offvalue 0 -variable n_arrow
162
$BASE.redrawf.f11.m2.m add checkbutton -label "Scale Bar" \
162
$BASE.redrawf.f11.m2.m add checkbutton -label [G_msg "Scale Bar"] \
163
163
-onvalue 1 -offvalue 0 -variable scalebar
164
$BASE.redrawf.f11.m2.m add checkbutton -label "Fringe" \
164
$BASE.redrawf.f11.m2.m add checkbutton -label [G_msg "Fringe"] \
165
165
-onvalue 1 -offvalue 0 -variable fringe
167
167
pack $labl2 $BASE.redrawf.f11.m1 $BASE.redrawf.f11.m2 -side left \
172
172
pack [frame $BASE.midf -relief flat -bd 0] -side left -expand 1 -padx 5
174
174
# set view method radiobuttons
175
set draw_lab [label $BASE.midt.lablev1 -text "View method:" -anchor w]
175
set draw_lab [label $BASE.midt.lablev1 -text [G_msg "View method:"] -anchor w]
177
set draw_var1 [radiobutton $BASE.midt.b1 -text "eye" \
177
set draw_var1 [radiobutton $BASE.midt.b1 -text [G_msg "eye"] \
178
178
-variable draw_option -value 0 -width 8 \
179
179
-command "change_display 1" ]
181
set draw_var2 [radiobutton $BASE.midt.b2 -text "center" \
181
set draw_var2 [radiobutton $BASE.midt.b2 -text [G_msg "center"] \
182
182
-variable draw_option -value 1 -width 8 \
183
183
-command "change_display 0" ]
184
184
$draw_var1 select
186
help $BASE.midt.b1 balloon "Change view by moving eye position"
187
help $BASE.midt.b2 balloon "Change view by moving scene center position"
186
help $BASE.midt.b1 balloon [G_msg "Change view by moving eye position"]
187
help $BASE.midt.b2 balloon [G_msg "Change view by moving scene center position"]
190
190
if {$Nv_(FlyThrough)} {
202
202
set H [mk_hgt_slider $BASE.midf]
203
203
set E [mk_exag_slider $BASE.midf]
205
help $E.scale balloon "Set vertical exaggeration"
206
help $E.entry balloon "Set vertical exaggeration"
207
help $H.scale balloon "Set eye height"
208
help $H.entry balloon "Set eye height"
205
help $E.scale balloon [G_msg "Set vertical exaggeration"]
206
help $E.entry balloon [G_msg "Set vertical exaggeration"]
207
help $H.scale balloon [G_msg "Set eye height"]
208
help $H.entry balloon [G_msg "Set eye height"]
210
210
# make lookat buttons
211
211
frame $BASE.midf.lookat -relief flat -borderwidth 0
213
Label $BASE.midf.lookat.l -text "Look"
214
Button $BASE.midf.lookat.here -text "here" -bd 1 \
215
-helptext "Center view at point marked with mouse click" \
213
Label $BASE.midf.lookat.l -text [G_msg "Look"]
214
Button $BASE.midf.lookat.here -text [G_msg "here"] -bd 1 \
215
-helptext [G_msg "Center view at point marked with mouse click"] \
216
216
-command {bind $Nv_(TOP).canvas <Button> {look_here %W %x %y
217
217
if {$Nauto_draw == 1} {Ndraw_all}
220
Button $BASE.midf.lookat.center -text "center" -bd 1 \
221
-helptext "Center view at center of displayed surface" \
220
Button $BASE.midf.lookat.center -text [G_msg "center"] -bd 1 \
221
-helptext [G_msg "Center view at center of displayed surface"] \
222
222
-command { look_center
223
223
if {$Nauto_draw == 1} {Ndraw_all}
225
Button $BASE.midf.lookat.top -text "top" -bd 1 \
226
-helptext "View directly from above" \
225
Button $BASE.midf.lookat.top -text [G_msg "top"] -bd 1 \
226
-helptext [G_msg "View directly from above"] \
228
228
# Nv_itemDrag $Nv_(main_BASE).midf.pos $Nv_(XY_POS) 62.5 62.5
229
229
# note: below value is somewhat strange, but with 0.5 0.5 the map rotates:
246
246
set P [Nv_mkScale $BASE.bframe.cframe.pers h perspective 120 3 40 Nchange_persp 0]
247
247
set T [Nv_mkScale $BASE.bframe.cframe.tw h twist -180 180 0 Nchange_twist 0]
249
help $BASE.bframe.cframe.pers balloon "Set field of view size (degrees)"
250
help $BASE.bframe.cframe.tw balloon "Set twist angle (degrees)"
249
help $BASE.bframe.cframe.pers balloon [G_msg "Set field of view size (degrees)"]
250
help $BASE.bframe.cframe.tw balloon [G_msg "Set twist angle (degrees)"]
252
252
# reset button goes here so it can reference P
253
Button $BASE.midf.lookat.reset -text "reset" \
253
Button $BASE.midf.lookat.reset -text [G_msg "reset"] \
254
254
-bd 1 -command "do_reset $XY $H $E $P $T" \
255
-helptext "Reset view to default"
255
-helptext [G_msg "Reset view to default"]
257
257
pack $BASE.midf.lookat.l $BASE.midf.lookat.here \
258
258
$BASE.midf.lookat.center $BASE.midf.lookat.top \