- Timestamp:
- Sep 6, 2011, 4:52:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkviewer.tcl
r2484 r2485 1283 1283 #puts stderr "RequestLegend _first=$_first" 1284 1284 puts stderr "RequestLegend width=$_width height=$_height" 1285 set lineht [font metrics $itk_option(-font) -linespace] 1285 set font "Arial 8" 1286 set lineht [font metrics $font -linespace] 1286 1287 set c $itk_component(legend) 1287 1288 set w 15 1288 set h [expr {$_height - 2 * $lineht}]1289 set h [expr {$_height - 2 * ($lineht + 2)}] 1289 1290 if { $h < 1} { 1290 1291 return … … 1915 1916 1916 1917 # Compute the value of the point 1917 set t [expr 1.0 - (double($imgY) / double($imgHeight ))]1918 set t [expr 1.0 - (double($imgY) / double($imgHeight-1))] 1918 1919 #puts stderr "t=$t x=$x y=$y" 1919 1920 set value [expr $t * ($_limits(vmax) - $_limits(vmin)) + $_limits(vmin)]
Note: See TracChangeset
for help on using the changeset viewer.