- Timestamp:
- Mar 27, 2013 2:03:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkheightmapviewer.tcl
r3592 r3593 200 200 xpan 0 201 201 ypan 0 202 ortho 1202 ortho 0 203 203 } 204 204 set _arcball [blt::arcball create 100 100] … … 902 902 } 903 903 if { $_reset } { 904 InitSettings isHeightmap background905 904 # 906 905 # Reset the camera and other view parameters 907 906 # 908 SendCmd "axis color all [Color2RGB $itk_option(-plotforeground)]" 907 InitSettings isHeightmap background 909 908 910 909 # Let's see how this goes. I think it's preferable to overloading the … … 1044 1043 # Reset the camera and other view parameters 1045 1044 # 1046 SendCmd "axis color all [Color2RGB $itk_option(-plotforeground)]"1047 SendCmd "outline color [Color2RGB $itk_option(-plotforeground)]"1048 1045 ResetAxes 1049 1046 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] … … 1339 1336 } 1340 1337 "background" { 1341 set bg color[$itk_component(background) value]1338 set bg [$itk_component(background) value] 1342 1339 array set fgcolors { 1343 1340 "black" "white" … … 1345 1342 "grey" "black" 1346 1343 } 1347 configure -plotbackground $bgcolor \1348 -plotforeground $fgcolors($bgcolor) 1344 set fg $fgcolors($bg) 1345 configure -plotbackground $bg -plotforeground $fg 1349 1346 $itk_component(view) delete "legend" 1347 SendCmd "screen bgcolor [Color2RGB $bg]" 1348 SendCmd "outline color [Color2RGB $fg]" 1349 SendCmd "axis color all [Color2RGB $fg]" 1350 1350 DrawLegend 1351 1351 } … … 1761 1761 } 1762 1762 } 1763 AdjustSetting isHeightmap 1763 if { !$_reset } { 1764 AdjustSetting isHeightmap 1765 } 1764 1766 } 1765 1767 … … 1770 1772 if { [isconnected] } { 1771 1773 set rgb [Color2RGB $itk_option(-plotbackground)] 1772 SendCmd "screen bgcolor $rgb" 1774 if { !$_reset } { 1775 SendCmd "screen bgcolor $rgb" 1776 } 1773 1777 $itk_component(view) configure -background $itk_option(-plotbackground) 1774 1778 } … … 1781 1785 if { [isconnected] } { 1782 1786 set rgb [Color2RGB $itk_option(-plotforeground)] 1783 SendCmd "outline color $rgb" 1784 SendCmd "axis color all $rgb" 1787 if { !$_reset } { 1788 SendCmd "outline color $rgb" 1789 SendCmd "axis color all $rgb" 1790 } 1785 1791 } 1786 1792 }
Note: See TracChangeset
for help on using the changeset viewer.