Changeset 4343


Ignore:
Timestamp:
Apr 16, 2014 10:37:36 AM (10 years ago)
Author:
ldelgass
Message:

Camera setting fixes

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r4336 r4343  
    19801980            -textvariable [itcl::scope _settings(-$tag)]
    19811981        bind $inner.${tag} <Return> \
    1982             [itcl::code $this camera set ${tag}]
     1982            [itcl::code $this camera set -${tag}]
    19831983        bind $inner.${tag} <KP_Enter> \
    1984             [itcl::code $this camera set ${tag}]
     1984            [itcl::code $this camera set -${tag}]
    19851985        blt::table $inner \
    19861986            $row,0 $inner.${tag}label -anchor e -pady 2 \
  • trunk/gui/scripts/vtkvolumeviewer.tcl

    r4336 r4343  
    11# -*- mode: tcl; indent-tabs-mode: nil -*-
    2 
    3 # ----------------------------------------------------------------------
    4 #  COMPONENT: VtkVolumeViewer - Vtk volume viewer
     2# ----------------------------------------------------------------------
     3#  COMPONENT: vtkvolumeviewer - Vtk volume viewer
    54#
    65#  It connects to the Vtk server running on a rendering farm,
     
    87# ======================================================================
    98#  AUTHOR:  Michael McLennan, Purdue University
    10 #  Copyright (c) 2004-2012  HUBzero Foundation, LLC
     9#  Copyright (c) 2004-2014  HUBzero Foundation, LLC
    1110#
    1211#  See the file "license.terms" for information on usage and
     
    19201919        "outer_edges"     "outer"         
    19211920    $itk_component(axismode) value "static"
    1922     bind $inner.mode <<Value>> [itcl::code $this AdjustSetting axisFlyMode]
     1921    bind $inner.mode <<Value>> [itcl::code $this AdjustSetting -axisflymode]
    19231922
    19241923    blt::table $inner \
     
    19551954
    19561955    set row 1
    1957 
    1958     set labels { -qx -qy -qz -qw -xpan -ypan -zoom }
     1956    set labels { qx qy qz qw xpan ypan zoom }
    19591957    foreach tag $labels {
    1960         label $inner.${tag}label -text $tag -font "Arial 9"
     1958        label $inner.${tag}-label -text $tag -font "Arial 9"
    19611959        entry $inner.${tag} -font "Arial 9"  -bg white \
    1962             -textvariable [itcl::scope _view($tag)]
    1963         bind $inner.${tag} <KeyPress-Return> \
    1964             [itcl::code $this camera set ${tag}]
     1960            -textvariable [itcl::scope _view(-$tag)]
     1961        bind $inner.${tag} <Return> \
     1962            [itcl::code $this camera set -${tag}]
     1963        bind $inner.${tag} <KP_Enter> \
     1964            [itcl::code $this camera set -${tag}]
    19651965        blt::table $inner \
    1966             $row,0 $inner.${tag}label -anchor e -pady 2 \
     1966            $row,0 $inner.${tag}-label -anchor e -pady 2 \
    19671967            $row,1 $inner.${tag} -anchor w -pady 2
    19681968        blt::table configure $inner r$row -resize none
     
    19721972        -text "Orthographic Projection" \
    19731973        -variable [itcl::scope _view(-ortho)] \
    1974         -command [itcl::code $this camera set ortho] \
     1974        -command [itcl::code $this camera set -ortho] \
    19751975        -font "Arial 9"
    19761976    blt::table $inner \
Note: See TracChangeset for help on using the changeset viewer.