Changeset 4001 for anuga_core/source/anuga/visualiser
- Timestamp:
- Nov 16, 2006, 5:45:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/visualiser/visualiser-tvtk.py
r3958 r4001 3 3 from Tkinter import Tk, Button, Frame, N, E, S, W 4 4 from types import FunctionType, TupleType 5 from vtk import vtkActor, vtkCubeAxesActor2D, vtkDelaunay2D, vtkFloatArray, vtkPoints, vtkPolyData, vtkPolyDataMapper, vtkRenderer6 from vtk.tk.vtkTkRenderWidget import vtkTkRenderWidget5 from enthought.tvtk.api import tvtk 6 from enthought.tvtk.tools import ivtk 7 7 8 8 class Visualiser(Thread): … … 38 38 39 39 def run(self): 40 self.vtk_renderer = vtkRenderer()40 self.vtk_renderer = tvtk.Renderer() 41 41 self.setup_gui() 42 42 self.setup_grid() … … 166 166 # colour[2] as the upper bound on the scalar 167 167 # range. 168 scalars = vtkFloatArray()168 scalars = tvtk.FloatArray() 169 169 map(scalars.InsertNextValue, colour[0](self.build_quantity_dict())) 170 170 self.vtk_polyData[quantityName].GetPointData().SetScalars(scalars)
Note: See TracChangeset
for help on using the changeset viewer.