def show(self, ts=None): self.activate() if not ts is None: visit.TimeSliderSetState(ts) self.ts = ts visit.DrawPlots() self.set_view()
args.rsteps = 0 # Don't do zero rotation if args.rend: args.rframes.append(imax - 1) dphi = args.rdeg * (math.pi / 180) / max(1, args.rsteps) # Same rotation speed at the end if dphi < 1.0e-3: full_steps = 0 dphi_full = 0.0 else: full_steps = int(round(args.rfulldeg * (math.pi / 180) / dphi)) dphi_full = args.rfulldeg * (math.pi / 180) / full_steps for i in range(imin, imax, args.tstep): v.TimeSliderSetState(i) v.SaveWindow() for j in range(args.rsteps): cc.viewNormal = rotateXY(cc.viewNormal, dphi) v.SetView3D(cc) if (j > 0): v.SaveWindow() if i in args.rframes: for j in range(args.rfullpause): v.SaveWindow() for j in range(full_steps): cc.viewNormal = rotateXY(cc.viewNormal, dphi_full) v.SetView3D(cc) v.SaveWindow() sys.exit()