From c7f52eada2cb8c1695afac6c7beed8fdda669288 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Fri, 08 Jul 2016 19:41:43 +0000 Subject: [PATCH] Several fixes and attempts to make improvements. --- python/trisurf/tsmgr.py | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/python/trisurf/tsmgr.py b/python/trisurf/tsmgr.py index ac5c8f2..2ed84ac 100644 --- a/python/trisurf/tsmgr.py +++ b/python/trisurf/tsmgr.py @@ -239,13 +239,28 @@ # Create the RendererWindow renderer_window = vtkRenderWindow() renderer_window.AddRenderer(renderer) - + +# Set up a check for aborting rendering. # Create the RendererWindowInteractor and display the vtk_file interactor = vtkRenderWindowInteractor() interactor.SetRenderWindow(renderer_window) interactor.Initialize() +# interactor.AddObserver("TimerEvent", RenderUpdate) +# timerIDR = interactor.CreateRepeatingTimer(1000) interactor.Start() +def RenderUpdate(obj, event): + # obj will be the object generating the event. In this case it + # is renWin + window=obj.GetRenderWindow() #.GetRenderer() + renderer=window.GetRenderers() + try: + actor=renderer.GetActors() + except: + pass + actor=renderer.GetActors() + print(actor) + def getListOfHostConfigurationByHostname(hosts,host): -- Gitblit v1.9.3