Ignore:
Timestamp:
Jun 28, 2012, 12:24:23 PM (12 years ago)
Author:
ldelgass
Message:

Fix vtkviewer-test for spheres->glyphs rename in drawing object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/apps/vtkviewer-test

    r2789 r3069  
    102102        return $_type
    103103    }
     104    public method shape {args} {
     105        return "sphere"
     106    }
    104107
    105108    private variable _data ""
     
    150153
    151154# ----------------------------------------------------------------------
    152 # USAGE: send_spheres_file
     155# USAGE: send_glyphs_file
    153156#
    154157# Prompts the user for a text file, and then sends the text within
    155158# that file along to the rendering widget.
    156159# ----------------------------------------------------------------------
    157 proc send_spheres_file {} {
    158     global widgets
    159 
    160     set file [tk_getOpenFile -title "Open VTK File as Spheres"]
     160proc send_glyphs_file {} {
     161    global widgets
     162
     163    set file [tk_getOpenFile -title "Open VTK File as Glyphs"]
    161164    if {"" != $file && [catch {
    162165            set fid [open $file r]
     
    165168            close $fid
    166169          }] == 0} {
    167         set obj [visData #auto $info "spheres"]
     170        set obj [visData #auto $info "glyphs"]
    168171        $widgets(vtkviewer) add $obj
    169172    }
     
    367370.mbar.file add command -label "Send VTK File..." -underline 0 -command send_file
    368371.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_file
     372.mbar.file add command -label "Send VTK File as Glyphs..." -underline 0 -command send_glyphs_file
    370373.mbar.file add command -label "Load script..." -underline 0 -command load_script
    371374.mbar.file add command -label "Reset" -underline 0 -command reset
Note: See TracChangeset for help on using the changeset viewer.