]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
minor changes
authorsmh <smh@opencascade.com>
Fri, 23 Apr 2004 11:02:21 +0000 (11:02 +0000)
committersmh <smh@opencascade.com>
Fri, 23 Apr 2004 11:02:21 +0000 (11:02 +0000)
src/VISU_I/VISU_TimeAnimation.cxx
src/VISU_SWIG/batchmode_visu_view3d.py
src/VISU_SWIG/visu_view3d.py

index fc3083358f95fc626075d31e5bb12aa181b06c47..bd00adca6dfbcc5b0ce3e00db8c311ccfcfdc577 100644 (file)
@@ -294,7 +294,8 @@ void VISU_TimeAnimation::clearView() {
       aData.myActors.clear();
     }
   }
-  myView->update();
+  myView->getRW()->getRenderWindow()->Render();
+  //myView->update();
 }
 
 //************************************************************************
index 799ec619d89518955751b92405886afc47460266..0d41aa6dfaf58cb0155ba989b910393c289f7e25 100644 (file)
@@ -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()
index b41578726156936c1e1bb4029af97a435b8959ec..8073e35411a23cd42dfcfc1be5243a1071b079be 100644 (file)
@@ -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()