Changeset 4413
- Timestamp:
- Jun 23, 2014, 12:46:31 AM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
- Property svn:mergeinfo changed
/trunk merged: 4032,4147,4162
- Property svn:mergeinfo changed
-
branches/1.3/gui/apps/nanovis-test
r3177 r4413 19 19 #\ 20 20 bindir=`dirname $0` ; \ 21 . $bindir/rappture.env ; \ 21 22 exec $bindir/wish "$0" "$@" 22 23 # ---------------------------------------------------------------------- 23 24 # wish executes everything from here on... 24 25 set installdir [file root $argv0]26 set libdir [file join $installdir "lib"]27 28 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl29 30 25 package require Itcl 31 26 package require Rappture … … 348 343 .mbar add cascade -label "Flow" -underline 0 -menu .mbar.flow 349 344 350 351 352 345 . configure -menu .mbar 353 354 346 355 347 Rappture::Panes .main -sashwidth 4 -sashrelief raised -sashpadding 4 \ … … 362 354 pack $f.viewer -expand yes -fill both 363 355 set widgets(nanovis) $f.viewer 364 365 puts stderr [winfo class $widgets(nanovis)]366 356 367 357 $f.viewer configure \ -
branches/1.3/gui/apps/vtkglyphs-test
r3805 r4413 19 19 #\ 20 20 bindir=`dirname $0` ; \ 21 . $bindir/rappture.env ; \ 21 22 exec $bindir/wish "$0" "$@" 22 23 # ---------------------------------------------------------------------- 23 24 # wish executes everything from here on... 24 25 set installdir [file root $argv0]26 set libdir [file join $installdir "lib"]27 28 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl29 30 25 package require Itcl 31 26 package require Rappture … … 249 244 250 245 # ---------------------------------------------------------------------- 251 # USAGE: activate_flow252 #253 # ----------------------------------------------------------------------254 proc activate_flow {} {255 global widgets256 # global img_storage_dir257 # "flow capture 117 $img_storage_dir"258 259 set info {flow vectorid 0260 flow particle visible on261 flow lic on262 flow capture 100}263 264 $widgets(command) insert 0 $info265 send_command266 267 }268 269 # ----------------------------------------------------------------------270 246 # TOPLEVEL FOR IMAGES 271 247 # ---------------------------------------------------------------------- -
branches/1.3/gui/apps/vtkheightmap-test
r3805 r4413 19 19 #\ 20 20 bindir=`dirname $0` ; \ 21 . $bindir/rappture.env ; \ 21 22 exec $bindir/wish "$0" "$@" 22 23 # ---------------------------------------------------------------------- 23 24 # wish executes everything from here on... 24 25 set installdir [file root $argv0]26 set libdir [file join $installdir "lib"]27 28 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl29 30 25 package require Itcl 31 26 package require Rappture … … 247 242 248 243 # ---------------------------------------------------------------------- 249 # USAGE: activate_flow250 #251 # ----------------------------------------------------------------------252 proc activate_flow {} {253 global widgets254 # global img_storage_dir255 # "flow capture 117 $img_storage_dir"256 257 set info {flow vectorid 0258 flow particle visible on259 flow lic on260 flow capture 100}261 262 $widgets(command) insert 0 $info263 send_command264 265 }266 267 # ----------------------------------------------------------------------268 244 # TOPLEVEL FOR IMAGES 269 245 # ---------------------------------------------------------------------- -
branches/1.3/gui/apps/vtkisosurface-test
r3805 r4413 19 19 #\ 20 20 bindir=`dirname $0` ; \ 21 . $bindir/rappture.env ; \ 21 22 exec $bindir/wish "$0" "$@" 22 23 # ---------------------------------------------------------------------- 23 24 # wish executes everything from here on... 24 25 set installdir [file root $argv0]26 set libdir [file join $installdir "lib"]27 28 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl29 30 25 package require Itcl 31 26 package require Rappture … … 247 242 248 243 # ---------------------------------------------------------------------- 249 # USAGE: activate_flow250 #251 # ----------------------------------------------------------------------252 proc activate_flow {} {253 global widgets254 # global img_storage_dir255 # "flow capture 117 $img_storage_dir"256 257 set info {flow vectorid 0258 flow particle visible on259 flow lic on260 flow capture 100}261 262 $widgets(command) insert 0 $info263 send_command264 265 }266 267 # ----------------------------------------------------------------------268 244 # TOPLEVEL FOR IMAGES 269 245 # ---------------------------------------------------------------------- -
branches/1.3/gui/apps/vtkstreamlines-test
r3805 r4413 19 19 #\ 20 20 bindir=`dirname $0` ; \ 21 . $bindir/rappture.env ; \ 21 22 exec $bindir/wish "$0" "$@" 22 23 # ---------------------------------------------------------------------- 23 24 # wish executes everything from here on... 24 25 set installdir [file root $argv0]26 set libdir [file join $installdir "lib"]27 28 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl29 30 25 package require Itcl 31 26 package require Rappture … … 246 241 247 242 # ---------------------------------------------------------------------- 248 # USAGE: activate_flow249 #250 # ----------------------------------------------------------------------251 proc activate_flow {} {252 global widgets253 # global img_storage_dir254 # "flow capture 117 $img_storage_dir"255 256 set info {flow vectorid 0257 flow particle visible on258 flow lic on259 flow capture 100}260 261 $widgets(command) insert 0 $info262 send_command263 264 }265 266 # ----------------------------------------------------------------------267 243 # TOPLEVEL FOR IMAGES 268 244 # ---------------------------------------------------------------------- -
branches/1.3/gui/apps/vtkviewer-test
r3177 r4413 19 19 #\ 20 20 bindir=`dirname $0` ; \ 21 . $bindir/rappture.env ; \ 21 22 exec $bindir/wish "$0" "$@" 22 23 # ---------------------------------------------------------------------- 23 24 # wish executes everything from here on... 24 25 set installdir [file root $argv0]26 set libdir [file join $installdir "lib"]27 28 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl29 30 25 package require Itcl 31 26 package require Rappture … … 287 282 288 283 # ---------------------------------------------------------------------- 289 # USAGE: activate_flow290 #291 # ----------------------------------------------------------------------292 proc activate_flow {} {293 global widgets294 # global img_storage_dir295 # "flow capture 117 $img_storage_dir"296 297 set info {flow vectorid 0298 flow particle visible on299 flow lic on300 flow capture 100}301 302 $widgets(command) insert 0 $info303 send_command304 305 }306 307 # ----------------------------------------------------------------------308 284 # TOPLEVEL FOR IMAGES 309 285 # ---------------------------------------------------------------------- -
branches/1.3/gui/apps/vtkvolume-test
r3805 r4413 19 19 #\ 20 20 bindir=`dirname $0` ; \ 21 . $bindir/rappture.env ; \ 21 22 exec $bindir/wish "$0" "$@" 22 23 # ---------------------------------------------------------------------- 23 24 # wish executes everything from here on... 24 25 set installdir [file root $argv0]26 set libdir [file join $installdir "lib"]27 28 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl29 30 25 package require Itcl 31 26 package require Rappture 32 27 package require RapptureGUI 28 package require vtk 33 29 34 30 option add *comm.font -*-courier-medium-r-normal-*-*-120-* … … 148 144 }] == 0} { 149 145 set obj [visData #auto $info "vtkvolume"] 150 $widgets(vtkv iewer) add $obj151 $widgets(vtkv iewer) scale $obj146 $widgets(vtkvolumeviewer) add $obj 147 $widgets(vtkvolumeviewer) scale $obj 152 148 } 153 149 } … … 193 189 set cmd $last_command 194 190 } 195 namespace eval Rappture::VtkVolumeViewer [list $widgets(vtkv iewer) SendCmd $cmd]191 namespace eval Rappture::VtkVolumeViewer [list $widgets(vtkvolumeviewer) SendCmd $cmd] 196 192 $widgets(command) delete 0 end 197 193 } … … 205 201 proc reset {} { 206 202 global widgets 207 $widgets(vtkv iewer) delete208 $widgets(vtkv iewer) disconnect203 $widgets(vtkvolumeviewer) delete 204 $widgets(vtkvolumeviewer) disconnect 209 205 $widgets(comm) configure -state normal 210 206 $widgets(comm) delete 1.0 end … … 246 242 247 243 # ---------------------------------------------------------------------- 248 # USAGE: activate_flow249 #250 # ----------------------------------------------------------------------251 proc activate_flow {} {252 global widgets253 # global img_storage_dir254 # "flow capture 117 $img_storage_dir"255 256 set info {flow vectorid 0257 flow particle visible on258 flow lic on259 flow capture 100}260 261 $widgets(command) insert 0 $info262 send_command263 264 }265 266 # ----------------------------------------------------------------------267 244 # TOPLEVEL FOR IMAGES 268 245 # ---------------------------------------------------------------------- … … 276 253 global widgets images 277 254 278 set imh [$widgets(vtkv iewer) get -image $images(which)]255 set imh [$widgets(vtkvolumeviewer) get -image $images(which)] 279 256 280 257 set file [tk_getSaveFile -title "Save Image File" \ … … 305 282 set h [winfo height $c] 306 283 307 set imh [$widgets(vtkv iewer) get -image $images(which)]284 set imh [$widgets(vtkvolumeviewer) get -image $images(which)] 308 285 set iw [image width $imh] 309 286 set ih [image height $imh] … … 316 293 317 294 toplevel .images 318 wm title .images "Vtkv iewer: Images"295 wm title .images "Vtkvolumeviewer: Images" 319 296 wm withdraw .images 320 297 wm protocol .images WM_DELETE_WINDOW {wm withdraw .images} … … 371 348 Rappture::VtkVolumeViewer $f.viewer $servers 372 349 pack $f.viewer -expand yes -fill both 373 set widgets(vtkv iewer) $f.viewer350 set widgets(vtkvolumeviewer) $f.viewer 374 351 375 352 $f.viewer configure \
Note: See TracChangeset
for help on using the changeset viewer.