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

Function animate

Rendering/Core/Testing/Python/TestTransformInterpolator.py:193–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191# prevent the tk window from showing up then start the event loop
192xform = vtkTransform()
193def animate():
194 numSteps = 250
195 min = interpolator.GetMinimumT()
196 max = interpolator.GetMaximumT()
197 i = 0
198 while i <= numSteps:
199 t = float(i)*(max-min)/float(numSteps)
200 interpolator.InterpolateTransform(t,xform)
201 cubeActor.SetUserMatrix(xform.GetMatrix())
202 renWin.Render()
203 i = i + 1
204
205
206interpolator.InterpolateTransform(13.2,xform)

Callers

nothing calls this directly

Calls 6

InterpolateTransformMethod · 0.80
RenderMethod · 0.65
GetMinimumTMethod · 0.45
GetMaximumTMethod · 0.45
SetUserMatrixMethod · 0.45
GetMatrixMethod · 0.45

Tested by

no test coverage detected