Changeset 3365 for trunk/gui/scripts


Ignore:
Timestamp:
Feb 26, 2013 2:47:04 PM (11 years ago)
Author:
gah
Message:

fix for old unirect2d blob method, field limits for unirect2d

Location:
trunk/gui/scripts
Files:
3 edited

Legend:

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

    r3330 r3365  
    322322    }
    323323    if {[info exists _comp2unirect2d($cname)]} {
    324         return [$_comp2unirect2d($cname) blob]
     324        set blob [$_comp2unirect2d($cname) blob]
     325        lappend blob "values" $_values
     326        return $blob
    325327    }
    326328    if {[info exists _comp2unirect3d($cname)]} {
     
    391393            }
    392394            2D - 3D {
    393                 if {[info exists _comp2unirect2d($cname)]} {
    394                     set limits [$_comp2unirect2d($cname) limits $which]
    395                     foreach {axisMin axisMax} $limits break
    396                     set axis v
    397                 } elseif {[info exists _comp2unirect3d($cname)]} {
     395                if {[info exists _comp2unirect3d($cname)]} {
    398396                    set limits [$_comp2unirect3d($cname) limits $which]
    399397                    foreach {axisMin axisMax} $limits break
     
    11931191        set _comp2flowhints($cname) \
    11941192            [Rappture::FlowHints ::\#auto $_field $cname $_units]
    1195         set _values [$_field element $cname.values]
     1193        set _values [$_field get $cname.values]
     1194        set limits {}
     1195        foreach axis { x y } {
     1196            lappend limits $axis [$_comp2unirect2d($cname) limits $axis]
     1197        }
     1198        set xv [blt::vector create \#auto]
     1199        $xv set $_values
     1200        lappend limits "v" [$xv limits]
     1201        blt::vector destroy $xv
     1202        set _comp2limits($cname) $limits
    11961203        incr _counter
    11971204        return
  • trunk/gui/scripts/flowvisviewer.tcl

    r3362 r3365  
    339339    set _image(legend) [image create photo]
    340340    itk_component add legend {
    341         canvas $itk_component(plotarea).legend -height 50 -highlightthickness 0
     341        canvas $itk_component(plotarea).legend \
     342            -height 50 -highlightthickness 0 -background black
    342343    } {
    343344        usual
     
    729730# ----------------------------------------------------------------------
    730731itcl::body Rappture::FlowvisViewer::scale {args} {
    731     foreach val {xmin xmax ymin ymax zmin zmax vmin vmax} {
     732    foreach val {xmin xmax ymin ymax vmin vmax} {
    732733        set _limits($val) ""
    733734    }
    734735    foreach obj $args {
    735         foreach axis {x y z v} {
     736        foreach axis {x y v} {
    736737
    737738            foreach { min max } [$obj limits $axis] break
     
    11051106    set h [winfo height $c]
    11061107    set lx 10
     1108    # FIXME:  I don't know what I have to do this for the 2D flow
     1109    #         example.  Otherwise the canvas background is white.
     1110    #         I'll get to this when we add background changes into
     1111    #         nanvis.
     1112    $c configure -background black
    11071113    set ly [expr {$h - 1}]
    11081114    if {"" == [$c find withtag transfunc]} {
  • trunk/gui/scripts/nanovisviewer.tcl

    r3362 r3365  
    691691            # The volume hasn't reached the server yet.  How did we get
    692692            # here?
    693             puts stderr "Don't have $vol in _serverVols"
     693            puts stderr "Don't have $tag in _serverDatasets"
    694694            continue
    695695        }
Note: See TracChangeset for help on using the changeset viewer.