Changeset 3069 for trunk/gui/apps/vtkviewer-test
- Timestamp:
- Jun 28, 2012, 12:24:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/apps/vtkviewer-test
r2789 r3069 102 102 return $_type 103 103 } 104 public method shape {args} { 105 return "sphere" 106 } 104 107 105 108 private variable _data "" … … 150 153 151 154 # ---------------------------------------------------------------------- 152 # USAGE: send_ spheres_file155 # USAGE: send_glyphs_file 153 156 # 154 157 # Prompts the user for a text file, and then sends the text within 155 158 # that file along to the rendering widget. 156 159 # ---------------------------------------------------------------------- 157 proc send_ spheres_file {} {158 global widgets 159 160 set file [tk_getOpenFile -title "Open VTK File as Spheres"]160 proc send_glyphs_file {} { 161 global widgets 162 163 set file [tk_getOpenFile -title "Open VTK File as Glyphs"] 161 164 if {"" != $file && [catch { 162 165 set fid [open $file r] … … 165 168 close $fid 166 169 }] == 0} { 167 set obj [visData #auto $info " spheres"]170 set obj [visData #auto $info "glyphs"] 168 171 $widgets(vtkviewer) add $obj 169 172 } … … 367 370 .mbar.file add command -label "Send VTK File..." -underline 0 -command send_file 368 371 .mbar.file add command -label "Send VTK File as Streamlines..." -underline 0 -command send_streamlines_file 369 .mbar.file add command -label "Send VTK File as Spheres..." -underline 0 -command send_spheres_file372 .mbar.file add command -label "Send VTK File as Glyphs..." -underline 0 -command send_glyphs_file 370 373 .mbar.file add command -label "Load script..." -underline 0 -command load_script 371 374 .mbar.file add command -label "Reset" -underline 0 -command reset
Note: See TracChangeset
for help on using the changeset viewer.