Changeset 2501 for trunk/gui


Ignore:
Timestamp:
Sep 8, 2011 10:19:09 PM (13 years ago)
Author:
ldelgass
Message:

ppmflush -> imgflush, re-remove redundant 'glyphs shape' command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkviewer.tcl

    r2497 r2501  
    407407    }
    408408
    409     #SendCmd "ppmflush"
     409    #SendCmd "imgflush"
    410410
    411411    # Must reset camera to have object scaling to take effect.
     
    890890        volume-wireframe
    891891
    892     #SendCmd "ppmflush"
     892    #SendCmd "imgflush"
    893893
    894894    set _limits(zmin) ""
     
    18421842        array set settings $style
    18431843        SendCmd "glyphs add sphere $tag"
    1844         SendCmd "glyphs shape sphere $tag"
    18451844        SendCmd "glyphs gscale $settings(-gscale) $tag"
    18461845        SendCmd "glyphs wireframe $settings(-wireframe) $tag"
     
    19991998    # Make a swatch of the selected color
    20001999    if { [catch { $_image(legend) get 10 $imgY } pixel] != 0 } {
     2000        #puts stderr "out of range: $imgY"
    20012001        return
    20022002    }
     
    20112011    # Compute the value of the point
    20122012    set t [expr 1.0 - (double($imgY) / double($imgHeight-1))]
    2013     #puts stderr "t=$t x=$x y=$y"
     2013    #puts stderr "t=$t x=$x y=$y imgY=$imgY"
    20142014    set value [expr $t * ($_limits(vmax) - $_limits(vmin)) + $_limits(vmin)]
    20152015    set tipx [expr $x + 15]
Note: See TracChangeset for help on using the changeset viewer.