Ignore:
Timestamp:
Mar 19, 2013 12:53:20 AM (11 years ago)
Author:
ldelgass
Message:

Fix camera reset in nanovisviewer (leftover reference to orientation dropdown),
was causing a Tcl error. Bring flowvisviewer in line with nanovisviewer
changes.

File:
1 edited

Legend:

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

    r3517 r3533  
    200200        qz      0.146447
    201201        zoom    1.0
    202         xpan   0
    203         ypan   0
     202        xpan    0
     203        ypan    0
    204204    }
    205205    set _arcball [blt::arcball create 100 100]
     
    217217        $this-qz                $_view(qz)
    218218        $this-zoom              $_view(zoom)   
    219         $this-xpan             $_view(xpan)
    220         $this-ypan             $_view(ypan)
     219        $this-xpan              $_view(xpan)
     220        $this-ypan              $_view(ypan)
    221221        $this-volume            1
    222222        $this-xcutplane         0
     
    816816        SendCmd "volume state 1 $tag"
    817817    }
    818     set _limits($tag-min) $info(min);  # Minimum value of the volume.
    819     set _limits($tag-max) $info(max);  # Maximum value of the volume.
     818    set _limits($tag-min)  $info(min);  # Minimum value of the volume.
     819    set _limits($tag-max)  $info(max);  # Maximum value of the volume.
    820820    set _limits(vmin)      $info(vmin); # Overall minimum value.
    821821    set _limits(vmax)      $info(vmax); # Overall maximum value.
     
    924924        set _settings($this-qy)    $_view(qy)
    925925        set _settings($this-qz)    $_view(qz)
    926         set _settings($this-xpan) $_view(xpan)
    927         set _settings($this-ypan) $_view(ypan)
     926        set _settings($this-xpan)  $_view(xpan)
     927        set _settings($this-ypan)  $_view(ypan)
    928928        set _settings($this-zoom)  $_view(zoom)
    929929
     
    10461046            set _settings($this-qy)    $_view(qy)
    10471047            set _settings($this-qz)    $_view(qz)
    1048             set _settings($this-xpan) $_view(xpan)
    1049             set _settings($this-ypan) $_view(ypan)
     1048            set _settings($this-xpan)  $_view(xpan)
     1049            set _settings($this-ypan)  $_view(ypan)
    10501050            set _settings($this-zoom)  $_view(zoom)
    1051             $itk_component(orientation) value "default"
    10521051        }
    10531052    }
     
    19201919
    19211920    blt::table $inner \
    1922             0,0 $inner.view_l -anchor e -pady 2 \
    1923             0,1 $inner.view -anchor w -pady 2
     1921        0,0 $inner.view_l -anchor e -pady 2 \
     1922        0,1 $inner.view -anchor w -pady 2
    19241923
    19251924    set row 1
     
    21202119    $_arcball quaternion $q
    21212120    SendCmd "camera orient $q"
    2122 }
    2123 
     2121    SendCmd "camera reset"
     2122    set _view(xpan) 0
     2123    set _view(ypan) 0
     2124    set _view(zoom) 1.0
     2125    set _settings($this-xpan) $_view(xpan)
     2126    set _settings($this-ypan) $_view(ypan)
     2127    set _settings($this-zoom) $_view(zoom)
     2128}
     2129
Note: See TracChangeset for help on using the changeset viewer.