Changeset 4703 for branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
- Timestamp:
- Nov 12, 2014 2:47:37 PM (9 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r4676 r4703 240 240 array set _settings { 241 241 -axesvisible 1 242 -axislabelsvisible 1 242 -axislabels 1 243 -axisminorticks 1 243 244 -axismode "static" 244 245 -background black … … 994 995 set _first "" 995 996 InitSettings -xgrid -ygrid -zgrid -axismode \ 996 -axesvisible -axislabelsvisible -ortho 997 SendCmd "axis lformat all %g" 998 # Too many major ticks, so turn off minor ticks 999 SendCmd "axis minticks all 0" 997 -axesvisible -axislabels -axisminorticks -ortho 998 #SendCmd "axis lformat all %g" 1000 999 StopBufferingCommands 1001 1000 SendCmd "imgflush" … … 1032 1031 SendCmd "clientinfo [list $info]" 1033 1032 } 1034 append _outbuf "dataset add $tag data follows $length\n"1033 SendCmd "dataset add $tag data follows $length" 1035 1034 append _outbuf $bytes 1036 1035 set _datasets($tag) 1 … … 1321 1320 SendCmd "axis visible all $bool" 1322 1321 } 1323 "-axislabels visible" {1322 "-axislabels" { 1324 1323 set bool $_settings($what) 1325 1324 SendCmd "axis labels all $bool" 1325 } 1326 "-axisminorticks" { 1327 set bool $_settings($what) 1328 SendCmd "axis minticks all $bool" 1326 1329 } 1327 1330 "-axismode" { … … 1757 1760 1758 1761 checkbutton $inner.visible \ 1759 -text " ShowAxes" \1762 -text "Axes" \ 1760 1763 -variable [itcl::scope _settings(-axesvisible)] \ 1761 1764 -command [itcl::code $this AdjustSetting -axesvisible] \ … … 1763 1766 1764 1767 checkbutton $inner.labels \ 1765 -text " ShowAxis Labels" \1766 -variable [itcl::scope _settings(-axislabels visible)] \1767 -command [itcl::code $this AdjustSetting -axislabels visible] \1768 -text "Axis Labels" \ 1769 -variable [itcl::scope _settings(-axislabels)] \ 1770 -command [itcl::code $this AdjustSetting -axislabels] \ 1768 1771 -font "Arial 9" 1769 1770 checkbutton $inner. gridx\1771 -text " Show X Grid" \1772 label $inner.grid_l -text "Grid" -font "Arial 9" 1773 checkbutton $inner.xgrid \ 1774 -text "X" \ 1772 1775 -variable [itcl::scope _settings(-xgrid)] \ 1773 1776 -command [itcl::code $this AdjustSetting -xgrid] \ 1774 1777 -font "Arial 9" 1775 checkbutton $inner. gridy\1776 -text " Show Y Grid" \1778 checkbutton $inner.ygrid \ 1779 -text "Y" \ 1777 1780 -variable [itcl::scope _settings(-ygrid)] \ 1778 1781 -command [itcl::code $this AdjustSetting -ygrid] \ 1779 1782 -font "Arial 9" 1780 checkbutton $inner. gridz\1781 -text " Show Z Grid" \1783 checkbutton $inner.zgrid \ 1784 -text "Z" \ 1782 1785 -variable [itcl::scope _settings(-zgrid)] \ 1783 1786 -command [itcl::code $this AdjustSetting -zgrid] \ 1787 -font "Arial 9" 1788 checkbutton $inner.minorticks \ 1789 -text "Minor Ticks" \ 1790 -variable [itcl::scope _settings(-axisminorticks)] \ 1791 -command [itcl::code $this AdjustSetting -axisminorticks] \ 1784 1792 -font "Arial 9" 1785 1793 … … 1798 1806 1799 1807 blt::table $inner \ 1800 0,0 $inner.visible -anchor w -cspan 2 \ 1801 1,0 $inner.labels -anchor w -cspan 2 \ 1802 2,0 $inner.gridx -anchor w -cspan 2 \ 1803 3,0 $inner.gridy -anchor w -cspan 2 \ 1804 4,0 $inner.gridz -anchor w -cspan 2 \ 1805 5,0 $inner.mode_l -anchor w -cspan 2 -padx { 2 0 } \ 1806 6,0 $inner.mode -fill x -cspan 2 1808 0,0 $inner.visible -anchor w -cspan 4 \ 1809 1,0 $inner.labels -anchor w -cspan 4 \ 1810 2,0 $inner.minorticks -anchor w -cspan 4 \ 1811 4,0 $inner.grid_l -anchor w \ 1812 4,1 $inner.xgrid -anchor w \ 1813 4,2 $inner.ygrid -anchor w \ 1814 4,3 $inner.zgrid -anchor w \ 1815 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 1816 5,1 $inner.mode -fill x -cspan 3 1807 1817 1808 1818 blt::table configure $inner r* c* -resize none 1809 blt::table configure $inner r7 c1 -resize expand 1819 blt::table configure $inner r7 c6 -resize expand 1820 blt::table configure $inner r3 -height 0.125i 1810 1821 } 1811 1822 … … 2575 2586 } 2576 2587 if { $_contourList(numLevels) < 1 } { 2577 puts stderr "numLevels < 1" 2588 # There are tools that set 0 levels to get cutplanes only 2589 #puts stderr "numLevels < 1" 2578 2590 return "" 2579 2591 }
Note: See TracChangeset
for help on using the changeset viewer.