MCPcopy Create free account
hub / github.com/Kitware/VTK / animate

Function animate

Rendering/Core/Testing/Python/TestCameraInterpolator.py:124–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122ren1.SetActiveCamera(camera)
123
124def animate():
125 numSteps = 500
126 min = interpolator.GetMinimumT()
127 max = interpolator.GetMaximumT()
128 i = 0
129 while i <= numSteps:
130 t = float(i) * (max - min) / float(numSteps)
131 interpolator.InterpolateCamera(t, camera)
132 renWin.Render()
133 i += 1
134
135
136interpolator.InterpolateCamera(8.2, camera)

Callers

nothing calls this directly

Calls 4

RenderMethod · 0.65
GetMinimumTMethod · 0.45
GetMaximumTMethod · 0.45
InterpolateCameraMethod · 0.45

Tested by

no test coverage detected