Changeset 6016 for trunk/gui/scripts
- Timestamp:
- Feb 15, 2016, 1:01:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r6012 r6016 1214 1214 set bgcolor [Color2RGB $settings(-color)] 1215 1215 if { $_mapsettings(type) == "geocentric" } { 1216 $itk_component(grid) configure -state normal 1217 $itk_component(time_l) configure -state normal 1218 $itk_component(time) configure -state normal 1219 $itk_component(pitch_slider_l) configure -state normal 1220 $itk_component(pitch_slider) configure -state normal 1216 if { [info exists itk_component(grid)] } { 1217 $itk_component(grid) configure -state normal 1218 } 1219 if { [info exists itk_component(time)] } { 1220 $itk_component(time_l) configure -state normal 1221 $itk_component(time) configure -state normal 1222 } 1223 if { [info exists tk_component(pitch_slider)] } { 1224 $itk_component(pitch_slider_l) configure -state normal 1225 $itk_component(pitch_slider) configure -state normal 1226 } 1221 1227 EnableRotationMouseBindings 1222 1228 SendCmd "map reset geocentric $bgcolor" 1223 1229 } else { 1224 $itk_component(grid) configure -state disabled 1225 $itk_component(time_l) configure -state disabled 1226 $itk_component(time) configure -state disabled 1227 $itk_component(pitch_slider_l) configure -state disabled 1228 $itk_component(pitch_slider) configure -state disabled 1230 if { [info exists itk_component(grid)] } { 1231 $itk_component(grid) configure -state disabled 1232 } 1233 if { [info exists itk_component(time)] } { 1234 $itk_component(time_l) configure -state disabled 1235 $itk_component(time) configure -state disabled 1236 } 1237 if { [info exists tk_component(pitch_slider)] } { 1238 $itk_component(pitch_slider_l) configure -state disabled 1239 $itk_component(pitch_slider) configure -state disabled 1240 } 1229 1241 DisableRotationMouseBindings 1230 1242 set proj $_mapsettings(projection) … … 1263 1275 set _first "" 1264 1276 set haveTerrain 0 1265 #SendCmd "map layer visible 0"1266 1277 foreach dataobj [get -objects] { 1267 1278 if { [info exists _obj2ovride($dataobj-raise)] && $_first == "" } { … … 1286 1297 SetLayerStyle $dataobj $layer 1287 1298 } 1288 if {$info(type) == "elevation"} {1289 set haveTerrain 11290 }1291 1299 # FIXME: This is overriding all layers' initial visibility setting 1292 1300 if { [info exists _obj2ovride($dataobj-raise)] && … … 1295 1303 set _visibility($layer) 1 1296 1304 } 1305 if {$info(type) == "elevation"} { 1306 set haveTerrain 1 1307 } 1297 1308 } 1298 1309 } 1299 1310 1300 1311 if ($haveTerrain) { 1301 $itk_component(vscale_l) configure -state normal 1302 $itk_component(vscale) configure -state normal 1312 if { [info exists itk_component(vscale)] } { 1313 $itk_component(vscale_l) configure -state normal 1314 $itk_component(vscale) configure -state normal 1315 } 1303 1316 } else { 1304 $itk_component(vscale_l) configure -state disabled 1305 $itk_component(vscale) configure -state disabled 1317 if { [info exists itk_component(vscale)] } { 1318 $itk_component(vscale_l) configure -state disabled 1319 $itk_component(vscale) configure -state disabled 1320 } 1306 1321 } 1307 1322 … … 2171 2186 set _view($name) $value 2172 2187 } 2173 # puts stderr"view: $_view(x), $_view(y), $_view(z), $_view(heading), $_view(pitch), $_view(distance), {$_view(srs)}, {$_view(verticalDatum)}"2188 DebugTrace "view: $_view(x), $_view(y), $_view(z), $_view(heading), $_view(pitch), $_view(distance), {$_view(srs)}, {$_view(verticalDatum)}" 2174 2189 } 2175 2190 "go" { … … 2212 2227 SendCmd "camera reset" 2213 2228 # Retrieve the settings 2214 #SendCmd "camera get"2229 #SendCmd "camera get" 2215 2230 } 2216 2231 }
Note: See TracChangeset
for help on using the changeset viewer.