Changeset 3923 for trunk


Ignore:
Timestamp:
Sep 13, 2013, 2:51:22 PM (11 years ago)
Author:
gah
Message:

fix z-axis labels for contour/heightmap

Location:
trunk/gui/scripts
Files:
8 edited

Legend:

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

    r3922 r3923  
    2020    private variable _xmlobj "";        # ref to XML obj with device data
    2121    private variable _cloud "";         # lib obj representing this cloud
    22     private variable _units "m m m" ;   # system of units for x, y, z
     22    private variable _units "" ;        # system of units for x, y, z
    2323    private variable _axis2label;       #
    2424    private variable _axis2units;       #
     
    116116    set _units [$_cloud get units]
    117117    set first [lindex $_units 0]
     118    set list {}
    118119    foreach u $_units axis { x y z } {
    119120        if { $u != "" } {
     
    122123            set _axis2units($axis) $first
    123124        }
    124     }
     125        lappend list $_axis2units($axis)
     126    }
     127    set _units $list
    125128    foreach label [$_cloud get labels] axis { x y z } {
    126129        if { $label != "" } {
     
    148151        foreach axis {x y z} units $_units {
    149152            set value [Rappture::Units::convert [set $axis] \
    150                 -context $units -to $units -units off]
    151 
     153                        -context $units -to $units -units off]
    152154            set $axis $value;           # Set the (x/y/z) coordinate to
    153155                                        # converted value.
  • trunk/gui/scripts/visviewer.tcl

    r3812 r3923  
    628628        set inner [frame $itk_component(plotarea).view.splash]
    629629        $inner configure -relief raised -bd 2
    630         label $inner.text1 -text "Rendering...\nPlease wait." \
     630        label $inner.text1 -text "Working...\nPlease wait." \
    631631            -font "Arial 10"
    632632        label $inner.icon
  • trunk/gui/scripts/vtkglyphviewer.tcl

    r3899 r3923  
    17181718        "static_triad"    "static" \
    17191719        "closest_triad"   "closest" \
    1720         "furthest_triad"  "furthest" \
     1720        "furthest_triad"  "farthest" \
    17211721        "outer_edges"     "outer"         
    17221722    $itk_component(axisMode) value "static"
  • trunk/gui/scripts/vtkheightmapviewer.tcl

    r3917 r3923  
    218218        axisFlymode             "static"
    219219        axisMinorTicks          1
    220         stretchToFit            1
     220        stretchToFit            0
    221221        axisLabels              1
    222222        axisVisible             1
     
    10411041       
    10421042        foreach axis { x y z } {
    1043             set label [$_first hints ${axis}label]
     1043            if { $axis == "z" } {
     1044                set label [$_first hints label]
     1045            } else {
     1046                set label [$_first hints ${axis}label]
     1047            }
     1048 puts stderr "axis=$axis label=$label"
    10441049            if { $label == "" } {
    10451050                if {$axis == "z"} {
     
    10531058                }
    10541059            }
     1060 puts stderr "[list axis name $axis $label]"
    10551061            # May be a space in the axis label.
    10561062            SendCmd [list axis name $axis $label]
     
    14411447                return
    14421448            }
    1443             set label [$_first hints zlabel]
     1449            set label [$_first hints label]
    14441450            if { $label == "" } {
    14451451                if { [string match "component*" $_curFldName] } {
     
    20772083        "static_triad"    "static" \
    20782084        "closest_triad"   "closest" \
    2079         "furthest_triad"  "furthest" \
     2085        "furthest_triad"  "farthest" \
    20802086        "outer_edges"     "outer"         
    20812087    $itk_component(axisflymode) value "static"
  • trunk/gui/scripts/vtkisosurfaceviewer.tcl

    r3899 r3923  
    440440
    441441    eval itk_initialize $args
     442
     443    EnableWaitDialog 500
    442444    Connect
    443445    update
     
    17721774        "static_triad"    "static" \
    17731775        "closest_triad"   "closest" \
    1774         "furthest_triad"  "furthest" \
     1776        "furthest_triad"  "farthest" \
    17751777        "outer_edges"     "outer"         
    17761778    $itk_component(axisMode) value "static"
  • trunk/gui/scripts/vtkstreamlinesviewer.tcl

    r3899 r3923  
    18221822        "static_triad"    "static" \
    18231823        "closest_triad"   "closest" \
    1824         "furthest_triad"  "furthest" \
     1824        "furthest_triad"  "farthest" \
    18251825        "outer_edges"     "outer"         
    18261826    $itk_component(axismode) value "static"
  • trunk/gui/scripts/vtkviewer.tcl

    r3899 r3923  
    19521952        "static_triad"    "static" \
    19531953        "closest_triad"   "closest" \
    1954         "furthest_triad"  "furthest" \
     1954        "furthest_triad"  "farthest" \
    19551955        "outer_edges"     "outer"         
    19561956    $itk_component(axismode) value "static"
  • trunk/gui/scripts/vtkvolumeviewer.tcl

    r3899 r3923  
    17031703        "static_triad"    "static" \
    17041704        "closest_triad"   "closest" \
    1705         "furthest_triad"  "furthest" \
     1705        "furthest_triad"  "farthest" \
    17061706        "outer_edges"     "outer"         
    17071707    $itk_component(axismode) value "static"
Note: See TracChangeset for help on using the changeset viewer.