From e2737c912b8f6f252b823bf539a58bcd0e245506 Mon Sep 17 00:00:00 2001 From: smh Date: Fri, 23 Apr 2004 11:02:21 +0000 Subject: [PATCH] minor changes --- src/VISU_I/VISU_TimeAnimation.cxx | 3 ++- src/VISU_SWIG/batchmode_visu_view3d.py | 11 +++++++++-- src/VISU_SWIG/visu_view3d.py | 11 +++++++++-- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index fc308335..bd00adca 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -294,7 +294,8 @@ void VISU_TimeAnimation::clearView() { aData.myActors.clear(); } } - myView->update(); + myView->getRW()->getRenderWindow()->Render(); + //myView->update(); } //************************************************************************ diff --git a/src/VISU_SWIG/batchmode_visu_view3d.py b/src/VISU_SWIG/batchmode_visu_view3d.py index 799ec619..0d41aa6d 100644 --- a/src/VISU_SWIG/batchmode_visu_view3d.py +++ b/src/VISU_SWIG/batchmode_visu_view3d.py @@ -172,7 +172,7 @@ print "myView.DisplayOnly(aCutPlanes)" time.sleep(aDelay) aNbSurfaces = aIsoSurfaces.GetNbSurfaces() -aNbSurfaces = 64 +aNbSurfaces = 32 for i in range(2,aNbSurfaces) : aIsoSurfaces.SetNbSurfaces(i) myView.Update(); @@ -256,6 +256,13 @@ print "Generate frames" anAnim.generateFrames() print "Start Animation" anAnim.setSpeed(99) -anAnim.setCycling(1) +#anAnim.setCycling(1) anAnim.startAnimation() myView.FitAll() +while 1: + time.sleep(1+aDelay) + if not anAnim.isRunning(): + anAnim.stopAnimation() + break + +#anAnim.clearView() diff --git a/src/VISU_SWIG/visu_view3d.py b/src/VISU_SWIG/visu_view3d.py index b4157872..8073e354 100644 --- a/src/VISU_SWIG/visu_view3d.py +++ b/src/VISU_SWIG/visu_view3d.py @@ -172,7 +172,7 @@ print "myView.DisplayOnly(aCutPlanes)" time.sleep(aDelay) aNbSurfaces = aIsoSurfaces.GetNbSurfaces() -aNbSurfaces = 64 +aNbSurfaces = 32 for i in range(2,aNbSurfaces) : aIsoSurfaces.SetNbSurfaces(i) myView.Update(); @@ -256,6 +256,13 @@ print "Generate frames" anAnim.generateFrames() print "Start Animation" anAnim.setSpeed(99) -anAnim.setCycling(1) +#anAnim.setCycling(1) anAnim.startAnimation() myView.FitAll() +while 1: + time.sleep(1+aDelay) + if not anAnim.isRunning(): + anAnim.stopAnimation() + break + +#anAnim.clearView() -- 2.39.2