Changeset 3498
- Timestamp:
- Mar 14, 2013 8:01:36 AM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/flowvisviewer.tcl
r3492 r3498 1155 1155 # 1156 1156 itcl::body Rappture::FlowvisViewer::Rebuild {} { 1157 1158 # Hide all the isomarkers. Can't remove them. Have to remember the 1159 # settings since the user may have created/deleted/moved markers. 1160 1161 foreach tf [array names _isomarkers] { 1162 foreach m $_isomarkers($tf) { 1163 $m visible no 1164 } 1165 } 1166 1167 set _first "" 1157 set w [winfo width $itk_component(3dview)] 1158 set h [winfo height $itk_component(3dview)] 1159 if { $w < 2 || $h < 2 } { 1160 $_dispatcher event -idle !rebuild 1161 return 1162 } 1163 1168 1164 # Turn on buffering of commands to the server. We don't want to 1169 1165 # be preempted by a server disconnect/reconnect (which automatically 1170 1166 # generates a new call to Rebuild). 1171 1167 StartBufferingCommands 1168 1169 # Hide all the isomarkers. Can't remove them. Have to remember the 1170 # settings since the user may have created/deleted/moved markers. 1171 1172 foreach tf [array names _isomarkers] { 1173 foreach m $_isomarkers($tf) { 1174 $m visible no 1175 } 1176 } 1177 1178 if { $_width != $w || $_height != $h || $_reset } { 1179 set _width $w 1180 set _height $h 1181 $_arcball resize $w $h 1182 Resize 1183 } 1184 1185 set _first "" 1172 1186 1173 1187 if { $_reset } { … … 1194 1208 SendCmd "clientinfo [list $info]" 1195 1209 } 1196 set _width [winfo width $itk_component(3dview)]1197 set _height [winfo height $itk_component(3dview)]1198 Resize1199 1210 } 1200 1211 foreach dataobj [get] { … … 1236 1247 1237 1248 # Reset the camera and other view parameters 1238 InitSettings isosurface grid axes volume outline light2side light transp1249 InitSettings light2side light transp isosurface grid axes volume outline 1239 1250 1240 1251 # nothing to send -- activate the proper volume -
trunk/gui/scripts/nanovisviewer.tcl
r3492 r3498 838 838 # ---------------------------------------------------------------------- 839 839 itcl::body Rappture::NanovisViewer::Rebuild {} { 840 set w [winfo width $itk_component(3dview)] 841 set h [winfo height $itk_component(3dview)] 842 if { $w < 2 || $h < 2 } { 843 $_dispatcher event -idle !rebuild 844 return 845 } 840 846 841 847 # Turn on buffering of commands to the server. We don't want to … … 853 859 } 854 860 861 if { $_width != $w || $_height != $h || $_reset } { 862 set _width $w 863 set _height $h 864 $_arcball resize $w $h 865 DoResize 866 } 855 867 if { $_reset } { 856 set _width [winfo width $itk_component(3dview)]857 set _height [winfo height $itk_component(3dview)]858 DoResize859 868 if { $_reportClientInfo } { 869 # Tell the server the name of the tool, the version, and 870 # dataset that we are rendering. Have to do it here because 871 # we don't know what data objects are using the renderer until 872 # be get here. 860 873 global env 861 874 -
trunk/gui/scripts/vtkheightmapviewer.tcl
r3482 r3498 859 859 } 860 860 861 StartBufferingCommands862 861 # Turn on buffering of commands to the server. We don't want to 863 862 # be preempted by a server disconnect/reconnect (which automatically 864 863 # generates a new call to Rebuild). 864 StartBufferingCommands 865 865 866 if { $_width != $w || $_height != $h || $_reset } { 866 867 set _width $w
Note: See TracChangeset
for help on using the changeset viewer.