Changeset 4489


Ignore:
Timestamp:
Jul 13, 2014 3:15:16 PM (7 years ago)
Author:
ldelgass
Message:

If field component is dx and there is a flow, use the flowvisviewer.

File:
1 edited

Legend:

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

    r4423 r4489  
    366366    }
    367367    if {[info exists _comp2dx($cname)]} {
    368         error "method \"values\" is not implemented for dx data"
     368        error "method \"values\" is not implemented for dx file data"
    369369    }
    370370    if {[info exists _comp2unirect2d($cname)]} {
     
    406406}
    407407
     408# ----------------------------------------------------------------------
     409# USAGE: valueLimits <cname>
     410#
     411# Returns an array for the requested component with a list {min max}
     412# representing the limits for each axis.
     413# ----------------------------------------------------------------------
    408414itcl::body Rappture::Field::valueLimits { cname } {
    409415    if { [info exists _comp2limits($cname)] } {
     
    531537    return [list $min $max]
    532538}
    533 
    534539
    535540# ----------------------------------------------------------------------
     
    900905            }
    901906            if { $_viewer == "" } {
    902                 set _viewer "nanovis"
     907                if {[$_field element $cname.flow] != ""} {
     908                    set _viewer "flowvis"
     909                } else {
     910                    set _viewer "nanovis"
     911                }
    903912            }
    904913            set _dim 3
Note: See TracChangeset for help on using the changeset viewer.