Changeset 5092 for trunk


Ignore:
Timestamp:
Mar 8, 2015 1:08:46 AM (5 years ago)
Author:
ldelgass
Message:

Add update in Rebuild to allow initial canvas size to be set. We don't want to
do this in the constructor since that can cause an error when the add method is
called before the constructor returns.

Location:
trunk/gui/scripts
Files:
11 edited

Legend:

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

    r4776 r5092  
    11201120    set h [winfo height $itk_component(3dview)]
    11211121    if { $w < 2 || $h < 2 } {
     1122        update
    11221123        $_dispatcher event -idle !rebuild
    11231124        return
  • trunk/gui/scripts/nanovisviewer.tcl

    r4989 r5092  
    899899    set h [winfo height $itk_component(3dview)]
    900900    if { $w < 2 || $h < 2 } {
     901        update
    901902        $_dispatcher event -idle !rebuild
    902903        return
  • trunk/gui/scripts/vtkglyphviewer.tcl

    r5068 r5092  
    933933    set h [winfo height $itk_component(view)]
    934934    if { $w < 2 || $h < 2 } {
     935        update
    935936        $_dispatcher event -idle !rebuild
    936937        return
  • trunk/gui/scripts/vtkheightmapviewer.tcl

    r5004 r5092  
    916916    set h [winfo height $itk_component(view)]
    917917    if { $w < 2 || $h < 2 } {
     918        update
    918919        $_dispatcher event -idle !rebuild
    919920        return
  • trunk/gui/scripts/vtkimageviewer.tcl

    r5006 r5092  
    904904    set h [winfo height $itk_component(view)]
    905905    if { $w < 2 || $h < 2 } {
     906        update
    906907        $_dispatcher event -idle !rebuild
    907908        return
  • trunk/gui/scripts/vtkisosurfaceviewer.tcl

    r5078 r5092  
    473473    EnableWaitDialog 500
    474474    Connect
    475     # FIXME: Removing this update breaks wizard mode (see examples/3D)
    476     # However, it also allows an error in the initialization order
    477     # where FieldResult::add is called from ResultViewer before this
    478     # constructor is completed.
    479     #update
    480475}
    481476
     
    10541049    set h [winfo height $itk_component(view)]
    10551050    if { $w < 2 || $h < 2 } {
     1051        update
    10561052        $_dispatcher event -idle !rebuild
    10571053        return
  • trunk/gui/scripts/vtkmeshviewer.tcl

    r5006 r5092  
    804804# ----------------------------------------------------------------------
    805805itcl::body Rappture::VtkMeshViewer::Rebuild {} {
    806 
    807806    set w [winfo width $itk_component(view)]
    808807    set h [winfo height $itk_component(view)]
    809808    if { $w < 2 || $h < 2 } {
     809        update
    810810        $_dispatcher event -idle !rebuild
    811811        return
  • trunk/gui/scripts/vtkstreamlinesviewer.tcl

    r5068 r5092  
    952952    set h [winfo height $itk_component(view)]
    953953    if { $w < 2 || $h < 2 } {
     954        update
    954955        $_dispatcher event -idle !rebuild
    955956        return
  • trunk/gui/scripts/vtksurfaceviewer.tcl

    r5068 r5092  
    884884    set h [winfo height $itk_component(view)]
    885885    if { $w < 2 || $h < 2 } {
     886        update
    886887        $_dispatcher event -idle !rebuild
    887888        return
  • trunk/gui/scripts/vtkviewer.tcl

    r5006 r5092  
    10191019# ----------------------------------------------------------------------
    10201020itcl::body Rappture::VtkViewer::Rebuild {} {
    1021 
    10221021    set w [winfo width $itk_component(view)]
    10231022    set h [winfo height $itk_component(view)]
    10241023    if { $w < 2 || $h < 2 } {
     1024        update
    10251025        $_dispatcher event -idle !rebuild
    10261026        return
  • trunk/gui/scripts/vtkvolumeviewer.tcl

    r5068 r5092  
    990990    set w [winfo width $itk_component(view)]
    991991    set h [winfo height $itk_component(view)]
    992 
    993992    if { $w < 2 || $h < 2 } {
     993        update
    994994        $_dispatcher event -idle !rebuild
    995995        return
Note: See TracChangeset for help on using the changeset viewer.