Changeset 1511


Ignore:
Timestamp:
Jun 12, 2009, 3:53:22 PM (15 years ago)
Author:
gah
Message:

remove components from unirect3d class

Location:
trunk/gui/scripts
Files:
4 edited

Legend:

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

    r1496 r1511  
    855855        set max 0
    856856        foreach cname [$_field children -type component] {
    857             if { [info exists _comp2unirect3d($cname)] } {
    858                 set value [$_comp2unirect3d($cname) components]
    859             } elseif { [info exists _comp2unirect2d($cname)] } {
    860                 set value [$_comp2unirect2d($cname) components]
    861             } elseif { [info exists _comp2extents($cname)] } {
    862                 set value $_comp2extents($cname)
    863             } else {
     857            if { ![info exists _comp2unirect3d($cname)] &&
     858                 ![info exists _comp2extents($cname)] } {
    864859                continue
    865860            }
     861            set value $_comp2extents($cname)
    866862            if { $max < $value } {
    867863                set max $value
     
    872868    if { $what == "component0"} {
    873869        set what [lindex [components -name] 0]
    874         if { [info exists _comp2unirect3d($what)] } {
    875             return [$_comp2unirect3d($what) components]
    876         } elseif { [info exists _comp2unirect2d($what)] } {
    877             return [$_comp2unirect2d($what) components]
    878         } elseif { [info exists _comp2extents($what)] } {
    879             return $_comp2extents($what)
    880         }
    881870    }
    882871    return $_comp2extents($what)
  • trunk/gui/scripts/flowspeed.tcl

    r1496 r1511  
    7272        [itcl::code $this _validate %A]
    7373    bind $itk_component(entry) <KeyPress-Return> \
     74        "$this value \[$itk_component(entry) get\]"
     75    bind $itk_component(entry) <KeyPress-Tab> \
    7476        "$this value \[$itk_component(entry) get\]"
    7577
  • trunk/gui/scripts/flowvisviewer.tcl

    r1509 r1511  
    425425    }
    426426    bind $itk_component(duration) <Return> [itcl::code $this flow duration]
     427    bind $itk_component(duration) <Tab> [itcl::code $this flow duration]
    427428    Rappture::Tooltip::for $itk_component(duration) \
    428429        "Set duration of flow (format is min:sec)"
     
    28852886    set framerate [expr 1000.0 / $_flow(delay)]
    28862887    set framerate 25.0
    2887     set bitrate 400000
     2888    set bitrate 6000000
    28882889
    28892890    set start [clock seconds]
  • trunk/gui/scripts/unirect3d.tcl

    r1509 r1511  
    3030        return _axisOrder;
    3131    }
    32     public method components {} {
    33         return _components;
    34     }
    3532    private method GetString { obj path varName }
    3633    private method GetValue { obj path varName }
     
    4744    private variable _zMin       0
    4845    private variable _zNum       0
    49     private variable _components 1
    5046    private variable _values     ""; # BLT vector containing the z-values
    5147    private variable _hints
     
    7167    GetSize $m "yaxis.numpoints" _yNum
    7268    GetSize $m "zaxis.numpoints" _zNum
    73     GetSize $m "components" _components
    7469    itcl::delete object $m
    7570
     
    10095    lappend data "zmin" $_zMin "zmax" $_zMax "znum" $_zNum
    10196    lappend data "axisorder" $_axisOrder
    102     lappend data "components" $_components
    10397    if { [$_values length] > 0 } {
    10498        lappend data "values" [$_values range 0 end]
Note: See TracChangeset for help on using the changeset viewer.