Ignore:
Timestamp:
Nov 26, 2014, 4:45:43 PM (10 years ago)
Author:
gah
Message:

sync with 1.4-pre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uq/gui/scripts/vtkstreamlinesviewer.tcl

    r4460 r4797  
    226226        axesVisible             1
    227227        axisLabelsVisible       1
     228        axisMinorTicks          1
    228229        axisXGrid               0
    229230        axisYGrid               0
     
    799800                set session $env(SESSION)
    800801            }
     802            lappend info "version" "$Rappture::version"
     803            lappend info "build" "$Rappture::build"
     804            lappend info "svnurl" "$Rappture::svnurl"
     805            lappend info "installdir" "$Rappture::installdir"
    801806            lappend info "hub" [exec hostname]
    802807            lappend info "client" "vtkstreamlinesviewer"
     
    966971        DoResize
    967972        InitSettings axisXGrid axisYGrid axisZGrid axis-mode \
    968             axesVisible axisLabelsVisible
     973            axesVisible axisLabelsVisible axisMinorTicks
    969974        # This "imgflush" is to force an image returned before vtkvis starts
    970975        # reading a (big) dataset.  This will display an empty plot with axes
     
    13231328    switch -- $what {
    13241329        "volumeOpacity" {
    1325             set val $_settings(volumeOpacity)
     1330            set val $_settings($what)
    13261331            set sval [expr { 0.01 * double($val) }]
    13271332            SendCmd "polydata opacity $sval"
    13281333        }
    13291334        "volumeWireframe" {
    1330             set bool $_settings(volumeWireframe)
     1335            set bool $_settings($what)
    13311336            SendCmd "polydata wireframe $bool"
    13321337        }
    13331338        "volumeVisible" {
    1334             set bool $_settings(volumeVisible)
     1339            set bool $_settings($what)
    13351340            SendCmd "polydata visible $bool"
    13361341            if { $bool } {
     
    13431348        }
    13441349        "volumeLighting" {
    1345             set bool $_settings(volumeLighting)
     1350            set bool $_settings($what)
    13461351            SendCmd "polydata lighting $bool"
    13471352        }
    13481353        "volumeEdges" {
    1349             set bool $_settings(volumeEdges)
     1354            set bool $_settings($what)
    13501355            SendCmd "polydata edges $bool"
    13511356        }
    13521357        "axesVisible" {
    1353             set bool $_settings(axesVisible)
     1358            set bool $_settings($what)
    13541359            SendCmd "axis visible all $bool"
    13551360        }
    13561361        "axisLabelsVisible" {
    1357             set bool $_settings(axisLabelsVisible)
     1362            set bool $_settings($what)
    13581363            SendCmd "axis labels all $bool"
     1364        }
     1365        "axisMinorTicks" {
     1366            set bool $_settings($what)
     1367            SendCmd "axis minticks all $bool"
    13591368        }
    13601369        "axisXGrid" - "axisYGrid" - "axisZGrid" {
     
    14521461        }
    14531462        "streamlinesOpacity" {
    1454             set val $_settings(streamlinesOpacity)
     1463            set val $_settings($what)
    14551464            set sval [expr { 0.01 * double($val) }]
    14561465            SendCmd "streamlines opacity $sval"
    14571466        }
    14581467        "streamlinesScale" {
    1459             set val $_settings(streamlinesScale)
     1468            set val $_settings($what)
    14601469            set sval [expr { 0.01 * double($val) }]
    14611470            SendCmd "streamlines scale $sval $sval $sval"
    14621471        }
    14631472        "streamlinesLighting" {
    1464             set bool $_settings(streamlinesLighting)
     1473            set bool $_settings($what)
    14651474            SendCmd "streamlines lighting $bool"
    14661475        }
     
    17701779    set inner [$itk_component(main) insert end \
    17711780        -title "Axis Settings" \
    1772         -icon [Rappture::icon axis1]]
     1781        -icon [Rappture::icon axis2]]
    17731782    $inner configure -borderwidth 4
    17741783
    17751784    checkbutton $inner.visible \
    1776         -text "Show Axes" \
     1785        -text "Axes" \
    17771786        -variable [itcl::scope _settings(axesVisible)] \
    17781787        -command [itcl::code $this AdjustSetting axesVisible] \
     
    17801789
    17811790    checkbutton $inner.labels \
    1782         -text "Show Axis Labels" \
     1791        -text "Axis Labels" \
    17831792        -variable [itcl::scope _settings(axisLabelsVisible)] \
    17841793        -command [itcl::code $this AdjustSetting axisLabelsVisible] \
    17851794        -font "Arial 9"
    1786 
     1795    label $inner.grid_l -text "Grid" -font "Arial 9"
    17871796    checkbutton $inner.xgrid \
    1788         -text "Show X Grid" \
     1797        -text "X" \
    17891798        -variable [itcl::scope _settings(axisXGrid)] \
    17901799        -command [itcl::code $this AdjustSetting axisXGrid] \
    17911800        -font "Arial 9"
    17921801    checkbutton $inner.ygrid \
    1793         -text "Show Y Grid" \
     1802        -text "Y" \
    17941803        -variable [itcl::scope _settings(axisYGrid)] \
    17951804        -command [itcl::code $this AdjustSetting axisYGrid] \
    17961805        -font "Arial 9"
    17971806    checkbutton $inner.zgrid \
    1798         -text "Show Z Grid" \
     1807        -text "Z" \
    17991808        -variable [itcl::scope _settings(axisZGrid)] \
    18001809        -command [itcl::code $this AdjustSetting axisZGrid] \
     1810        -font "Arial 9"
     1811    checkbutton $inner.minorticks \
     1812        -text "Minor Ticks" \
     1813        -variable [itcl::scope _settings(axisMinorTicks)] \
     1814        -command [itcl::code $this AdjustSetting axisMinorTicks] \
    18011815        -font "Arial 9"
    18021816
     
    18151829
    18161830    blt::table $inner \
    1817         0,0 $inner.visible -anchor w -cspan 2 \
    1818         1,0 $inner.labels  -anchor w -cspan 2 \
    1819         2,0 $inner.xgrid   -anchor w -cspan 2 \
    1820         3,0 $inner.ygrid   -anchor w -cspan 2 \
    1821         4,0 $inner.zgrid   -anchor w -cspan 2 \
    1822         5,0 $inner.mode_l  -anchor w -cspan 2 -padx { 2 0 } \
    1823         6,0 $inner.mode    -fill x   -cspan 2
     1831        0,0 $inner.visible -anchor w -cspan 4 \
     1832        1,0 $inner.labels  -anchor w -cspan 4 \
     1833        2,0 $inner.minorticks  -anchor w -cspan 4 \
     1834        4,0 $inner.grid_l  -anchor w \
     1835        4,1 $inner.xgrid   -anchor w \
     1836        4,2 $inner.ygrid   -anchor w \
     1837        4,3 $inner.zgrid   -anchor w \
     1838        5,0 $inner.mode_l  -anchor w -padx { 2 0 } \
     1839        5,1 $inner.mode    -fill x   -cspan 3
    18241840
    18251841    blt::table configure $inner r* c* -resize none
    1826     blt::table configure $inner r7 c1 -resize expand
    1827 }
    1828 
     1842    blt::table configure $inner r7 c6 -resize expand
     1843    blt::table configure $inner r3 -height 0.125i
     1844}
    18291845
    18301846itcl::body Rappture::VtkStreamlinesViewer::BuildCameraTab {} {
     
    21432159    }
    21442160    array set settings $style
     2161    StartBufferingCommands
    21452162    SendCmd "streamlines add $tag"
    21462163    SendCmd "streamlines seed visible off $tag"
     
    21492166        set length [string length $seeds]
    21502167        SendCmd "streamlines seed fmesh 200 data follows $length $tag"
    2151         SendCmd "$seeds"
     2168        append _outbuf $seeds
    21522169        set _seeds($dataobj) 1
    21532170    }
     
    21602177    set _settings(volumeWireframe) $settings(-wireframe)
    21612178    set _settings(volumeOpacity) [expr $settings(-opacity) * 100.0]
     2179    StopBufferingCommands
    21622180    SetColormap $dataobj $comp
    21632181}
Note: See TracChangeset for help on using the changeset viewer.