Changeset 4165
- Timestamp:
- Feb 1, 2014 4:16:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/flowvisviewer.tcl
r4163 r4165 352 352 set _image(legend) [image create photo] 353 353 itk_component add legend { 354 canvas $itk_component(plotarea).legend \ 355 -height 50 -highlightthickness 0 -background black 354 canvas $itk_component(plotarea).legend -height 50 -highlightthickness 0 356 355 } { 357 356 usual … … 1044 1043 set h [winfo height $c] 1045 1044 set lx 10 1046 # FIXME: I don't know what I have to do this for the 2D flow1047 # example. Otherwise the canvas background is white.1048 # I'll get to this when we add background changes into1049 # nanvis.1050 $c configure -background black1051 1045 set ly [expr {$h - 1}] 1052 if {"" == [$c find withtag transfunc]} {1046 if {"" == [$c find withtag colorbar]} { 1053 1047 $c create image 10 10 -anchor nw \ 1054 -image $_image(legend) -tags transfunc1048 -image $_image(legend) -tags colorbar 1055 1049 $c create text $lx $ly -anchor sw \ 1056 1050 -fill $itk_option(-plotforeground) -tags "limits vmin" 1057 1051 $c create text [expr {$w-$lx}] $ly -anchor se \ 1058 1052 -fill $itk_option(-plotforeground) -tags "limits vmax" 1059 $c lower transfunc 1060 $c bind transfunc <ButtonRelease-1> \ 1061 [itcl::code $this AddIsoMarker %x %y] 1053 $c lower colorbar 1054 $c bind colorbar <ButtonRelease-1> [itcl::code $this AddIsoMarker %x %y] 1062 1055 } 1063 1056 # Display the markers used by the active transfer function.
Note: See TracChangeset
for help on using the changeset viewer.