- Timestamp:
- Sep 15, 2016, 12:22:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mapviewer.tcl
r6530 r6545 2143 2143 2,0 $inner.wireframe -cspan 2 -anchor w -pady 2 \ 2144 2144 3,0 $inner.lighting -cspan 2 -anchor w -pady 2 \ 2145 4,0 $inner.time_l -cspan 2-anchor w -pady 2 \2146 4,1 $inner.time -cspan 2-fill x -pady 2 \2147 5,0 $inner.ambient_l -cspan 2-anchor w -pady 2 \2148 5,1 $inner.ambient -cspan 2-fill x -pady 22145 4,0 $inner.time_l -anchor w -pady 2 \ 2146 4,1 $inner.time -fill x -pady 2 \ 2147 5,0 $inner.ambient_l -anchor w -pady 2 \ 2148 5,1 $inner.ambient -fill x -pady 2 2149 2149 # 4,0 $inner.edges -cspan 2 -anchor w -pady 2 2150 2150 … … 3315 3315 -text $info(label) \ 3316 3316 -font "Arial 9" -anchor w 3317 blt::table $f $row,1 $f.${ctlname}_lbl -anchor w -pady 2 -cspan 23317 blt::table $f $row,1 $f.${ctlname}_lbl -anchor w -pady 2 3318 3318 Rappture::Tooltip::for $f.${ctlname}_lbl [join $tooltip \n] 3319 3319 } else { … … 3324 3324 -command [itcl::code $this \ 3325 3325 SetLayerVisibility $dataobj $layer] 3326 blt::table $f $row,1 $f.${ctlname}_visible -anchor w -pady 2 -cspan 23326 blt::table $f $row,1 $f.${ctlname}_visible -anchor w -pady 2 3327 3327 Rappture::Tooltip::for $f.${ctlname}_visible [join $tooltip \n] 3328 3328 } … … 3331 3331 incr imgIdx 3332 3332 if { $info(driver) == "colorramp" } { 3333 set f2 $f.cmap 3334 frame $f2 3333 3335 set colormap $ctlname 3334 3336 if { ![info exists _image(legend-$colormap)] } { … … 3336 3338 } 3337 3339 itk_component add legend-$colormap-min { 3338 label $f .legend-$colormap-min -text 03340 label $f2.legend-$colormap-min -text 0 3339 3341 } 3340 3342 itk_component add legend-$colormap-max { 3341 label $f .legend-$colormap-max -text 13343 label $f2.legend-$colormap-max -text 1 3342 3344 } 3343 3345 itk_component add legend-$colormap { 3344 label $f.legend-$colormap -image $_image(legend-$colormap) 3345 } 3346 blt::table $f $row,0 $f.legend-$colormap-min -anchor w -pady 0 -cspan 2 3347 blt::table $f $row,2 $f.legend-$colormap-max -anchor e -pady 0 3348 incr row 3349 blt::table $f $row,0 $f.legend-$colormap -anchor w -pady 2 -cspan 3 3346 label $f2.legend-$colormap -image $_image(legend-$colormap) 3347 } 3348 blt::table $f2 $row,0 $f2.legend-$colormap-min -anchor w -pady 0 3349 blt::table $f2 $row,1 $f2.legend-$colormap-max -anchor e -pady 0 3350 blt::table $f2 $row,0 $f2.legend-$colormap -anchor w -pady 2 -cspan 2 3351 3352 blt::table $f $row,0 $f2 -anchor w -pady 0 -cspan 2 3350 3353 incr row 3351 3354 RequestLegend $colormap 256 16 … … 3355 3358 $info(type) != "mask" && 3356 3359 ($info(type) != "image" || $imgIdx > 1) } { 3357 label $f.${ctlname}_opacity_l -text "Opacity" -font "Arial 9" 3358 ::scale $f.${ctlname}_opacity -from 0 -to 100 \ 3360 set f2 $f.op 3361 frame $f2 3362 label $f2.${ctlname}_opacity_l -text "Opacity" -font "Arial 9" 3363 ::scale $f2.${ctlname}_opacity -from 0 -to 100 \ 3359 3364 -orient horizontal -showvalue off \ 3360 3365 -variable [itcl::scope _opacity($tag)] \ … … 3362 3367 -command [itcl::code $this \ 3363 3368 SetLayerOpacity $dataobj $layer] 3364 Rappture::Tooltip::for $f.${ctlname}_opacity "Set opacity of $info(label) layer" 3365 blt::table $f $row,0 $f.${ctlname}_opacity_l -anchor w -pady 2 -cspan 2 3366 blt::table $f $row,2 $f.${ctlname}_opacity -anchor w -pady 2 3369 Rappture::Tooltip::for $f2.${ctlname}_opacity "Set opacity of $info(label) layer" 3370 blt::table $f2 $row,0 $f2.${ctlname}_opacity_l -anchor w -pady 2 3371 blt::table $f2 $row,1 $f2.${ctlname}_opacity -anchor w -pady 2 3372 3373 blt::table $f $row,0 $f2 -anchor w -pady 0 -cspan 2 3367 3374 incr row 3368 3375 } … … 3375 3382 SendCmd "[list map attrib [encoding convertto utf-8 [join $attrib ,]]]" 3376 3383 label $f.map_attrib -text [join $attrib \n] -font "Arial 9" 3377 blt::table $f $row,0 $f.map_attrib -anchor sw -pady 2 -cspan 33384 blt::table $f $row,0 $f.map_attrib -anchor sw -pady 2 -cspan 2 3378 3385 #incr row 3379 3386 if { $row > 0 } { 3380 3387 blt::table configure $f r* c* -resize none 3381 blt::table configure $f r$row c 2-resize expand3388 blt::table configure $f r$row c1 -resize expand 3382 3389 } 3383 3390 }
Note: See TracChangeset
for help on using the changeset viewer.