- Timestamp:
- Aug 19, 2011, 1:05:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/apps/vtkviewer2-test
r2293 r2398 1 1 #!/bin/sh 2 2 # ---------------------------------------------------------------------- 3 # TEST PROGRAM for VtkViewer 23 # TEST PROGRAM for VtkViewer 4 4 # 5 5 # This program is a test harness for the VtkVis visualization … … 71 71 # ---------------------------------------------------------------------- 72 72 itcl::class visData { 73 inherit Rappture:: Scene73 inherit Rappture::Drawing 74 74 75 75 constructor {args} { … … 115 115 }] == 0} { 116 116 set obj [visData #auto $info] 117 $widgets(vtkviewer 2) add $obj117 $widgets(vtkviewer) add $obj 118 118 } 119 119 } … … 159 159 set cmd $last_command 160 160 } 161 namespace eval Rappture::VtkViewer 2 [list $widgets(vtkviewer2) SendCmd $cmd]161 namespace eval Rappture::VtkViewer [list $widgets(vtkviewer) SendCmd $cmd] 162 162 $widgets(command) delete 0 end 163 163 } … … 171 171 proc reset {} { 172 172 global widgets 173 $widgets(vtkviewer 2) delete174 $widgets(vtkviewer 2) disconnect173 $widgets(vtkviewer) delete 174 $widgets(vtkviewer) disconnect 175 175 $widgets(comm) configure -state normal 176 176 $widgets(comm) delete 1.0 end … … 242 242 global widgets images 243 243 244 set imh [$widgets(vtkviewer 2) get -image $images(which)]244 set imh [$widgets(vtkviewer) get -image $images(which)] 245 245 246 246 set file [tk_getSaveFile -title "Save Image File" \ … … 271 271 set h [winfo height $c] 272 272 273 set imh [$widgets(vtkviewer 2) get -image $images(which)]273 set imh [$widgets(vtkviewer) get -image $images(which)] 274 274 set iw [image width $imh] 275 275 set ih [image height $imh] … … 282 282 283 283 toplevel .images 284 wm title .images "Vtkviewer 2: Images"284 wm title .images "Vtkviewer: Images" 285 285 wm withdraw .images 286 286 wm protocol .images WM_DELETE_WINDOW {wm withdraw .images} … … 335 335 set f [.main pane 0] 336 336 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 337 Rappture::VtkViewer 2$f.viewer $servers337 Rappture::VtkViewer $f.viewer $servers 338 338 pack $f.viewer -expand yes -fill both 339 set widgets(vtkviewer 2) $f.viewer340 341 puts stderr [winfo class $widgets(vtkviewer 2)]339 set widgets(vtkviewer) $f.viewer 340 341 puts stderr [winfo class $widgets(vtkviewer)] 342 342 343 343 $f.viewer configure \
Note: See TracChangeset
for help on using the changeset viewer.