Changeset 2398 for trunk


Ignore:
Timestamp:
Aug 19, 2011, 1:05:41 AM (13 years ago)
Author:
ldelgass
Message:

Fix vtkviewer test

File:
1 edited

Legend:

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

    r2293 r2398  
    11#!/bin/sh
    22# ----------------------------------------------------------------------
    3 #  TEST PROGRAM for VtkViewer2
     3#  TEST PROGRAM for VtkViewer
    44#
    55#  This program is a test harness for the VtkVis visualization
     
    7171# ----------------------------------------------------------------------
    7272itcl::class visData {
    73     inherit Rappture::Scene
     73    inherit Rappture::Drawing
    7474
    7575    constructor {args} {
     
    115115          }] == 0} {
    116116        set obj [visData #auto $info]
    117         $widgets(vtkviewer2) add $obj
     117        $widgets(vtkviewer) add $obj
    118118    }
    119119}
     
    159159        set cmd $last_command
    160160    }
    161     namespace eval Rappture::VtkViewer2 [list $widgets(vtkviewer2) SendCmd $cmd]
     161    namespace eval Rappture::VtkViewer [list $widgets(vtkviewer) SendCmd $cmd]
    162162    $widgets(command) delete 0 end
    163163}
     
    171171proc reset {} {
    172172    global widgets
    173     $widgets(vtkviewer2) delete
    174     $widgets(vtkviewer2) disconnect
     173    $widgets(vtkviewer) delete
     174    $widgets(vtkviewer) disconnect
    175175    $widgets(comm) configure -state normal
    176176    $widgets(comm) delete 1.0 end
     
    242242    global widgets images
    243243
    244     set imh [$widgets(vtkviewer2) get -image $images(which)]
     244    set imh [$widgets(vtkviewer) get -image $images(which)]
    245245
    246246    set file [tk_getSaveFile -title "Save Image File" \
     
    271271    set h [winfo height $c]
    272272
    273     set imh [$widgets(vtkviewer2) get -image $images(which)]
     273    set imh [$widgets(vtkviewer) get -image $images(which)]
    274274    set iw [image width $imh]
    275275    set ih [image height $imh]
     
    282282
    283283toplevel .images
    284 wm title .images "Vtkviewer2: Images"
     284wm title .images "Vtkviewer: Images"
    285285wm withdraw .images
    286286wm protocol .images WM_DELETE_WINDOW {wm withdraw .images}
     
    335335set f [.main pane 0]
    336336set servers [Rappture::VisViewer::GetServerList "vtkvis"]
    337 Rappture::VtkViewer2 $f.viewer $servers
     337Rappture::VtkViewer $f.viewer $servers
    338338pack $f.viewer -expand yes -fill both
    339 set widgets(vtkviewer2) $f.viewer
    340 
    341 puts stderr [winfo class $widgets(vtkviewer2)]
     339set widgets(vtkviewer) $f.viewer
     340
     341puts stderr [winfo class $widgets(vtkviewer)]
    342342
    343343$f.viewer configure \
Note: See TracChangeset for help on using the changeset viewer.