Changeset 4770 for branches/1.3
- Timestamp:
- Nov 23, 2014, 4:24:53 AM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/vtkheightmapviewer.tcl
r4768 r4770 218 218 219 219 array set _settings { 220 -axisflymode 220 -axisflymode "static" 221 221 -axislabels 1 222 -axisminorticks 223 -axisvisible 222 -axisminorticks 1 223 -axisvisible 1 224 224 -colormap BCGYR 225 225 -colormapdiscrete 0 226 226 -colormapvisible 1 227 -edges 228 -field 229 -heightmapscale 230 -isheightmap 227 -edges 0 228 -field "Default" 229 -heightmapscale 50 230 -isheightmap 0 231 231 -isolinecolor black 232 232 -isolinesvisible 1 233 233 -legendvisible 1 234 -lighting 235 -numisolines 234 -lighting 1 235 -numisolines 10 236 236 -opacity 100 237 -outline 238 -savelighting 239 -saveopacity 240 -saveoutline 241 -stretchtofit 242 -wireframe 243 -xgrid 244 -ygrid 245 -zgrid 237 -outline 0 238 -savelighting 1 239 -saveopacity 100 240 -saveoutline 0 241 -stretchtofit 0 242 -wireframe 0 243 -xgrid 0 244 -ygrid 0 245 -zgrid 0 246 246 } 247 247 array set _changed { … … 1380 1380 SendCmd "axis visible all $bool" 1381 1381 } 1382 "-xgrid" - "-ygrid" - "-zgrid" {1383 set axis [string tolower [string range $what 1 1]]1384 set bool $_settings($what)1385 SendCmd "axis grid $axis $bool"1386 }1387 1382 "-background" { 1388 1383 set bg [$itk_component(background) value] … … 1668 1663 SendCmd "heightmap wireframe $bool" 1669 1664 } 1665 "-xgrid" - "-ygrid" - "-zgrid" { 1666 set axis [string tolower [string range $what 1 1]] 1667 set bool $_settings($what) 1668 SendCmd "axis grid $axis $bool" 1669 } 1670 1670 default { 1671 1671 error "don't know how to fix $what" … … 1779 1779 SendCmd "heightmap colormap $_currentColormap" 1780 1780 } 1781 1782 1781 1783 1782 # … … 2093 2092 } 2094 2093 2095 2096 2094 itcl::body Rappture::VtkHeightmapViewer::BuildCameraTab {} { 2097 2095 set inner [$itk_component(main) insert end \ … … 2112 2110 0,0 $inner.view_l -anchor e -pady 2 \ 2113 2111 0,1 $inner.view -anchor w -pady 2 2112 blt::table configure $inner r0 -resize none 2114 2113 2115 2114 set labels { qx qy qz qw xpan ypan zoom } … … 2139 2138 incr row 2140 2139 2141 blt::table configure $inner c* r*-resize none2140 blt::table configure $inner c* -resize none 2142 2141 blt::table configure $inner c2 -resize expand 2143 2142 blt::table configure $inner r$row -resize expand -
branches/1.3/gui/scripts/vtkimageviewer.tcl
r4768 r4770 80 80 private method EventuallyRequestLegend {} 81 81 private method EventuallyResize { w h } 82 private method EventuallyRotate { q } 82 private method EventuallyRotate { q } 83 83 private method GetImage { args } 84 84 private method GetVtkData { args } … … 213 213 214 214 array set _settings { 215 axisFlymode"static"216 axisLabels1217 axisMinorTicks1218 axisVisible1219 axisXGrid 0220 axisYGrid 0221 axisZGrid0222 backingColor white223 backingVisible 1224 colormapDiscrete 0225 field "Default"226 legendVisible0227 level 127.5228 numColors 256229 opacity 100230 outline0231 saveOpacity 100232 stretchToFit0233 view3D0234 window 255.0215 -axisflymode "static" 216 -axislabels 1 217 -axisminorticks 1 218 -axisvisible 1 219 -backingcolor white 220 -backingvisible 1 221 -colormapdiscrete 0 222 -field "Default" 223 -legendvisible 0 224 -level 127.5 225 -numcolors 256 226 -opacity 100 227 -outline 0 228 -saveopacity 100 229 -stretchtofit 0 230 -view3d 0 231 -window 255.0 232 -xgrid 0 233 -ygrid 0 234 -zgrid 0 235 235 } 236 236 array set _changed { 237 opacity0238 colormap0237 -colormap 0 238 -opacity 0 239 239 } 240 240 itk_component add view { … … 315 315 -onimage [Rappture::icon surface] \ 316 316 -offimage [Rappture::icon surface] \ 317 -variable [itcl::scope _settings( view3D)] \318 -command [itcl::code $this AdjustSetting view3D] \317 -variable [itcl::scope _settings(-view3d)] \ 318 -command [itcl::code $this AdjustSetting -view3d] \ 319 319 } 320 320 Rappture::Tooltip::for $itk_component(mode) \ … … 326 326 -onimage [Rappture::icon stretchtofit] \ 327 327 -offimage [Rappture::icon stretchtofit] \ 328 -variable [itcl::scope _settings( stretchToFit)] \329 -command [itcl::code $this AdjustSetting stretchToFit] \328 -variable [itcl::scope _settings(-stretchtofit)] \ 329 -command [itcl::code $this AdjustSetting -stretchtofit] \ 330 330 } 331 331 Rappture::Tooltip::for $itk_component(stretchtofit) \ … … 655 655 } 656 656 if { [array size found] > 1 } { 657 set _settings( stretchToFit) 1657 set _settings(-stretchtofit) 1 658 658 } else { 659 659 # Check if the range of the x and y axes requires that we stretch … … 664 664 if { (($xmax - $xmin) > (($ymax -$ymin) * $_maxScale)) || 665 665 ((($xmax - $xmin) * $_maxScale) < ($ymax -$ymin)) } { 666 set _settings( stretchToFit) 1666 set _settings(-stretchtofit) 1 667 667 } 668 668 } … … 918 918 $_arcball resize $w $h 919 919 DoResize 920 if { $_settings( stretchToFit) } {921 AdjustSetting stretchToFit920 if { $_settings(-stretchtofit) } { 921 AdjustSetting -stretchToFit 922 922 } 923 923 } … … 926 926 # Reset the camera and other view parameters 927 927 # 928 InitSettings view3Dbackground928 InitSettings -view3d -background 929 929 930 930 SendCmd "axis lrot z 90" 931 931 $_arcball quaternion [ViewToQuaternion] 932 if {$_settings( view3D) } {932 if {$_settings(-view3d) } { 933 933 if { $_view(-ortho)} { 934 934 SendCmd "camera mode ortho" … … 1018 1018 $itk_component(field) value $_curFldLabel 1019 1019 } 1020 InitSettings stretchToFitoutline1020 InitSettings -stretchtofit -outline 1021 1021 1022 1022 if { $_reset } { … … 1048 1048 # 1049 1049 $_arcball quaternion [ViewToQuaternion] 1050 if {$_settings( view3D) } {1050 if {$_settings(-view3d) } { 1051 1051 if { $_view(-ortho)} { 1052 1052 SendCmd "camera mode ortho" … … 1058 1058 } 1059 1059 PanCamera 1060 InitSettings axisXGrid axisYGrid axisZGrid \1061 axisVisible axisLabels field view3D 1060 InitSettings -xgrid -ygrid -zgrid \ 1061 -axisvisible -axislabels -field -view3d 1062 1062 if { [array size _fields] < 2 } { 1063 1063 catch {blt::table forget $itk_component(field) $itk_component(field_l)} … … 1156 1156 } 1157 1157 $_arcball quaternion [ViewToQuaternion] 1158 if {$_settings( view3D) } {1158 if {$_settings(-view3d) } { 1159 1159 DoRotate 1160 1160 } … … 1290 1290 itcl::body Rappture::VtkImageViewer::InitSettings { args } { 1291 1291 foreach spec $args { 1292 if { [info exists _settings($_first -$spec)] } {1292 if { [info exists _settings($_first${spec})] } { 1293 1293 # Reset global setting with dataobj specific setting 1294 set _settings($spec) $_settings($_first -$spec)1294 set _settings($spec) $_settings($_first${spec}) 1295 1295 } 1296 1296 AdjustSetting $spec … … 1310 1310 } 1311 1311 switch -- $what { 1312 " axisFlymode" {1312 "-axisflymode" { 1313 1313 set mode [$itk_component(axisflymode) value] 1314 1314 set mode [$itk_component(axisflymode) translate $mode] … … 1316 1316 SendCmd "axis flymode $mode" 1317 1317 } 1318 " axisLabels" {1318 "-axislabels" { 1319 1319 set bool $_settings($what) 1320 1320 SendCmd "axis labels all $bool" 1321 1321 } 1322 " axisMinorTicks" {1322 "-axisminorticks" { 1323 1323 set bool $_settings($what) 1324 1324 SendCmd "axis minticks all $bool" 1325 1325 } 1326 " axisVisible" {1326 "-axisvisible" { 1327 1327 set bool $_settings($what) 1328 1328 SendCmd "axis visible all $bool" 1329 1329 } 1330 "axisXGrid" - "axisYGrid" - "axisZGrid" { 1331 set axis [string tolower [string range $what 4 4]] 1332 set bool $_settings($what) 1333 SendCmd "axis grid $axis $bool" 1334 } 1335 "background" { 1330 "-background" { 1336 1331 set bg [$itk_component(background) value] 1337 1332 array set fgcolors { … … 1348 1343 DrawLegend 1349 1344 } 1350 " backingColor" {1345 "-backingcolor" { 1351 1346 set color [$itk_component(backingcolor) value] 1352 1347 if { $color == "none" } { 1353 if { $_settings( backingVisible) } {1348 if { $_settings(-backingvisible) } { 1354 1349 SendCmd "image backing 0" 1355 set _settings( backingVisible) 01350 set _settings(-backingvisible) 0 1356 1351 } 1357 1352 } else { 1358 if { !$_settings( backingVisible) } {1353 if { !$_settings(-backingvisible) } { 1359 1354 SendCmd "image backing 1" 1360 set _settings( backingVisible) 11355 set _settings(-backingvisible) 1 1361 1356 } 1362 1357 SendCmd "image color [Color2RGB $color]" 1363 1358 } 1364 1359 } 1365 " backingVisible" {1360 "-backingvisible" { 1366 1361 set bool $_settings($what) 1367 1362 SendCmd "image backing $bool" 1368 1363 } 1369 " colormap" {1364 "-colormap" { 1370 1365 set _changed($what) 1 1371 1366 StartBufferingCommands … … 1373 1368 set _settings($what) $color 1374 1369 SetCurrentColormap $color 1375 if {$_settings( colormapDiscrete)} {1376 SendCmd "colormap res $_settings( numColors) $color"1370 if {$_settings(-colormapdiscrete)} { 1371 SendCmd "colormap res $_settings(-numcolors) $color" 1377 1372 } 1378 1373 StopBufferingCommands 1379 1374 EventuallyRequestLegend 1380 1375 } 1381 " colormapDiscrete" {1376 "-colormapdiscrete" { 1382 1377 set bool $_settings($what) 1383 1378 StartBufferingCommands 1384 1379 if {$bool} { 1385 SendCmd "colormap res $_settings( numColors)"1380 SendCmd "colormap res $_settings(-numcolors)" 1386 1381 } else { 1387 1382 SendCmd "colormap res default" … … 1390 1385 EventuallyRequestLegend 1391 1386 } 1392 " field" {1387 "-field" { 1393 1388 set label [$itk_component(field) value] 1394 1389 set fname [$itk_component(field) translate $label] … … 1414 1409 DrawLegend 1415 1410 } 1416 " view3D" {1411 "-view3d" { 1417 1412 set bool $_settings($what) 1418 1413 set c $itk_component(view) … … 1420 1415 # Fix image scale: 0 for contours, 1 for images. 1421 1416 if { $bool } { 1422 set _settings( opacity) $_settings(saveOpacity)1417 set _settings(-opacity) $_settings(-saveopacity) 1423 1418 } else { 1424 set _settings( opacity) 1001425 } 1426 AdjustSetting opacity1419 set _settings(-opacity) 100 1420 } 1421 AdjustSetting -opacity 1427 1422 if { $bool } { 1428 1423 $itk_component(opacity) configure -state normal … … 1438 1433 $itk_component(opacity_l) configure -state disabled 1439 1434 SendCmd "camera mode image" 1440 if {$_settings( stretchToFit)} {1435 if {$_settings(-stretchtofit)} { 1441 1436 SendCmd "camera aspect window" 1442 1437 } … … 1465 1460 StopBufferingCommands 1466 1461 } 1467 " window" {1462 "-window" { 1468 1463 set val $_settings($what) 1469 1464 SendCmd "image window $val" 1470 1465 } 1471 " level" {1466 "-level" { 1472 1467 set val $_settings($what) 1473 1468 SendCmd "image level $val" 1474 1469 } 1475 " legendVisible" {1470 "-legendvisible" { 1476 1471 if { !$_settings($what) } { 1477 1472 $itk_component(view) delete legend … … 1479 1474 DrawLegend 1480 1475 } 1481 " opacity" {1476 "-opacity" { 1482 1477 set _changed($what) 1 1483 if { $_settings( view3D) } {1484 set _settings( saveOpacity) $_settings($what)1478 if { $_settings(-view3d) } { 1479 set _settings(-saveopacity) $_settings($what) 1485 1480 set val [expr $_settings($what) * 0.01] 1486 1481 SendCmd "image opacity $val" … … 1489 1484 } 1490 1485 } 1491 " outline" {1486 "-outline" { 1492 1487 set bool $_settings($what) 1493 1488 SendCmd "outline visible $bool" 1494 1489 } 1495 " stretchToFit" {1490 "-stretchtofit" { 1496 1491 set bool $_settings($what) 1497 1492 if { $bool } { 1498 if { $_settings( view3D) } {1493 if { $_settings(-view3d) } { 1499 1494 SendCmd "camera aspect native" 1500 1495 } else { … … 1505 1500 } 1506 1501 } 1502 "-xgrid" - "-ygrid" - "-zgrid" { 1503 set axis [string tolower [string range $what 1 1]] 1504 set bool $_settings($what) 1505 SendCmd "axis grid $axis $bool" 1506 } 1507 1507 default { 1508 1508 error "don't know how to fix $what" … … 1594 1594 switch -- $itk_option(-mode) { 1595 1595 "volume" { 1596 set _settings( view3D) 11596 set _settings(-view3d) 1 1597 1597 } 1598 1598 "vtkimage" { 1599 set _settings( view3D) 01599 set _settings(-view3d) 0 1600 1600 } 1601 1601 default { … … 1604 1604 } 1605 1605 if { !$_reset } { 1606 AdjustSetting view3D1606 AdjustSetting -view3d 1607 1607 } 1608 1608 } … … 1646 1646 checkbutton $inner.legend \ 1647 1647 -text "Legend" \ 1648 -variable [itcl::scope _settings( legendVisible)] \1649 -command [itcl::code $this AdjustSetting legendVisible] \1648 -variable [itcl::scope _settings(-legendvisible)] \ 1649 -command [itcl::code $this AdjustSetting -legendvisible] \ 1650 1650 -font "Arial 9" 1651 1651 1652 1652 checkbutton $inner.outline \ 1653 1653 -text "Outline" \ 1654 -variable [itcl::scope _settings( outline)] \1655 -command [itcl::code $this AdjustSetting outline] \1654 -variable [itcl::scope _settings(-outline)] \ 1655 -command [itcl::code $this AdjustSetting -outline] \ 1656 1656 -font "Arial 9" 1657 1657 1658 1658 checkbutton $inner.backing \ 1659 1659 -text "Backing" \ 1660 -variable [itcl::scope _settings( backingVisible)] \1661 -command [itcl::code $this AdjustSetting backingVisible] \1660 -variable [itcl::scope _settings(-backingvisible)] \ 1661 -command [itcl::code $this AdjustSetting -backingvisible] \ 1662 1662 -font "Arial 9" 1663 1663 1664 1664 checkbutton $inner.stretch \ 1665 1665 -text "Stretch to fit" \ 1666 -variable [itcl::scope _settings( stretchToFit)] \1667 -command [itcl::code $this AdjustSetting stretchToFit] \1666 -variable [itcl::scope _settings(-stretchtofit)] \ 1667 -command [itcl::code $this AdjustSetting -stretchtofit] \ 1668 1668 -font "Arial 9" 1669 1669 1670 1670 checkbutton $inner.colormapDiscrete \ 1671 1671 -text "Discrete Colormap" \ 1672 -variable [itcl::scope _settings( colormapDiscrete)] \1673 -command [itcl::code $this AdjustSetting colormapDiscrete] \1672 -variable [itcl::scope _settings(-colormapdiscrete)] \ 1673 -command [itcl::code $this AdjustSetting -colormapdiscrete] \ 1674 1674 -font "Arial 9" 1675 1675 … … 1683 1683 } 1684 1684 bind $inner.field <<Value>> \ 1685 [itcl::code $this AdjustSetting field]1685 [itcl::code $this AdjustSetting -field] 1686 1686 1687 1687 label $inner.colormap_l -text "Colormap" -font "Arial 9" … … 1693 1693 $itk_component(colormap) value "BCGYR" 1694 1694 bind $inner.colormap <<Value>> \ 1695 [itcl::code $this AdjustSetting colormap]1695 [itcl::code $this AdjustSetting -colormap] 1696 1696 1697 1697 label $inner.backingcolor_l -text "Backing Color" -font "Arial 9" … … 1711 1711 "none" "none" 1712 1712 1713 $itk_component(backingcolor) value "white"1713 $itk_component(backingcolor) value $_settings(-backingcolor) 1714 1714 bind $inner.backingcolor <<Value>> \ 1715 [itcl::code $this AdjustSetting backingColor]1715 [itcl::code $this AdjustSetting -backingcolor] 1716 1716 1717 1717 label $inner.background_l -text "Background Color" -font "Arial 9" … … 1725 1725 1726 1726 $itk_component(background) value "white" 1727 bind $inner.background <<Value>> [itcl::code $this AdjustSetting background] 1727 bind $inner.background <<Value>> \ 1728 [itcl::code $this AdjustSetting -background] 1728 1729 1729 1730 itk_component add opacity_l { … … 1734 1735 itk_component add opacity { 1735 1736 ::scale $inner.opacity -from 0 -to 100 -orient horizontal \ 1736 -variable [itcl::scope _settings( opacity)] \1737 -variable [itcl::scope _settings(-opacity)] \ 1737 1738 -showvalue off \ 1738 -command [itcl::code $this AdjustSetting opacity]1739 -command [itcl::code $this AdjustSetting -opacity] 1739 1740 } 1740 1741 … … 1746 1747 itk_component add window { 1747 1748 ::scale $inner.window -from 0 -to 255 -orient horizontal \ 1748 -variable [itcl::scope _settings( window)] \1749 -variable [itcl::scope _settings(-window)] \ 1749 1750 -showvalue off \ 1750 -command [itcl::code $this AdjustSetting window]1751 -command [itcl::code $this AdjustSetting -window] 1751 1752 } 1752 1753 itk_component add level_l { … … 1757 1758 itk_component add level { 1758 1759 ::scale $inner.level -from 0 -to 255 -orient horizontal \ 1759 -variable [itcl::scope _settings( level)] \1760 -variable [itcl::scope _settings(-level)] \ 1760 1761 -showvalue off \ 1761 -command [itcl::code $this AdjustSetting level]1762 -command [itcl::code $this AdjustSetting -level] 1762 1763 } 1763 1764 … … 1804 1805 checkbutton $inner.visible \ 1805 1806 -text "Axes" \ 1806 -variable [itcl::scope _settings( axisVisible)] \1807 -command [itcl::code $this AdjustSetting axisVisible] \1807 -variable [itcl::scope _settings(-axisvisible)] \ 1808 -command [itcl::code $this AdjustSetting -axisvisible] \ 1808 1809 -font "Arial 9" 1809 1810 checkbutton $inner.labels \ 1810 1811 -text "Axis Labels" \ 1811 -variable [itcl::scope _settings( axisLabels)] \1812 -command [itcl::code $this AdjustSetting axisLabels] \1812 -variable [itcl::scope _settings(-axislabels)] \ 1813 -command [itcl::code $this AdjustSetting -axislabels] \ 1813 1814 -font "Arial 9" 1814 1815 label $inner.grid_l -text "Grid" -font "Arial 9" 1815 1816 checkbutton $inner.xgrid \ 1816 1817 -text "X" \ 1817 -variable [itcl::scope _settings( axisXGrid)] \1818 -command [itcl::code $this AdjustSetting axisXGrid] \1818 -variable [itcl::scope _settings(-xgrid)] \ 1819 -command [itcl::code $this AdjustSetting -xgrid] \ 1819 1820 -font "Arial 9" 1820 1821 checkbutton $inner.ygrid \ 1821 1822 -text "Y" \ 1822 -variable [itcl::scope _settings( axisYGrid)] \1823 -command [itcl::code $this AdjustSetting axisYGrid] \1823 -variable [itcl::scope _settings(-ygrid)] \ 1824 -command [itcl::code $this AdjustSetting -ygrid] \ 1824 1825 -font "Arial 9" 1825 1826 checkbutton $inner.zgrid \ 1826 1827 -text "Z" \ 1827 -variable [itcl::scope _settings( axisZGrid)] \1828 -command [itcl::code $this AdjustSetting axisZGrid] \1828 -variable [itcl::scope _settings(-zgrid)] \ 1829 -command [itcl::code $this AdjustSetting -zgrid] \ 1829 1830 -font "Arial 9" 1830 1831 checkbutton $inner.minorticks \ 1831 1832 -text "Minor Ticks" \ 1832 -variable [itcl::scope _settings( axisMinorTicks)] \1833 -command [itcl::code $this AdjustSetting axisMinorTicks] \1833 -variable [itcl::scope _settings(-axisminorticks)] \ 1834 -command [itcl::code $this AdjustSetting -axisminorticks] \ 1834 1835 -font "Arial 9" 1835 1836 … … 1844 1845 "furthest_triad" "farthest" \ 1845 1846 "outer_edges" "outer" 1846 $itk_component(axisflymode) value "static"1847 bind $inner.mode <<Value>> [itcl::code $this AdjustSetting axisFlymode]1847 $itk_component(axisflymode) value $_settings(-axisflymode) 1848 bind $inner.mode <<Value>> [itcl::code $this AdjustSetting -axisflymode] 1848 1849 1849 1850 blt::table $inner \ … … 1863 1864 } 1864 1865 1865 1866 1866 itcl::body Rappture::VtkImageViewer::BuildCameraTab {} { 1867 1867 set inner [$itk_component(main) insert end \ … … 1882 1882 0,0 $inner.view_l -anchor e -pady 2 \ 1883 1883 0,1 $inner.view -anchor w -pady 2 1884 blt::table configure $inner r0 -resize none 1884 1885 1885 1886 set labels { qx qy qz qw xpan ypan zoom } … … 1909 1910 incr row 1910 1911 1911 blt::table configure $inner c* r*-resize none1912 blt::table configure $inner c* -resize none 1912 1913 blt::table configure $inner c2 -resize expand 1913 1914 blt::table configure $inner r$row -resize expand … … 2045 2046 # the code to handle aberrant cases. 2046 2047 2047 if { $_changed( opacity) } {2048 set style(-opacity) [expr $_settings( opacity) * 0.01]2049 } 2050 if { $_changed( colormap) } {2051 set style(-color) $_settings( colormap)2048 if { $_changed(-opacity) } { 2049 set style(-opacity) [expr $_settings(-opacity) * 0.01] 2050 } 2051 if { $_changed(-colormap) } { 2052 set style(-color) $_settings(-colormap) 2052 2053 } 2053 2054 if { $_currentColormap == "" } { … … 2055 2056 } 2056 2057 if { [info exists style(-stretchtofit)] } { 2057 set _settings( stretchToFit) $style(-stretchtofit)2058 AdjustSetting stretchToFit2058 set _settings(-stretchtofit) $style(-stretchtofit) 2059 AdjustSetting -stretchToFit 2059 2060 } 2060 2061 SendCmd "outline add $tag" 2061 2062 SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag" 2062 SendCmd "outline visible $_settings( outline) $tag"2063 SendCmd "outline visible $_settings(-outline) $tag" 2063 2064 SendCmd "image add $tag" 2064 2065 SetCurrentColormap $style(-color) … … 2066 2067 SendCmd "image color [Color2RGB $color] $tag" 2067 2068 SendCmd "image opacity $style(-opacity) $tag" 2068 set _settings( opacity) [expr $style(-opacity) * 100.0]2069 set _settings(-opacity) [expr $style(-opacity) * 100.0] 2069 2070 } 2070 2071 … … 2125 2126 } 2126 2127 set x [expr $w - 2] 2127 if { !$_settings( legendVisible) } {2128 if { !$_settings(-legendvisible) } { 2128 2129 $c delete legend 2129 2130 return … … 2133 2134 # If there's a legend title, create a text item for the title. 2134 2135 $c create text $x $y \ 2135 2136 2137 -font $font 2136 -anchor ne \ 2137 -fill $itk_option(-plotforeground) -tags "title legend" \ 2138 -font $font 2138 2139 if { $title != "" } { 2139 2140 incr y $lineht 2140 2141 } 2141 2142 $c create text $x $y \ 2142 2143 2144 2145 2143 -anchor ne \ 2144 -fill $itk_option(-plotforeground) -tags "vmax legend" \ 2145 -font $font 2146 incr y $lineht 2146 2147 $c create image $x $y \ 2147 2148 -anchor ne \ … … 2307 2308 invoke { 2308 2309 $itk_component(field) value $_curFldLabel 2309 AdjustSetting field2310 AdjustSetting -field 2310 2311 } 2311 2312 default {
Note: See TracChangeset
for help on using the changeset viewer.