- Timestamp:
- Mar 25, 2014, 3:15:03 PM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/geoviewer.tcl
r4264 r4265 580 580 set type [$dataobj type $layer] 581 581 switch -- $type { 582 " terrain" {582 "elevation" { 583 583 set _haveTerrain 1 584 584 } … … 869 869 continue 870 870 } 871 # Is is a "image", "model", or "terrain" layer? 871 # FIXME: wms, tms layers have additional options 872 872 switch -- $info(type) { 873 873 "raster" { … … 875 875 } 876 876 default { 877 set type " model"877 set type "$info(type)" 878 878 } 879 879 } … … 1308 1308 -icon [Rappture::icon mesh]] 1309 1309 $inner configure -borderwidth 4 1310 1311 checkbutton $inner.mesh \1312 -text "Show Mesh" \1313 -variable [itcl::scope _settings(terrain-visible)] \1314 -command [itcl::code $this AdjustSetting terrain-visible] \1315 -font "Arial 9" -anchor w1316 1310 1317 1311 checkbutton $inner.wireframe \ … … 1359 1353 [itcl::code $this AdjustSetting terrain-palette] 1360 1354 1361 label $inner. opacity_l -text "Opacity" -font "Arial 9" -anchor w1362 ::scale $inner. opacity-from 0 -to 100 -orient horizontal \1363 -variable [itcl::scope _settings(terrain- opacity)] \1355 label $inner.vscale_l -text "Vertical Scale" -font "Arial 9" -anchor w 1356 ::scale $inner.vscale -from 0 -to 100 -orient horizontal \ 1357 -variable [itcl::scope _settings(terrain-vertscale)] \ 1364 1358 -width 10 \ 1365 1359 -showvalue off \ 1366 -command [itcl::code $this AdjustSetting terrain- opacity]1367 $inner. opacity set $_settings(terrain-opacity)1360 -command [itcl::code $this AdjustSetting terrain-vertscale] 1361 $inner.vscale set $_settings(terrain-vertscale) 1368 1362 1369 1363 blt::table $inner \ 1370 0,0 $inner.mesh -cspan 2 -anchor w -pady 2 \ 1371 1,0 $inner.wireframe -cspan 2 -anchor w -pady 2 \ 1372 2,0 $inner.lighting -cspan 2 -anchor w -pady 2 \ 1373 3,0 $inner.edges -cspan 2 -anchor w -pady 2 \ 1374 4,0 $inner.opacity_l -anchor w -pady 2 \ 1375 4,1 $inner.opacity -fill x -pady 2 \ 1364 0,0 $inner.wireframe -cspan 2 -anchor w -pady 2 \ 1365 1,0 $inner.lighting -cspan 2 -anchor w -pady 2 \ 1366 2,0 $inner.edges -cspan 2 -anchor w -pady 2 \ 1367 4,0 $inner.vscale_l -anchor w -pady 2 \ 1368 4,1 $inner.vscale -fill x -pady 2 \ 1376 1369 5,0 $inner.palette_l -anchor w -pady 2 \ 1377 1370 5,1 $inner.palette -fill x -pady 2 … … 1524 1517 } 1525 1518 switch -- $type { 1526 " terrain" {1519 "elevation" { 1527 1520 array set settings { 1528 1521 -edgecolor black -
trunk/gui/scripts/map.tcl
r4261 r4265 29 29 private common _layerTypes { 30 30 "raster" 0 31 "polygon" 1 32 "points" 2 33 "circle" 3 34 "line" 4 31 "elevation" 1 32 "polygon" 2 33 "points" 3 34 "circle" 4 35 "line" 5 35 36 } 36 37 protected method Parse { xmlobj path }
Note: See TracChangeset
for help on using the changeset viewer.