From: smh Date: Fri, 23 Apr 2004 11:02:21 +0000 (+0000) Subject: minor changes X-Git-Tag: Merge_300404~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2737c912b8f6f252b823bf539a58bcd0e245506;p=modules%2Fvisu.git minor changes --- 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()