def PerFrameUpdate(datadescription): phactori.PerRendersetInitialization(datadescription) phactori.UpdateAllOperationsWhichMayChangeWithData() phactori.UpdateAllImagesetViewsWhichMayChangeWithData() #we are now updating color range stuff right before WriteImage #phactori.UpdateDataRangesForColorValues() phactori.myDebugPrint3('PerFrameUpdate entered\n') #GetAndReduceViewControl() global tearListPersistent global deathListPersistent global gDoNewScatterPlotsC if gDoNewScatterPlotsC: phactori.myDebugPrint3('doing phactori.UpdateAllScatterPlots (C)\n') phactori.UpdateAllScatterPlots() phactori.myDebugPrint3('doing phactori.UpdateAllPlotsOverTime\n') phactori.UpdateAllPlotsOverTime() phactori.myDebugPrint3('did plot updates\n') #currentFrameTearList = phactori.CollectCells1('TEAR_DOUBLE', 0.01, 1) #tearListPersistent = mergeCurrentIntoPersistent(tearListPersistent, # currentFrameTearList) #currentFrameDeathList = phactori.CollectCells1('STATUS', 0.8, -1) #deathListPersistent = mergeCurrentIntoPersistent(deathListPersistent, # currentFrameDeathList) #compareTearDeath(tearListPersistent, deathListPersistent) phactori.myDebugPrint3('PerFrameUpdate exiting\n')
def PerFrameUpdate(): phactori.myDebugPrint('PhactoriScript.PerFrameUpdate entered\n') #GetAndReduceViewControl() global tearListPersistent global deathListPersistent global gDoNewScatterPlotsC if gDoNewScatterPlotsC: phactori.myDebugPrint2('doing phactori.UpdateAllScatterPlots (C)\n') phactori.UpdateAllScatterPlots() phactori.myDebugPrint2('doing phactori.UpdateAllPlotsOverTime\n') phactori.UpdateAllPlotsOverTime() phactori.myDebugPrint2('did plot updates\n') #currentFrameTearList = phactori.CollectCells1('TEAR_DOUBLE', 0.01, 1) #tearListPersistent = mergeCurrentIntoPersistent(tearListPersistent, currentFrameTearList) #currentFrameDeathList = phactori.CollectCells1('STATUS', 0.8, -1) #deathListPersistent = mergeCurrentIntoPersistent(deathListPersistent, currentFrameDeathList) #compareTearDeath(tearListPersistent, deathListPersistent) phactori.myDebugPrint('PhactoriScript.PerFrameUpdate exiting\n')