theResult, theMeshName,theEntity, theFieldName, theTimeStampNumber,
theViewManager):
anOldFactoryMethod = GetPrsType2OldFactoryMethod(theVISUType)
-
aPrs3d = anOldFactoryMethod(theResult, theMeshName, theEntity, theFieldName, theTimeStampNumber)
+
aPrs3d = myVisu.CreatePrs3d(theVISUType, myVisu.GetCurrentStudy())
aPrs3d.SetResultObject(theResult)
aPrs3d.SetMeshName(theMeshName)
print "\ttheTimeStampNumber = %s" % theTimeStampNumber
return
- aRange = aPrs3d.GetTimeStampsRange()
- for anInfo in aRange:
- print "%d (%s); " % (anInfo.myNumber, anInfo.myTime),
- pass
- print
-
aView = theViewManager.Create3DView();
aView.SetTitle("To test presentation of %s type" % theVISUType)
aView.Display(aPrs3d);
aView.FitAll()
aDelay = 0.0
- for aTimeStampNumber in xrange(1,7):
- aPrs3d.SetTimeStampNumber(aTimeStampNumber)
+ aRange = aPrs3d.GetTimeStampsRange()
+ for anInfo in aRange:
+ print "%d (%s); " % (anInfo.myNumber, anInfo.myTime)
+ aPrs3d.SetTimeStampNumber(anInfo.myNumber)
aPrs3d.Apply()
aView.Update();
time.sleep(aDelay)
aViewManager = myVisu.GetViewManager();
+WalkTroughTimeStamps(VISU.TSCALARMAPONDEFORMEDSHAPE, aResult, aMeshName, anEntity, aFieldName, aTimeStampNumber, aViewManager)
+
for aVISUType in PRS3D_TYPE_LIST:
WalkTroughTimeStamps(aVISUType, aResult, aMeshName, anEntity, aFieldName, aTimeStampNumber, aViewManager)
pass