- Timestamp:
- Nov 10, 2014, 3:46:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkglyphviewer.tcl
r4669 r4684 218 218 array set _settings [subst { 219 219 -axesvisible 1 220 -axislabelsvisible 1 220 -axislabels 1 221 -axisminorticks 1 221 222 -axismode "static" 222 223 -background black … … 959 960 set _first "" 960 961 InitSettings -xgrid -ygrid -zgrid -axismode \ 961 -axesvisible -axislabelsvisible 962 foreach axis { x y z } { 963 SendCmd "axis lformat $axis %g" 964 } 962 -axesvisible -axislabels -axisminorticks 963 #SendCmd "axis lformat all %g" 965 964 StopBufferingCommands 966 965 SendCmd "imgflush" … … 995 994 SendCmd "clientinfo [list $info]" 996 995 } 997 append _outbuf "dataset add $tag data follows $length\n"996 SendCmd "dataset add $tag data follows $length" 998 997 append _outbuf $bytes 999 998 set _datasets($tag) 1 … … 1326 1325 SendCmd "axis visible all $bool" 1327 1326 } 1328 "-axislabels visible" {1327 "-axislabels" { 1329 1328 set bool $_settings($what) 1330 1329 SendCmd "axis labels all $bool" 1330 } 1331 "-axisminorticks" { 1332 set bool $_settings($what) 1333 SendCmd "axis minticks all $bool" 1331 1334 } 1332 1335 "-xgrid" - "-ygrid" - "-zgrid" { … … 1347 1350 "-cutplanevisible" { 1348 1351 set bool $_settings($what) 1349 SendCmd "cutplane visible $bool" 1352 SendCmd "cutplane visible 0" 1353 if { $bool } { 1354 foreach tag [CurrentDatasets -visible] { 1355 SendCmd "cutplane visible $bool $tag" 1356 } 1357 } 1350 1358 } 1351 1359 "-cutplanewireframe" { … … 1410 1418 "-glyphvisible" { 1411 1419 set bool $_settings($what) 1412 SendCmd "glyphs visible $bool" 1420 SendCmd "glyphs visible 0" 1421 if { $bool } { 1422 foreach tag [CurrentDatasets -visible] { 1423 SendCmd "glyphs visible $bool $tag" 1424 } 1425 } 1413 1426 if { $bool } { 1414 1427 Rappture::Tooltip::for $itk_component(glyphs) \ … … 1430 1443 "-glyphoutline" { 1431 1444 set bool $_settings($what) 1432 SendCmd "outline visible $bool" 1445 SendCmd "outline visible 0" 1446 if { $bool } { 1447 foreach tag [CurrentDatasets -visible] { 1448 SendCmd "outline visible $bool $tag" 1449 } 1450 } 1433 1451 } 1434 1452 "-glyphopacity" { … … 1771 1789 1772 1790 checkbutton $inner.visible \ 1773 -text " ShowAxes" \1791 -text "Axes" \ 1774 1792 -variable [itcl::scope _settings(-axesvisible)] \ 1775 1793 -command [itcl::code $this AdjustSetting -axesvisible] \ … … 1777 1795 1778 1796 checkbutton $inner.labels \ 1779 -text " ShowAxis Labels" \1780 -variable [itcl::scope _settings(-axislabels visible)] \1781 -command [itcl::code $this AdjustSetting -axislabels visible] \1797 -text "Axis Labels" \ 1798 -variable [itcl::scope _settings(-axislabels)] \ 1799 -command [itcl::code $this AdjustSetting -axislabels] \ 1782 1800 -font "Arial 9" 1783 1784 checkbutton $inner. gridx\1785 -text " Show X Grid" \1801 label $inner.grid_l -text "Grid" -font "Arial 9" 1802 checkbutton $inner.xgrid \ 1803 -text "X" \ 1786 1804 -variable [itcl::scope _settings(-xgrid)] \ 1787 1805 -command [itcl::code $this AdjustSetting -xgrid] \ 1788 1806 -font "Arial 9" 1789 checkbutton $inner. gridy\1790 -text " Show Y Grid" \1807 checkbutton $inner.ygrid \ 1808 -text "Y" \ 1791 1809 -variable [itcl::scope _settings(-ygrid)] \ 1792 1810 -command [itcl::code $this AdjustSetting -ygrid] \ 1793 1811 -font "Arial 9" 1794 checkbutton $inner. gridz\1795 -text " Show Z Grid" \1812 checkbutton $inner.zgrid \ 1813 -text "Z" \ 1796 1814 -variable [itcl::scope _settings(-zgrid)] \ 1797 1815 -command [itcl::code $this AdjustSetting -zgrid] \ 1816 -font "Arial 9" 1817 checkbutton $inner.minorticks \ 1818 -text "Minor Ticks" \ 1819 -variable [itcl::scope _settings(-axisminorticks)] \ 1820 -command [itcl::code $this AdjustSetting -axisminorticks] \ 1798 1821 -font "Arial 9" 1799 1822 … … 1812 1835 1813 1836 blt::table $inner \ 1814 0,0 $inner.visible -anchor w -cspan 2 \ 1815 1,0 $inner.labels -anchor w -cspan 2 \ 1816 2,0 $inner.gridx -anchor w -cspan 2 \ 1817 3,0 $inner.gridy -anchor w -cspan 2 \ 1818 4,0 $inner.gridz -anchor w -cspan 2 \ 1819 5,0 $inner.mode_l -anchor w -cspan 2 -padx { 2 0 } \ 1820 6,0 $inner.mode -fill x -cspan 2 1837 0,0 $inner.visible -anchor w -cspan 4 \ 1838 1,0 $inner.labels -anchor w -cspan 4 \ 1839 2,0 $inner.minorticks -anchor w -cspan 4 \ 1840 4,0 $inner.grid_l -anchor w \ 1841 4,1 $inner.xgrid -anchor w \ 1842 4,2 $inner.ygrid -anchor w \ 1843 4,3 $inner.zgrid -anchor w \ 1844 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 1845 5,1 $inner.mode -fill x -cspan 3 1821 1846 1822 1847 blt::table configure $inner r* c* -resize none 1823 blt::table configure $inner r7 c1 -resize expand 1848 blt::table configure $inner r7 c6 -resize expand 1849 blt::table configure $inner r3 -height 0.125i 1824 1850 } 1825 1851
Note: See TracChangeset
for help on using the changeset viewer.