Salome HOME
Movement of examples to CVS EXAMPLES SAMPLES_SRC.
[modules/visu.git] / src / VISU_SWIG / visu_view3d.py
index 8073e35411a23cd42dfcfc1be5243a1071b079be..d1bf0721b70f110c225c02e0c58b47da5cfbc9e4 100644 (file)
@@ -50,7 +50,7 @@ aMeshName ="LE VOLUME"
 anEntity = VISU.NODE
 aTimeStampId = 1
 
-medFile = os.getenv('KERNEL_ROOT_DIR') + '/examples/' + medFile
+medFile = os.getenv('DATA_DIR') + '/MedFiles/' + medFile
 myResult = myVisu.ImportFile(medFile)
 
 
@@ -94,11 +94,18 @@ myView.Update();
 print "myView.FitAll()"
 myView.FitAll();
 
+#aWidth = myView.GetViewWidth()
+#print "a View Width before = ", aWidth
+#myView.SetViewWidth(aWidth/2)
+#aWidth = myView.GetViewWidth()
+#print "a View Width after  = ", aWidth
 
 
 myView = myViewManager.Create3DView();
 myView.SetTitle("Here we will display CutPlanes")
 
+myView.SplitRight()
+
 print "myView.SetBackground(...)"
 aColor = SALOMEDS.Color(0.0,0.7,0.0)
 myView.SetBackground(aColor);
@@ -240,7 +247,7 @@ time.sleep(aDelay)
 medFile = "TimeStamps.med"
 myFieldName = "vitesse";
 
-medFile = os.getenv('KERNEL_ROOT_DIR') + '/examples/' + medFile
+medFile = os.getenv('DATA_DIR') + '/MedFiles/' + medFile
 myResult = myVisu.ImportFile(medFile)
 
 anAnim = myVisu.CreateAnimation(myView);