Changeset 4072


Ignore:
Timestamp:
Dec 6, 2013 10:35:26 PM (10 years ago)
Author:
ldelgass
Message:

Legend fixes for vtk volume viewer

File:
1 edited

Legend:

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

    r4048 r4072  
    498498    if { !$_legendPending } {
    499499        set _legendPending 1
    500         $_dispatcher event -after 600 !legend
     500        $_dispatcher event -idle !legend
    501501    }
    502502}
     
    997997    # generates a new call to Rebuild).   
    998998    StartBufferingCommands
    999 
    1000     set _legendPending 1
    1001999
    10021000    if { $_reset } {
     
    11181116        SendCmd "camera reset"
    11191117        SendCmd "camera zoom $_view(zoom)"
     1118        RequestLegend
    11201119        set _reset 0
    11211120    }
     
    15171516            set _settings($_current-colormap) $color
    15181517            ResetColormap $_current $color
    1519             set _legendPending 1
    15201518        }
    15211519        "field" {
     
    15541552#
    15551553#       Request a new legend from the server.  The size of the legend
    1556 #       is determined from the height of the canvas.  It will be rotated
    1557 #       to be vertical when drawn.
     1554#       is determined from the height of the canvas.
    15581555#
    15591556itcl::body Rappture::VtkVolumeViewer::RequestLegend {} {
     1557    set _legendPending 0
    15601558    set font "Arial 8"
    15611559    set lineht [font metrics $itk_option(-font) -linespace]
     
    21642162# ----------------------------------------------------------------------
    21652163itcl::body Rappture::VtkVolumeViewer::ReceiveLegend { colormap title vmin vmax size } {
    2166     set _legendPending 0
    21672164    if { [isconnected] } {
    21682165        set bytes [ReceiveBytes $size]
Note: See TracChangeset for help on using the changeset viewer.