Fixed interface so the renderer uses Trackball interaction, extent and limits work.

Added a notebook, showing a simple example of using the vtkView
This commit is contained in:
Gudni Karl Rosenkjaer
2013-11-17 14:31:44 -08:00
parent 2a770f6fd4
commit 37bcf891be
3 changed files with 26 additions and 11 deletions
+1
View File
@@ -189,6 +189,7 @@ class vtkTools(object):
renwin = vtk.vtkRenderWindow()
renwin.AddRenderer(ren)
iren = vtk.vtkRenderWindowInteractor()
iren.GetInteractorStyle().SetCurrentStyleToTrackballCamera()
iren.SetRenderWindow(renwin)
return iren, renwin