Ignore:
Timestamp:
Nov 16, 2006, 5:45:34 PM (18 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/visualiser/visualiser-tvtk.py

    r3958 r4001  
    33from Tkinter import Tk, Button, Frame, N, E, S, W
    44from types import FunctionType, TupleType
    5 from vtk import vtkActor, vtkCubeAxesActor2D, vtkDelaunay2D, vtkFloatArray, vtkPoints, vtkPolyData, vtkPolyDataMapper, vtkRenderer
    6 from vtk.tk.vtkTkRenderWidget import vtkTkRenderWidget
     5from enthought.tvtk.api import tvtk
     6from enthought.tvtk.tools import ivtk
    77
    88class Visualiser(Thread):
     
    3838
    3939    def run(self):
    40         self.vtk_renderer = vtkRenderer()
     40        self.vtk_renderer = tvtk.Renderer()
    4141        self.setup_gui()
    4242        self.setup_grid()
     
    166166                    # colour[2] as the upper bound on the scalar
    167167                    # range.
    168                     scalars = vtkFloatArray()
     168                    scalars = tvtk.FloatArray()
    169169                    map(scalars.InsertNextValue, colour[0](self.build_quantity_dict()))
    170170                    self.vtk_polyData[quantityName].GetPointData().SetScalars(scalars)
Note: See TracChangeset for help on using the changeset viewer.