Changeset 4166 for trunk/gui/scripts/flowvisviewer.tcl
- Timestamp:
- Feb 1, 2014, 5:21:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/flowvisviewer.tcl
r4165 r4166 69 69 public method isconnected {} 70 70 public method limits { cname } 71 public method over marker { m x }71 public method overMarker { m x } 72 72 public method parameters {title args} { 73 73 # do nothing 74 74 } 75 public method r mdupmarker { m x }75 public method removeDuplicateMarker { m x } 76 76 public method scale {args} 77 public method update transferfuncs {}77 public method updateTransferFunctions {} 78 78 79 79 protected method Connect {} … … 1103 1103 unset _recvObjs($tag) 1104 1104 if { [array size _recvObjs] == 0 } { 1105 update transferfuncs1105 updateTransferFunctions 1106 1106 } 1107 1107 } … … 1631 1631 set tf $_activeTf 1632 1632 set _settings($this-$tf-opacity) $opacity 1633 update transferfuncs1633 updateTransferFunctions 1634 1634 } 1635 1635 } … … 1642 1642 set tf $_activeTf 1643 1643 set _settings($this-$tf-thickness) $sval 1644 update transferfuncs1644 updateTransferFunctions 1645 1645 } 1646 1646 } … … 1911 1911 SendCmd "grid axiscolor $rgb" 1912 1912 SendCmd "grid linecolor $rgb" 1913 $itk_component(legend) itemconfigure labels -fill $color 1914 $itk_component(legend) itemconfigure limits -fill $color 1913 $itk_component(legend) itemconfigure labels -fill $color 1914 $itk_component(legend) itemconfigure limits -fill $color 1915 1915 } 1916 1916 } … … 1946 1946 set x [expr {double($i)/($levels+1)}] 1947 1947 set m [Rappture::IsoMarker \#auto $c $this $tf] 1948 $itk_component(legend) itemconfigure labels -fill $itk_option(-plotforeground) 1948 1949 $m relval $x 1949 1950 lappend _isomarkers($tf) $m … … 1952 1953 foreach x $levels { 1953 1954 set m [Rappture::IsoMarker \#auto $c $this $tf] 1955 $itk_component(legend) itemconfigure labels -fill $itk_option(-plotforeground) 1954 1956 $m relval $x 1955 1957 lappend _isomarkers($tf) $m … … 1979 1981 set value [expr {$value * 0.01}] 1980 1982 set m [Rappture::IsoMarker \#auto $c $this $tf] 1983 $itk_component(legend) itemconfigure labels -fill $itk_option(-plotforeground) 1981 1984 $m relval $value 1982 1985 lappend _isomarkers($tf) $m … … 1984 1987 # ${n} : Set absolute value. 1985 1988 set m [Rappture::IsoMarker \#auto $c $this $tf] 1989 $itk_component(legend) itemconfigure labels -fill $itk_option(-plotforeground) 1986 1990 $m absval $value 1987 1991 lappend _isomarkers($tf) $m … … 1993 1997 # USAGE: UndateTransferFuncs 1994 1998 # ---------------------------------------------------------------------- 1995 itcl::body Rappture::FlowvisViewer::update transferfuncs {} {1999 itcl::body Rappture::FlowvisViewer::updateTransferFunctions {} { 1996 2000 $_dispatcher event -after 100 !send_transfunc 1997 2001 } … … 2004 2008 set c $itk_component(legend) 2005 2009 set m [Rappture::IsoMarker \#auto $c $this $tf] 2010 $itk_component(legend) itemconfigure labels -fill $itk_option(-plotforeground) 2006 2011 set w [winfo width $c] 2007 2012 $m relval [expr {double($x-10)/($w-20)}] 2008 2013 lappend _isomarkers($tf) $m 2009 update transferfuncs2014 updateTransferFunctions 2010 2015 return 1 2011 2016 } 2012 2017 2013 itcl::body Rappture::FlowvisViewer::r mdupmarker { marker x } {2018 itcl::body Rappture::FlowvisViewer::removeDuplicateMarker { marker x } { 2014 2019 set tf [$marker transferfunc] 2015 2020 set bool 0 … … 2031 2036 } 2032 2037 set _isomarkers($tf) $list 2033 update transferfuncs2038 updateTransferFunctions 2034 2039 } 2035 2040 return $bool 2036 2041 } 2037 2042 2038 itcl::body Rappture::FlowvisViewer::over marker { marker x } {2043 itcl::body Rappture::FlowvisViewer::overMarker { marker x } { 2039 2044 set tf [$marker transferfunc] 2040 2045 if { [info exists _isomarkers($tf)] } {
Note: See TracChangeset
for help on using the changeset viewer.