Changeset 3246


Ignore:
Timestamp:
Jan 9, 2013 11:23:36 AM (12 years ago)
Author:
gah
Message:

make clone of radiodial for sequences

Location:
branches/Rappture 1.2/gui/scripts
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/Rappture 1.2/gui/scripts/Makefile.in

    r3186 r3246  
    102102                $(srcdir)/scroller.tcl \
    103103                $(srcdir)/sequence.tcl \
     104                $(srcdir)/sequencedial.tcl \
    104105                $(srcdir)/sequenceresult.tcl \
    105106                $(srcdir)/service.tcl \
  • branches/Rappture 1.2/gui/scripts/field.tcl

    r3219 r3246  
    12691269
    12701270        set vector [blt::vector create \#auto]
    1271         set values [$_field get $cname.values]
    1272         foreach v $values {
    1273             if {"" != $_units} {
    1274                 set v [Rappture::Units::convert $v \
    1275                            -context $_units -to $_units -units off]
    1276             }
    1277             $vector append $v
    1278         }
     1271        $vector set [$_field get $cname.values]
    12791272        set _comp2dims($cname) "[$mesh dimensions]D"
    12801273        set _comp2heightmap($cname) [list $mesh $vector]
  • branches/Rappture 1.2/gui/scripts/molvisviewer.tcl

    r3177 r3246  
    8181    private variable _width
    8282    private variable _height
    83     private variable _reset 1;  # Restore camera settings
     83    private variable _reset 1;          # Restore camera settings
    8484    private variable _cell 0;           # Restore camera settings
    85     private variable _flush 1
    8685
    8786    constructor { hostlist args } {
     
    501500    # delete all specified dataobjs
    502501    set changed 0
    503     set _flush 1
    504502    foreach dataobj $args {
    505503        set pos [lsearch -exact $_dlist $dataobj]
     
    11341132                                        # until we get an image.
    11351133        #SendCmd "ppm";                 # Flush the results.
    1136         set _flush 0
    11371134    }
    11381135    set _buffering 0;                   # Turn off buffering.
  • branches/Rappture 1.2/gui/scripts/sequenceresult.tcl

    r3210 r3246  
    9393
    9494    itk_component add dial {
    95         Rappture::Radiodial $itk_component(player).dial \
     95        Rappture::SequenceDial $itk_component(player).dial \
    9696            -length 10 -valuewidth 0 -valuepadding 0 -padding 6 \
    9797            -linecolor "" -activelinecolor "" \
  • branches/Rappture 1.2/gui/scripts/vtkheightmapviewer.tcl

    r3245 r3246  
    237237        axis-zgrid              0
    238238        axis-zposition          0
     239        axis-minticks           1
     240        axis-flymode            "static"
    239241        contour-edges           0
    240242        contour-field           "Default"
     
    242244        contour-lighting        1
    243245        contour-opacity         100
    244         contour-visible         1
     246        colormap-visible         1
     247        isolines-visible         1
    245248        contour-wireframe       0
    246249        heightmap-mode          0
     
    716719# ----------------------------------------------------------------------
    717720itcl::body Rappture::VtkHeightmapViewer::Connect {} {
     721    global readyForNextFrame
     722    set readyForNextFrame 1
    718723    set _hosts [GetServerList "vtkvis"]
    719724    if { "" == $_hosts } {
     
    767772    array unset _dataset2style
    768773    array unset _obj2datasets
     774    global readyForNextFrame
     775    set readyForNextFrame 1
    769776}
    770777
     
    814821# ----------------------------------------------------------------------
    815822itcl::body Rappture::VtkHeightmapViewer::ReceiveImage { args } {
     823    global readyForNextFrame
     824    set readyForNextFrame 1
    816825    array set info {
    817826        -token "???"
     
    915924    if { $_reset } {
    916925        InitSettings heightmap-mode
     926        #
     927        # Reset the camera and other view parameters
     928        #
     929        SendCmd "axis color [Color2RGB $itk_option(-plotforeground)]"
     930        SendCmd "axis lrot z 90"
     931        SendCmd "dataset maprange all"
     932        set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     933        $_arcball quaternion $q
     934        if {$_settings(heightmap-mode) } {
     935            SendCmd "camera reset all"
     936            if { $_view(ortho)} {
     937                SendCmd "camera mode ortho"
     938            } else {
     939                SendCmd "camera mode persp"
     940            }
     941        }           
     942        DoRotate
     943        PanCamera
     944    }
     945    set _first ""
     946
     947    #SendCmd "imgflush"
     948
     949    set _first ""
     950    # Start off with no datasets are visible.
     951    SendCmd "dataset visible 0"
     952    set scale [GetHeightmapScale]
     953    foreach dataobj [get -objects] {
     954        if { [info exists _obj2ovride($dataobj-raise)] &&  $_first == "" } {
     955            set _first $dataobj
     956        }
     957        scale $dataobj
     958        set _obj2datasets($dataobj) ""
     959        foreach comp [$dataobj components] {
     960            set tag $dataobj-$comp
     961            if { ![info exists _datasets($tag)] } {
     962                set bytes [$dataobj vtkdata $comp]
     963                set f [open /tmp/vtkheightmap.vtk "w"]
     964                puts $f $bytes
     965                close $f
     966                set length [string length $bytes]
     967                append _outbuf "dataset add $tag data follows $length\n"
     968                append _outbuf $bytes
     969                set _datasets($tag) 1
     970                SetObjectStyle $dataobj $comp
     971            }
     972            lappend _obj2datasets($dataobj) $tag
     973            if { [info exists _obj2ovride($dataobj-raise)] } {
     974                SendCmd "heightmap visible 1 $tag"
     975            }
     976            if { ![info exists _comp2scale($tag)] ||
     977                 $_comp2scale($tag) != $scale } {
     978                SendCmd "heightmap heightscale $scale $tag"
     979                set _comp2scale($tag) $scale
     980            }
     981        }
     982    }
     983    if {"" != $_first} {
     984        set location [$_first hints camera]
     985        if { $location != "" } {
     986            array set view $location
     987        }
     988
     989        if 0 {
     990            # Tell the server the name of the tool, the version, and dataset
     991            # that we are rendering.  Have to do it here because we don't know
     992            # what data objects are using the renderer until be get here.
     993            set args ""
     994            lappend args tool [$_first hints toolId]
     995            lappend args version [$_first hints toolRevision]
     996            lappend args dataset [$_first hints label]
     997            SendCmd "clientinfo $args"
     998        }
     999
     1000        array unset _scalarFields
     1001        array unset _vectorFields
     1002        set _currentField [$_first hints default]
     1003        if { $_currentField == "" } {
     1004            set _currentField [$_first hints label]
     1005        }
     1006        if { $_currentField == "" } {
     1007            puts stderr "no default name from field"
     1008            set _currentField "Default"
     1009        }
     1010        $itk_component(field) choices delete 0 end
     1011        $itk_component(fieldmenu) delete 0 end
     1012        array unset _fields
     1013        foreach { name title units } [$_first hints vectors] {
     1014            set _vectorFields($title) $name
     1015            $itk_component(field) choices insert end "$name" "$title"
     1016            $itk_component(fieldmenu) add radiobutton -label "$title" \
     1017                -value $title -variable [itcl::scope _currentField] \
     1018                -selectcolor red \
     1019                -activebackground $itk_option(-plotbackground) \
     1020                -activeforeground $itk_option(-plotforeground) \
     1021                -font "Arial 8" \
     1022                -command [itcl::code $this Combo invoke]
     1023            set _fields($name) [list $title $units]
     1024        }
     1025        foreach { name title units } [$_first hints scalars] {
     1026            set _scalarFields($title) $name
     1027            $itk_component(field) choices insert end "$name" "$title"
     1028            $itk_component(fieldmenu) add radiobutton -label "$title" \
     1029                -value $title -variable [itcl::scope _currentField] \
     1030                -selectcolor red \
     1031                -activebackground $itk_option(-plotbackground) \
     1032                -activeforeground $itk_option(-plotforeground) \
     1033                -font "Arial 8" \
     1034                -command [itcl::code $this Combo invoke]
     1035            set _fields($name) [list $title $units]
     1036        }
     1037        foreach { name title units } [list default $_currentField ""] {
     1038            set _scalarFields($title) $name
     1039            $itk_component(field) choices insert end "$name" "$title"
     1040            $itk_component(fieldmenu) add radiobutton -label "$title" \
     1041                -value $title -variable [itcl::scope _currentField] \
     1042                -selectcolor red \
     1043                -activebackground $itk_option(-plotbackground) \
     1044                -activeforeground $itk_option(-plotforeground) \
     1045                -font "Arial 8" \
     1046                -command [itcl::code $this Combo invoke]
     1047            set _fields($name) [list $title $units]
     1048        }
     1049        $itk_component(field) value $_currentField
     1050    }
     1051
     1052    InitSettings contour-palette
     1053
     1054    if { $_reset } {
     1055        SendCmd "axis tickpos outside"
     1056        foreach axis { x y z } {
     1057            SendCmd "axis lformat $axis %g"
     1058            #SendCmd "axis range $axis $_limits(${axis}min) $_limits(${axis}max)"
     1059        }
     1060        SendCmd "axis range z $_limits(zmin) $_limits(zmax)"
     1061        foreach axis { x y z } {
     1062            set label [$_first hints ${axis}label]
     1063            if { $label != "" } {
     1064                # May be a space in the axis label.
     1065                SendCmd [list axis name $axis $label]
     1066            }
     1067            set units [$_first hints ${axis}units]
     1068            if { $units != "" } {
     1069                # May be a space in the axis units.
     1070                SendCmd [list axis units $axis $units]
     1071            }
     1072        }
     1073        SendCmd [list axis name z $_currentField]
    9171074        #
    9181075        # Reset the camera and other view parameters
     
    9321089        DoRotate
    9331090        PanCamera
    934     }
    935     set _first ""
    936 
    937     #SendCmd "imgflush"
    938 
    939     set _first ""
    940     # Start off with no datasets are visible.
    941     SendCmd "dataset visible 0"
    942     set scale [GetHeightmapScale]
    943     foreach dataobj [get -objects] {
    944         if { [info exists _obj2ovride($dataobj-raise)] &&  $_first == "" } {
    945             set _first $dataobj
    946         }
    947         scale $dataobj
    948         set _obj2datasets($dataobj) ""
    949         foreach comp [$dataobj components] {
    950             set tag $dataobj-$comp
    951             if { ![info exists _datasets($tag)] } {
    952                 set bytes [$dataobj vtkdata $comp]
    953                 set f [open /tmp/vtkheightmap.vtk "w"]
    954                 puts $f $bytes
    955                 close $f
    956                 set length [string length $bytes]
    957                 append _outbuf "dataset add $tag data follows $length\n"
    958                 append _outbuf $bytes
    959                 set _datasets($tag) 1
    960                 SetObjectStyle $dataobj $comp
    961             }
    962             lappend _obj2datasets($dataobj) $tag
    963             if { [info exists _obj2ovride($dataobj-raise)] } {
    964                 SendCmd "heightmap visible 1 $tag"
    965             }
    966             if { ![info exists _comp2scale($tag)] ||
    967                  $_comp2scale($tag) != $scale } {
    968                 SendCmd "heightmap heightscale $scale $tag"
    969                 set _comp2scale($tag) $scale
    970             }
    971         }
    972     }
    973     if {"" != $_first} {
    974         set location [$_first hints camera]
    975         if { $location != "" } {
    976             array set view $location
    977         }
    978 
    979         if 0 {
    980             # Tell the server the name of the tool, the version, and dataset
    981             # that we are rendering.  Have to do it here because we don't know
    982             # what data objects are using the renderer until be get here.
    983             set args ""
    984             lappend args tool [$_first hints toolId]
    985             lappend args version [$_first hints toolRevision]
    986             lappend args dataset [$_first hints label]
    987             SendCmd "clientinfo $args"
    988         }
    989 
    990         array unset _scalarFields
    991         array unset _vectorFields
    992         set _currentField [$_first hints default]
    993         if { $_currentField == "" } {
    994             set _currentField "Default"
    995         }
    996         $itk_component(field) choices delete 0 end
    997         $itk_component(fieldmenu) delete 0 end
    998         array unset _fields
    999         foreach { name title units } [$_first hints vectors] {
    1000             set _vectorFields($title) $name
    1001             $itk_component(field) choices insert end "$name" "$title"
    1002             $itk_component(fieldmenu) add radiobutton -label "$title" \
    1003                 -value $title -variable [itcl::scope _currentField] \
    1004                 -selectcolor red \
    1005                 -activebackground $itk_option(-plotbackground) \
    1006                 -activeforeground $itk_option(-plotforeground) \
    1007                 -font "Arial 8" \
    1008                 -command [itcl::code $this Combo invoke]
    1009             set _fields($name) [list $title $units]
    1010         }
    1011         foreach { name title units } [$_first hints scalars] {
    1012             set _scalarFields($title) $name
    1013             $itk_component(field) choices insert end "$name" "$title"
    1014             $itk_component(fieldmenu) add radiobutton -label "$title" \
    1015                 -value $title -variable [itcl::scope _currentField] \
    1016                 -selectcolor red \
    1017                 -activebackground $itk_option(-plotbackground) \
    1018                 -activeforeground $itk_option(-plotforeground) \
    1019                 -font "Arial 8" \
    1020                 -command [itcl::code $this Combo invoke]
    1021             set _fields($name) [list $title $units]
    1022         }
    1023         foreach { name title units } { default Default "" } {
    1024             set _scalarFields($title) $name
    1025             $itk_component(field) choices insert end "$name" "$title"
    1026             $itk_component(fieldmenu) add radiobutton -label "$title" \
    1027                 -value $title -variable [itcl::scope _currentField] \
    1028                 -selectcolor red \
    1029                 -activebackground $itk_option(-plotbackground) \
    1030                 -activeforeground $itk_option(-plotforeground) \
    1031                 -font "Arial 8" \
    1032                 -command [itcl::code $this Combo invoke]
    1033             set _fields($name) [list $title $units]
    1034         }
    1035         $itk_component(field) value $_currentField
    1036     }
    1037 
    1038     InitSettings contour-palette
    1039 
    1040     if { $_reset } {
    1041         SendCmd "axis tickpos outside"
    1042         foreach axis { x y z } {
    1043             SendCmd "axis lformat $axis %g"
    1044             #SendCmd "axis range $axis $_limits(${axis}min) $_limits(${axis}max)"
    1045         }
    1046         SendCmd "axis range z $_limits(zmin) $_limits(zmax)"
    1047         foreach axis { x y } {
    1048             set label [$_first hints ${axis}label]
    1049             if { $label != "" } {
    1050                 # May be a space in the axis label.
    1051                 SendCmd [list axis name $axis $label]
    1052             }
    1053             set units [$_first hints ${axis}units]
    1054             if { $units != "" } {
    1055                 # May be a space in the axis units.
    1056                 SendCmd [list axis units $axis $units]
    1057             }
    1058         }
    1059         #
    1060         # Reset the camera and other view parameters
    1061         #
    1062         SendCmd "axis color [Color2RGB $itk_option(-plotforeground)]"
    1063         SendCmd "dataset maprange all"
    1064         set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
    1065         $_arcball quaternion $q
    1066         if {$_settings(heightmap-mode) } {
    1067             SendCmd "camera reset all"
    1068             if { $_view(ortho)} {
    1069                 SendCmd "camera mode ortho"
    1070             } else {
    1071                 SendCmd "camera mode persp"
    1072             }
    1073         }           
    1074         DoRotate
    1075         PanCamera
    1076         InitSettings axis-xgrid axis-ygrid axis-zgrid axis-mode \
     1091        InitSettings axis-xgrid axis-ygrid axis-zgrid \
    10771092            axis-visible axis-labels
    10781093        InitSettings contour-opacity \
     
    10821097        set _reset 0
    10831098    }
    1084     set _buffering 0;                        # Turn off buffering.
     1099    global readyForNextFrame
     1100    set readyForNextFrame 0;            # Don't advance to the next frame
     1101    set _buffering 0;                   # Turn off buffering.
    10851102
    10861103    # Actually write the commands to the server socket.  If it fails, we don't
     
    13381355            }
    13391356        }
    1340         "contour-visible" {
    1341             set bool $_settings(contour-visible)
     1357        "colormap-visible" {
     1358            set bool $_settings(colormap-visible)
    13421359            foreach dataset [CurrentDatasets -visible] {
    1343                 SendCmd "heightmap visible $bool $dataset"
    1344             }
    1345             if { $bool } {
    1346                 Rappture::Tooltip::for $itk_component(surface) \
    1347                     "Hide the surface"
    1348             } else {
    1349                 Rappture::Tooltip::for $itk_component(surface) \
    1350                     "Show the surface"
     1360                SendCmd "heightmap surface $bool $dataset"
     1361            }
     1362        }
     1363        "isolines-visible" {
     1364            set bool $_settings(isolines-visible)
     1365            foreach dataset [CurrentDatasets -visible] {
     1366                SendCmd "heightmap isolines $bool $dataset"
    13511367            }
    13521368        }
     
    13761392            SendCmd "axis grid $axis $bool"
    13771393        }
    1378         "axis-mode" {
    1379             set mode [$itk_component(axismode) value]
    1380             set mode [$itk_component(axismode) translate $mode]
     1394        "axis-flymode" {
     1395            set mode [$itk_component(axis-flymode) value]
     1396            set mode [$itk_component(axis-flymmode) translate $mode]
    13811397            set _settings($what) $mode
    13821398            SendCmd "axis flymode $mode"
     1399        }
     1400        "axis-minticks" {
     1401            set bool $_settings(axis-minticks)
     1402            foreach axis { x y z } {
     1403                SendCmd "axis minticks ${axis} $bool"
     1404            }
    13831405        }
    13841406        "contour-isolines" {
     
    13861408            EventuallyContour $n
    13871409        }
    1388         "contour-visible" {
     1410        "isolines-visible" {
    13891411            set bool $_settings($what)
    13901412            foreach dataset [CurrentDatasets -visible] {
    1391                 SendCmd "surface visible $bool $dataset"
    1392             }
    1393             if { $bool } {
    1394                 Rappture::Tooltip::for $itk_component(surface) \
    1395                     "Hide the surface"
    1396             } else {
    1397                 Rappture::Tooltip::for $itk_component(surface) \
    1398                     "Show the surface"
     1413                SendCmd "heightmap isolines $bool $dataset"
     1414            }
     1415        }
     1416        "colormap-visible" {
     1417            set bool $_settings($what)
     1418            foreach dataset [CurrentDatasets -visible] {
     1419                SendCmd "heightmap surface $bool $dataset"
    13991420            }
    14001421        }
     
    18711892    $inner configure -borderwidth 4
    18721893
    1873     checkbutton $inner.view \
    1874         -text "Contour/Surface" \
    1875         -variable [itcl::scope _settings(contour-visible)] \
    1876         -command [itcl::code $this AdjustSetting contour-visible] \
     1894    checkbutton $inner.colormap \
     1895        -text "Colormap" \
     1896        -variable [itcl::scope _settings(colormap-visible)] \
     1897        -command [itcl::code $this AdjustSetting colormap-visible] \
     1898        -font "Arial 9"
     1899
     1900    checkbutton $inner.isolines \
     1901        -text "Isolines" \
     1902        -variable [itcl::scope _settings(isolines-visible)] \
     1903        -command [itcl::code $this AdjustSetting isolines-visible] \
    18771904        -font "Arial 9"
    18781905
     
    19221949
    19231950    blt::table $inner \
    1924         0,0 $inner.view      -anchor w -pady 2 -cspan 2 \
    1925         1,0 $inner.legend    -anchor w -pady 2 -cspan 2 \
    1926         2,0 $inner.axes      -anchor w -pady 2 -cspan 2 \
     1951        0,0 $inner.colormap  -anchor w -pady 2 -cspan 2 \
     1952        1,0 $inner.isolines  -anchor w -pady 2 -cspan 2 \
     1953        2,0 $inner.legend    -anchor w -pady 2 -cspan 2 \
     1954        3,0 $inner.axes      -anchor w -pady 2 -cspan 2 \
    19271955        5,0 $inner.contour   -anchor w -pady 2 -cspan 2 \
    19281956        6,0 $inner.heightmap -anchor w -pady 2 -cspan 2 \
    19291957        7,0 $inner.background_l -anchor w -pady 2 \
    19301958        7,1 $inner.background -anchor w -pady 2 \
    1931         8,0 $inner.debug     -anchor w -pady 2 -cspan 2 \
     1959        9,0 $inner.debug     -anchor w -pady 2 -cspan 2 \
    19321960       
    19331961    blt::table configure $inner r* c* -resize none
    19341962    blt::table configure $inner r9 c1 -resize expand
    1935     blt::table configure $inner r4 r7 -height 0.25i
     1963    blt::table configure $inner r4 r8 -height 0.125i
    19361964}
    19371965
     
    19461974    $inner configure -borderwidth 4
    19471975
    1948     checkbutton $inner.contour \
    1949         -text "Show Contour" \
    1950         -variable [itcl::scope _settings(contour-visible)] \
    1951         -command [itcl::code $this AdjustSetting contour-visible] \
     1976    checkbutton $inner.colormap \
     1977        -text "Show Colormap" \
     1978        -variable [itcl::scope _settings(colormap-visible)] \
     1979        -command [itcl::code $this AdjustSetting colormap-visible] \
     1980        -font "Arial 9"
     1981
     1982    checkbutton $inner.isolines \
     1983        -text "Show Isolines" \
     1984        -variable [itcl::scope _settings(isolines-visible)] \
     1985        -command [itcl::code $this AdjustSetting isolines-visible] \
    19521986        -font "Arial 9"
    19531987
     
    20372071
    20382072    blt::table $inner \
    2039         0,0 $inner.contour   -anchor w -pady 2 -cspan 2 \
    2040         1,0 $inner.wireframe -anchor w -pady 2 -cspan 2\
    2041         2,0 $inner.lighting  -anchor w -pady 2 -cspan 2 \
    2042         3,0 $inner.edges     -anchor w -pady 2 -cspan 2 \
    2043         4,0 $inner.field_l   -anchor w -pady 2 \
    2044         4,1 $inner.field     -anchor w -pady 2 -fill x \
    2045         5,0 $inner.palette_l -anchor w -pady 2  \
    2046         5,1 $inner.palette   -anchor w -pady 2 -fill x  \
    2047         6,0 $inner.isolinecolor_l  -anchor w -pady 2  \
    2048         6,1 $inner.isolinecolor    -anchor w -pady 2 -fill x  \
    2049         7,0 $inner.opacity_l -anchor w -pady 2 \
    2050         7,1 $inner.opacity   -fill x   -pady 2 \
    2051         8,0 $inner.scale_l   -anchor w -pady 2 -cspan 2 \
    2052         8,1 $inner.scale     -fill x   -pady 2 -cspan 2 \
     2073        0,0 $inner.colormap   -anchor w -pady 2 -cspan 2 \
     2074        1,0 $inner.isolines   -anchor w -pady 2 -cspan 2 \
     2075        2,0 $inner.wireframe -anchor w -pady 2 -cspan 2\
     2076        3,0 $inner.lighting  -anchor w -pady 2 -cspan 2 \
     2077        4,0 $inner.edges     -anchor w -pady 2 -cspan 2 \
     2078        5,0 $inner.field_l   -anchor w -pady 2 \
     2079        5,1 $inner.field     -anchor w -pady 2 -fill x \
     2080        6,0 $inner.palette_l -anchor w -pady 2  \
     2081        6,1 $inner.palette   -anchor w -pady 2 -fill x  \
     2082        7,0 $inner.isolinecolor_l  -anchor w -pady 2  \
     2083        7,1 $inner.isolinecolor    -anchor w -pady 2 -fill x  \
     2084        8,0 $inner.opacity_l -anchor w -pady 2 \
     2085        8,1 $inner.opacity   -fill x   -pady 2 \
     2086        9,0 $inner.scale_l   -anchor w -pady 2 -cspan 2 \
     2087        9,1 $inner.scale     -fill x   -pady 2 -cspan 2 \
    20532088
    20542089    blt::table configure $inner r* c* -resize none
    2055     blt::table configure $inner r9 c1 -resize expand
     2090    blt::table configure $inner r10 c1 -resize expand
    20562091}
    20572092
     
    20672102
    20682103    checkbutton $inner.visible \
    2069         -text "Show Axes" \
     2104        -text "Axes" \
    20702105        -variable [itcl::scope _settings(axis-visible)] \
    20712106        -command [itcl::code $this AdjustSetting axis-visible] \
    20722107        -font "Arial 9"
    2073 
    20742108    checkbutton $inner.labels \
    2075         -text "Show Axis Labels" \
     2109        -text "Axis Labels" \
    20762110        -variable [itcl::scope _settings(axis-labels)] \
    20772111        -command [itcl::code $this AdjustSetting axis-labels] \
    20782112        -font "Arial 9"
    2079 
     2113    label $inner.grid_l -text "Grid" -font "Arial 9"
    20802114    checkbutton $inner.gridx \
    2081         -text "Show X Grid" \
     2115        -text "X" \
    20822116        -variable [itcl::scope _settings(axis-xgrid)] \
    20832117        -command [itcl::code $this AdjustSetting axis-xgrid] \
    20842118        -font "Arial 9"
    20852119    checkbutton $inner.gridy \
    2086         -text "Show Y Grid" \
     2120        -text "Y" \
    20872121        -variable [itcl::scope _settings(axis-ygrid)] \
    20882122        -command [itcl::code $this AdjustSetting axis-ygrid] \
    20892123        -font "Arial 9"
    20902124    checkbutton $inner.gridz \
    2091         -text "Show Z Grid" \
     2125        -text "Z" \
    20922126        -variable [itcl::scope _settings(axis-zgrid)] \
    20932127        -command [itcl::code $this AdjustSetting axis-zgrid] \
    20942128        -font "Arial 9"
     2129    checkbutton $inner.minorticks \
     2130        -text "Minor Ticks" \
     2131        -variable [itcl::scope _settings(axis-minticks)] \
     2132        -command [itcl::code $this AdjustSetting axis-minticks] \
     2133        -font "Arial 9"
     2134
    20952135
    20962136    label $inner.mode_l -text "Mode" -font "Arial 9"
    20972137
    2098     itk_component add axismode {
     2138    itk_component add axis-flymode {
    20992139        Rappture::Combobox $inner.mode -width 10 -editable no
    21002140    }
     
    21042144        "furthest_triad"  "furthest" \
    21052145        "outer_edges"     "outer"         
    2106     $itk_component(axismode) value "static"
    2107     bind $inner.mode <<Value>> [itcl::code $this AdjustSetting axis-mode]
     2146    $itk_component(axis-flymode) value "static"
     2147    bind $inner.mode <<Value>> [itcl::code $this AdjustSetting axis-flymode]
    21082148
    21092149    blt::table $inner \
    2110         0,0 $inner.visible -anchor w -cspan 2 \
    2111         1,0 $inner.labels  -anchor w -cspan 2 \
    2112         2,0 $inner.gridx   -anchor w -cspan 2 \
    2113         3,0 $inner.gridy   -anchor w -cspan 2 \
    2114         4,0 $inner.gridz   -anchor w -cspan 2 \
    2115         5,0 $inner.mode_l  -anchor w -cspan 2 -padx { 2 0 } \
    2116         6,0 $inner.mode    -fill x   -cspan 2
     2150        0,0 $inner.visible -anchor w -cspan 4 \
     2151        1,0 $inner.labels  -anchor w -cspan 4 \
     2152        2,0 $inner.minorticks  -anchor w -cspan 4 \
     2153        4,0 $inner.grid_l  -anchor w \
     2154        4,1 $inner.gridx   -anchor w \
     2155        4,2 $inner.gridy   -anchor w \
     2156        4,3 $inner.gridz   -anchor w \
     2157        5,0 $inner.mode_l  -anchor w -padx { 2 0 } \
     2158        5,1 $inner.mode    -fill x -cspan 3
    21172159
    21182160    blt::table configure $inner r* c* -resize none
    2119     blt::table configure $inner r7 c1 -resize expand
     2161    blt::table configure $inner r7 c6 -resize expand
     2162    blt::table configure $inner r3 -height 0.125i
    21202163}
    21212164
Note: See TracChangeset for help on using the changeset viewer.