Changeset 3246
- Timestamp:
- Jan 9, 2013 11:23:36 AM (12 years ago)
- Location:
- branches/Rappture 1.2/gui/scripts
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Rappture 1.2/gui/scripts/Makefile.in
r3186 r3246 102 102 $(srcdir)/scroller.tcl \ 103 103 $(srcdir)/sequence.tcl \ 104 $(srcdir)/sequencedial.tcl \ 104 105 $(srcdir)/sequenceresult.tcl \ 105 106 $(srcdir)/service.tcl \ -
branches/Rappture 1.2/gui/scripts/field.tcl
r3219 r3246 1269 1269 1270 1270 set vector [blt::vector create \#auto] 1271 set values [$_field get $cname.values] 1272 foreach v $values { 1273 if {"" != $_units} { 1274 set v [Rappture::Units::convert $v \ 1275 -context $_units -to $_units -units off] 1276 } 1277 $vector append $v 1278 } 1271 $vector set [$_field get $cname.values] 1279 1272 set _comp2dims($cname) "[$mesh dimensions]D" 1280 1273 set _comp2heightmap($cname) [list $mesh $vector] -
branches/Rappture 1.2/gui/scripts/molvisviewer.tcl
r3177 r3246 81 81 private variable _width 82 82 private variable _height 83 private variable _reset 1; 83 private variable _reset 1; # Restore camera settings 84 84 private variable _cell 0; # Restore camera settings 85 private variable _flush 186 85 87 86 constructor { hostlist args } { … … 501 500 # delete all specified dataobjs 502 501 set changed 0 503 set _flush 1504 502 foreach dataobj $args { 505 503 set pos [lsearch -exact $_dlist $dataobj] … … 1134 1132 # until we get an image. 1135 1133 #SendCmd "ppm"; # Flush the results. 1136 set _flush 01137 1134 } 1138 1135 set _buffering 0; # Turn off buffering. -
branches/Rappture 1.2/gui/scripts/sequenceresult.tcl
r3210 r3246 93 93 94 94 itk_component add dial { 95 Rappture:: Radiodial $itk_component(player).dial \95 Rappture::SequenceDial $itk_component(player).dial \ 96 96 -length 10 -valuewidth 0 -valuepadding 0 -padding 6 \ 97 97 -linecolor "" -activelinecolor "" \ -
branches/Rappture 1.2/gui/scripts/vtkheightmapviewer.tcl
r3245 r3246 237 237 axis-zgrid 0 238 238 axis-zposition 0 239 axis-minticks 1 240 axis-flymode "static" 239 241 contour-edges 0 240 242 contour-field "Default" … … 242 244 contour-lighting 1 243 245 contour-opacity 100 244 contour-visible 1 246 colormap-visible 1 247 isolines-visible 1 245 248 contour-wireframe 0 246 249 heightmap-mode 0 … … 716 719 # ---------------------------------------------------------------------- 717 720 itcl::body Rappture::VtkHeightmapViewer::Connect {} { 721 global readyForNextFrame 722 set readyForNextFrame 1 718 723 set _hosts [GetServerList "vtkvis"] 719 724 if { "" == $_hosts } { … … 767 772 array unset _dataset2style 768 773 array unset _obj2datasets 774 global readyForNextFrame 775 set readyForNextFrame 1 769 776 } 770 777 … … 814 821 # ---------------------------------------------------------------------- 815 822 itcl::body Rappture::VtkHeightmapViewer::ReceiveImage { args } { 823 global readyForNextFrame 824 set readyForNextFrame 1 816 825 array set info { 817 826 -token "???" … … 915 924 if { $_reset } { 916 925 InitSettings heightmap-mode 926 # 927 # Reset the camera and other view parameters 928 # 929 SendCmd "axis color [Color2RGB $itk_option(-plotforeground)]" 930 SendCmd "axis lrot z 90" 931 SendCmd "dataset maprange all" 932 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] 933 $_arcball quaternion $q 934 if {$_settings(heightmap-mode) } { 935 SendCmd "camera reset all" 936 if { $_view(ortho)} { 937 SendCmd "camera mode ortho" 938 } else { 939 SendCmd "camera mode persp" 940 } 941 } 942 DoRotate 943 PanCamera 944 } 945 set _first "" 946 947 #SendCmd "imgflush" 948 949 set _first "" 950 # Start off with no datasets are visible. 951 SendCmd "dataset visible 0" 952 set scale [GetHeightmapScale] 953 foreach dataobj [get -objects] { 954 if { [info exists _obj2ovride($dataobj-raise)] && $_first == "" } { 955 set _first $dataobj 956 } 957 scale $dataobj 958 set _obj2datasets($dataobj) "" 959 foreach comp [$dataobj components] { 960 set tag $dataobj-$comp 961 if { ![info exists _datasets($tag)] } { 962 set bytes [$dataobj vtkdata $comp] 963 set f [open /tmp/vtkheightmap.vtk "w"] 964 puts $f $bytes 965 close $f 966 set length [string length $bytes] 967 append _outbuf "dataset add $tag data follows $length\n" 968 append _outbuf $bytes 969 set _datasets($tag) 1 970 SetObjectStyle $dataobj $comp 971 } 972 lappend _obj2datasets($dataobj) $tag 973 if { [info exists _obj2ovride($dataobj-raise)] } { 974 SendCmd "heightmap visible 1 $tag" 975 } 976 if { ![info exists _comp2scale($tag)] || 977 $_comp2scale($tag) != $scale } { 978 SendCmd "heightmap heightscale $scale $tag" 979 set _comp2scale($tag) $scale 980 } 981 } 982 } 983 if {"" != $_first} { 984 set location [$_first hints camera] 985 if { $location != "" } { 986 array set view $location 987 } 988 989 if 0 { 990 # Tell the server the name of the tool, the version, and dataset 991 # that we are rendering. Have to do it here because we don't know 992 # what data objects are using the renderer until be get here. 993 set args "" 994 lappend args tool [$_first hints toolId] 995 lappend args version [$_first hints toolRevision] 996 lappend args dataset [$_first hints label] 997 SendCmd "clientinfo $args" 998 } 999 1000 array unset _scalarFields 1001 array unset _vectorFields 1002 set _currentField [$_first hints default] 1003 if { $_currentField == "" } { 1004 set _currentField [$_first hints label] 1005 } 1006 if { $_currentField == "" } { 1007 puts stderr "no default name from field" 1008 set _currentField "Default" 1009 } 1010 $itk_component(field) choices delete 0 end 1011 $itk_component(fieldmenu) delete 0 end 1012 array unset _fields 1013 foreach { name title units } [$_first hints vectors] { 1014 set _vectorFields($title) $name 1015 $itk_component(field) choices insert end "$name" "$title" 1016 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1017 -value $title -variable [itcl::scope _currentField] \ 1018 -selectcolor red \ 1019 -activebackground $itk_option(-plotbackground) \ 1020 -activeforeground $itk_option(-plotforeground) \ 1021 -font "Arial 8" \ 1022 -command [itcl::code $this Combo invoke] 1023 set _fields($name) [list $title $units] 1024 } 1025 foreach { name title units } [$_first hints scalars] { 1026 set _scalarFields($title) $name 1027 $itk_component(field) choices insert end "$name" "$title" 1028 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1029 -value $title -variable [itcl::scope _currentField] \ 1030 -selectcolor red \ 1031 -activebackground $itk_option(-plotbackground) \ 1032 -activeforeground $itk_option(-plotforeground) \ 1033 -font "Arial 8" \ 1034 -command [itcl::code $this Combo invoke] 1035 set _fields($name) [list $title $units] 1036 } 1037 foreach { name title units } [list default $_currentField ""] { 1038 set _scalarFields($title) $name 1039 $itk_component(field) choices insert end "$name" "$title" 1040 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1041 -value $title -variable [itcl::scope _currentField] \ 1042 -selectcolor red \ 1043 -activebackground $itk_option(-plotbackground) \ 1044 -activeforeground $itk_option(-plotforeground) \ 1045 -font "Arial 8" \ 1046 -command [itcl::code $this Combo invoke] 1047 set _fields($name) [list $title $units] 1048 } 1049 $itk_component(field) value $_currentField 1050 } 1051 1052 InitSettings contour-palette 1053 1054 if { $_reset } { 1055 SendCmd "axis tickpos outside" 1056 foreach axis { x y z } { 1057 SendCmd "axis lformat $axis %g" 1058 #SendCmd "axis range $axis $_limits(${axis}min) $_limits(${axis}max)" 1059 } 1060 SendCmd "axis range z $_limits(zmin) $_limits(zmax)" 1061 foreach axis { x y z } { 1062 set label [$_first hints ${axis}label] 1063 if { $label != "" } { 1064 # May be a space in the axis label. 1065 SendCmd [list axis name $axis $label] 1066 } 1067 set units [$_first hints ${axis}units] 1068 if { $units != "" } { 1069 # May be a space in the axis units. 1070 SendCmd [list axis units $axis $units] 1071 } 1072 } 1073 SendCmd [list axis name z $_currentField] 917 1074 # 918 1075 # Reset the camera and other view parameters … … 932 1089 DoRotate 933 1090 PanCamera 934 } 935 set _first "" 936 937 #SendCmd "imgflush" 938 939 set _first "" 940 # Start off with no datasets are visible. 941 SendCmd "dataset visible 0" 942 set scale [GetHeightmapScale] 943 foreach dataobj [get -objects] { 944 if { [info exists _obj2ovride($dataobj-raise)] && $_first == "" } { 945 set _first $dataobj 946 } 947 scale $dataobj 948 set _obj2datasets($dataobj) "" 949 foreach comp [$dataobj components] { 950 set tag $dataobj-$comp 951 if { ![info exists _datasets($tag)] } { 952 set bytes [$dataobj vtkdata $comp] 953 set f [open /tmp/vtkheightmap.vtk "w"] 954 puts $f $bytes 955 close $f 956 set length [string length $bytes] 957 append _outbuf "dataset add $tag data follows $length\n" 958 append _outbuf $bytes 959 set _datasets($tag) 1 960 SetObjectStyle $dataobj $comp 961 } 962 lappend _obj2datasets($dataobj) $tag 963 if { [info exists _obj2ovride($dataobj-raise)] } { 964 SendCmd "heightmap visible 1 $tag" 965 } 966 if { ![info exists _comp2scale($tag)] || 967 $_comp2scale($tag) != $scale } { 968 SendCmd "heightmap heightscale $scale $tag" 969 set _comp2scale($tag) $scale 970 } 971 } 972 } 973 if {"" != $_first} { 974 set location [$_first hints camera] 975 if { $location != "" } { 976 array set view $location 977 } 978 979 if 0 { 980 # Tell the server the name of the tool, the version, and dataset 981 # that we are rendering. Have to do it here because we don't know 982 # what data objects are using the renderer until be get here. 983 set args "" 984 lappend args tool [$_first hints toolId] 985 lappend args version [$_first hints toolRevision] 986 lappend args dataset [$_first hints label] 987 SendCmd "clientinfo $args" 988 } 989 990 array unset _scalarFields 991 array unset _vectorFields 992 set _currentField [$_first hints default] 993 if { $_currentField == "" } { 994 set _currentField "Default" 995 } 996 $itk_component(field) choices delete 0 end 997 $itk_component(fieldmenu) delete 0 end 998 array unset _fields 999 foreach { name title units } [$_first hints vectors] { 1000 set _vectorFields($title) $name 1001 $itk_component(field) choices insert end "$name" "$title" 1002 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1003 -value $title -variable [itcl::scope _currentField] \ 1004 -selectcolor red \ 1005 -activebackground $itk_option(-plotbackground) \ 1006 -activeforeground $itk_option(-plotforeground) \ 1007 -font "Arial 8" \ 1008 -command [itcl::code $this Combo invoke] 1009 set _fields($name) [list $title $units] 1010 } 1011 foreach { name title units } [$_first hints scalars] { 1012 set _scalarFields($title) $name 1013 $itk_component(field) choices insert end "$name" "$title" 1014 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1015 -value $title -variable [itcl::scope _currentField] \ 1016 -selectcolor red \ 1017 -activebackground $itk_option(-plotbackground) \ 1018 -activeforeground $itk_option(-plotforeground) \ 1019 -font "Arial 8" \ 1020 -command [itcl::code $this Combo invoke] 1021 set _fields($name) [list $title $units] 1022 } 1023 foreach { name title units } { default Default "" } { 1024 set _scalarFields($title) $name 1025 $itk_component(field) choices insert end "$name" "$title" 1026 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1027 -value $title -variable [itcl::scope _currentField] \ 1028 -selectcolor red \ 1029 -activebackground $itk_option(-plotbackground) \ 1030 -activeforeground $itk_option(-plotforeground) \ 1031 -font "Arial 8" \ 1032 -command [itcl::code $this Combo invoke] 1033 set _fields($name) [list $title $units] 1034 } 1035 $itk_component(field) value $_currentField 1036 } 1037 1038 InitSettings contour-palette 1039 1040 if { $_reset } { 1041 SendCmd "axis tickpos outside" 1042 foreach axis { x y z } { 1043 SendCmd "axis lformat $axis %g" 1044 #SendCmd "axis range $axis $_limits(${axis}min) $_limits(${axis}max)" 1045 } 1046 SendCmd "axis range z $_limits(zmin) $_limits(zmax)" 1047 foreach axis { x y } { 1048 set label [$_first hints ${axis}label] 1049 if { $label != "" } { 1050 # May be a space in the axis label. 1051 SendCmd [list axis name $axis $label] 1052 } 1053 set units [$_first hints ${axis}units] 1054 if { $units != "" } { 1055 # May be a space in the axis units. 1056 SendCmd [list axis units $axis $units] 1057 } 1058 } 1059 # 1060 # Reset the camera and other view parameters 1061 # 1062 SendCmd "axis color [Color2RGB $itk_option(-plotforeground)]" 1063 SendCmd "dataset maprange all" 1064 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] 1065 $_arcball quaternion $q 1066 if {$_settings(heightmap-mode) } { 1067 SendCmd "camera reset all" 1068 if { $_view(ortho)} { 1069 SendCmd "camera mode ortho" 1070 } else { 1071 SendCmd "camera mode persp" 1072 } 1073 } 1074 DoRotate 1075 PanCamera 1076 InitSettings axis-xgrid axis-ygrid axis-zgrid axis-mode \ 1091 InitSettings axis-xgrid axis-ygrid axis-zgrid \ 1077 1092 axis-visible axis-labels 1078 1093 InitSettings contour-opacity \ … … 1082 1097 set _reset 0 1083 1098 } 1084 set _buffering 0; # Turn off buffering. 1099 global readyForNextFrame 1100 set readyForNextFrame 0; # Don't advance to the next frame 1101 set _buffering 0; # Turn off buffering. 1085 1102 1086 1103 # Actually write the commands to the server socket. If it fails, we don't … … 1338 1355 } 1339 1356 } 1340 "co ntour-visible" {1341 set bool $_settings(co ntour-visible)1357 "colormap-visible" { 1358 set bool $_settings(colormap-visible) 1342 1359 foreach dataset [CurrentDatasets -visible] { 1343 SendCmd "heightmap visible $bool $dataset" 1344 } 1345 if { $bool } { 1346 Rappture::Tooltip::for $itk_component(surface) \ 1347 "Hide the surface" 1348 } else { 1349 Rappture::Tooltip::for $itk_component(surface) \ 1350 "Show the surface" 1360 SendCmd "heightmap surface $bool $dataset" 1361 } 1362 } 1363 "isolines-visible" { 1364 set bool $_settings(isolines-visible) 1365 foreach dataset [CurrentDatasets -visible] { 1366 SendCmd "heightmap isolines $bool $dataset" 1351 1367 } 1352 1368 } … … 1376 1392 SendCmd "axis grid $axis $bool" 1377 1393 } 1378 "axis- mode" {1379 set mode [$itk_component(axis mode) value]1380 set mode [$itk_component(axis mode) translate $mode]1394 "axis-flymode" { 1395 set mode [$itk_component(axis-flymode) value] 1396 set mode [$itk_component(axis-flymmode) translate $mode] 1381 1397 set _settings($what) $mode 1382 1398 SendCmd "axis flymode $mode" 1399 } 1400 "axis-minticks" { 1401 set bool $_settings(axis-minticks) 1402 foreach axis { x y z } { 1403 SendCmd "axis minticks ${axis} $bool" 1404 } 1383 1405 } 1384 1406 "contour-isolines" { … … 1386 1408 EventuallyContour $n 1387 1409 } 1388 " contour-visible" {1410 "isolines-visible" { 1389 1411 set bool $_settings($what) 1390 1412 foreach dataset [CurrentDatasets -visible] { 1391 SendCmd "surface visible $bool $dataset" 1392 } 1393 if { $bool } { 1394 Rappture::Tooltip::for $itk_component(surface) \ 1395 "Hide the surface" 1396 } else { 1397 Rappture::Tooltip::for $itk_component(surface) \ 1398 "Show the surface" 1413 SendCmd "heightmap isolines $bool $dataset" 1414 } 1415 } 1416 "colormap-visible" { 1417 set bool $_settings($what) 1418 foreach dataset [CurrentDatasets -visible] { 1419 SendCmd "heightmap surface $bool $dataset" 1399 1420 } 1400 1421 } … … 1871 1892 $inner configure -borderwidth 4 1872 1893 1873 checkbutton $inner.view \ 1874 -text "Contour/Surface" \ 1875 -variable [itcl::scope _settings(contour-visible)] \ 1876 -command [itcl::code $this AdjustSetting contour-visible] \ 1894 checkbutton $inner.colormap \ 1895 -text "Colormap" \ 1896 -variable [itcl::scope _settings(colormap-visible)] \ 1897 -command [itcl::code $this AdjustSetting colormap-visible] \ 1898 -font "Arial 9" 1899 1900 checkbutton $inner.isolines \ 1901 -text "Isolines" \ 1902 -variable [itcl::scope _settings(isolines-visible)] \ 1903 -command [itcl::code $this AdjustSetting isolines-visible] \ 1877 1904 -font "Arial 9" 1878 1905 … … 1922 1949 1923 1950 blt::table $inner \ 1924 0,0 $inner.view -anchor w -pady 2 -cspan 2 \ 1925 1,0 $inner.legend -anchor w -pady 2 -cspan 2 \ 1926 2,0 $inner.axes -anchor w -pady 2 -cspan 2 \ 1951 0,0 $inner.colormap -anchor w -pady 2 -cspan 2 \ 1952 1,0 $inner.isolines -anchor w -pady 2 -cspan 2 \ 1953 2,0 $inner.legend -anchor w -pady 2 -cspan 2 \ 1954 3,0 $inner.axes -anchor w -pady 2 -cspan 2 \ 1927 1955 5,0 $inner.contour -anchor w -pady 2 -cspan 2 \ 1928 1956 6,0 $inner.heightmap -anchor w -pady 2 -cspan 2 \ 1929 1957 7,0 $inner.background_l -anchor w -pady 2 \ 1930 1958 7,1 $inner.background -anchor w -pady 2 \ 1931 8,0 $inner.debug -anchor w -pady 2 -cspan 2 \1959 9,0 $inner.debug -anchor w -pady 2 -cspan 2 \ 1932 1960 1933 1961 blt::table configure $inner r* c* -resize none 1934 1962 blt::table configure $inner r9 c1 -resize expand 1935 blt::table configure $inner r4 r 7 -height 0.25i1963 blt::table configure $inner r4 r8 -height 0.125i 1936 1964 } 1937 1965 … … 1946 1974 $inner configure -borderwidth 4 1947 1975 1948 checkbutton $inner.contour \ 1949 -text "Show Contour" \ 1950 -variable [itcl::scope _settings(contour-visible)] \ 1951 -command [itcl::code $this AdjustSetting contour-visible] \ 1976 checkbutton $inner.colormap \ 1977 -text "Show Colormap" \ 1978 -variable [itcl::scope _settings(colormap-visible)] \ 1979 -command [itcl::code $this AdjustSetting colormap-visible] \ 1980 -font "Arial 9" 1981 1982 checkbutton $inner.isolines \ 1983 -text "Show Isolines" \ 1984 -variable [itcl::scope _settings(isolines-visible)] \ 1985 -command [itcl::code $this AdjustSetting isolines-visible] \ 1952 1986 -font "Arial 9" 1953 1987 … … 2037 2071 2038 2072 blt::table $inner \ 2039 0,0 $inner.contour -anchor w -pady 2 -cspan 2 \ 2040 1,0 $inner.wireframe -anchor w -pady 2 -cspan 2\ 2041 2,0 $inner.lighting -anchor w -pady 2 -cspan 2 \ 2042 3,0 $inner.edges -anchor w -pady 2 -cspan 2 \ 2043 4,0 $inner.field_l -anchor w -pady 2 \ 2044 4,1 $inner.field -anchor w -pady 2 -fill x \ 2045 5,0 $inner.palette_l -anchor w -pady 2 \ 2046 5,1 $inner.palette -anchor w -pady 2 -fill x \ 2047 6,0 $inner.isolinecolor_l -anchor w -pady 2 \ 2048 6,1 $inner.isolinecolor -anchor w -pady 2 -fill x \ 2049 7,0 $inner.opacity_l -anchor w -pady 2 \ 2050 7,1 $inner.opacity -fill x -pady 2 \ 2051 8,0 $inner.scale_l -anchor w -pady 2 -cspan 2 \ 2052 8,1 $inner.scale -fill x -pady 2 -cspan 2 \ 2073 0,0 $inner.colormap -anchor w -pady 2 -cspan 2 \ 2074 1,0 $inner.isolines -anchor w -pady 2 -cspan 2 \ 2075 2,0 $inner.wireframe -anchor w -pady 2 -cspan 2\ 2076 3,0 $inner.lighting -anchor w -pady 2 -cspan 2 \ 2077 4,0 $inner.edges -anchor w -pady 2 -cspan 2 \ 2078 5,0 $inner.field_l -anchor w -pady 2 \ 2079 5,1 $inner.field -anchor w -pady 2 -fill x \ 2080 6,0 $inner.palette_l -anchor w -pady 2 \ 2081 6,1 $inner.palette -anchor w -pady 2 -fill x \ 2082 7,0 $inner.isolinecolor_l -anchor w -pady 2 \ 2083 7,1 $inner.isolinecolor -anchor w -pady 2 -fill x \ 2084 8,0 $inner.opacity_l -anchor w -pady 2 \ 2085 8,1 $inner.opacity -fill x -pady 2 \ 2086 9,0 $inner.scale_l -anchor w -pady 2 -cspan 2 \ 2087 9,1 $inner.scale -fill x -pady 2 -cspan 2 \ 2053 2088 2054 2089 blt::table configure $inner r* c* -resize none 2055 blt::table configure $inner r 9c1 -resize expand2090 blt::table configure $inner r10 c1 -resize expand 2056 2091 } 2057 2092 … … 2067 2102 2068 2103 checkbutton $inner.visible \ 2069 -text " ShowAxes" \2104 -text "Axes" \ 2070 2105 -variable [itcl::scope _settings(axis-visible)] \ 2071 2106 -command [itcl::code $this AdjustSetting axis-visible] \ 2072 2107 -font "Arial 9" 2073 2074 2108 checkbutton $inner.labels \ 2075 -text " ShowAxis Labels" \2109 -text "Axis Labels" \ 2076 2110 -variable [itcl::scope _settings(axis-labels)] \ 2077 2111 -command [itcl::code $this AdjustSetting axis-labels] \ 2078 2112 -font "Arial 9" 2079 2113 label $inner.grid_l -text "Grid" -font "Arial 9" 2080 2114 checkbutton $inner.gridx \ 2081 -text " Show X Grid" \2115 -text "X" \ 2082 2116 -variable [itcl::scope _settings(axis-xgrid)] \ 2083 2117 -command [itcl::code $this AdjustSetting axis-xgrid] \ 2084 2118 -font "Arial 9" 2085 2119 checkbutton $inner.gridy \ 2086 -text " Show Y Grid" \2120 -text "Y" \ 2087 2121 -variable [itcl::scope _settings(axis-ygrid)] \ 2088 2122 -command [itcl::code $this AdjustSetting axis-ygrid] \ 2089 2123 -font "Arial 9" 2090 2124 checkbutton $inner.gridz \ 2091 -text " Show Z Grid" \2125 -text "Z" \ 2092 2126 -variable [itcl::scope _settings(axis-zgrid)] \ 2093 2127 -command [itcl::code $this AdjustSetting axis-zgrid] \ 2094 2128 -font "Arial 9" 2129 checkbutton $inner.minorticks \ 2130 -text "Minor Ticks" \ 2131 -variable [itcl::scope _settings(axis-minticks)] \ 2132 -command [itcl::code $this AdjustSetting axis-minticks] \ 2133 -font "Arial 9" 2134 2095 2135 2096 2136 label $inner.mode_l -text "Mode" -font "Arial 9" 2097 2137 2098 itk_component add axis mode {2138 itk_component add axis-flymode { 2099 2139 Rappture::Combobox $inner.mode -width 10 -editable no 2100 2140 } … … 2104 2144 "furthest_triad" "furthest" \ 2105 2145 "outer_edges" "outer" 2106 $itk_component(axis mode) value "static"2107 bind $inner.mode <<Value>> [itcl::code $this AdjustSetting axis- mode]2146 $itk_component(axis-flymode) value "static" 2147 bind $inner.mode <<Value>> [itcl::code $this AdjustSetting axis-flymode] 2108 2148 2109 2149 blt::table $inner \ 2110 0,0 $inner.visible -anchor w -cspan 2 \ 2111 1,0 $inner.labels -anchor w -cspan 2 \ 2112 2,0 $inner.gridx -anchor w -cspan 2 \ 2113 3,0 $inner.gridy -anchor w -cspan 2 \ 2114 4,0 $inner.gridz -anchor w -cspan 2 \ 2115 5,0 $inner.mode_l -anchor w -cspan 2 -padx { 2 0 } \ 2116 6,0 $inner.mode -fill x -cspan 2 2150 0,0 $inner.visible -anchor w -cspan 4 \ 2151 1,0 $inner.labels -anchor w -cspan 4 \ 2152 2,0 $inner.minorticks -anchor w -cspan 4 \ 2153 4,0 $inner.grid_l -anchor w \ 2154 4,1 $inner.gridx -anchor w \ 2155 4,2 $inner.gridy -anchor w \ 2156 4,3 $inner.gridz -anchor w \ 2157 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 2158 5,1 $inner.mode -fill x -cspan 3 2117 2159 2118 2160 blt::table configure $inner r* c* -resize none 2119 blt::table configure $inner r7 c1 -resize expand 2161 blt::table configure $inner r7 c6 -resize expand 2162 blt::table configure $inner r3 -height 0.125i 2120 2163 } 2121 2164
Note: See TracChangeset
for help on using the changeset viewer.