I would like to add smooth permanent Rotation to some actors. Is there an Example on how to achieve this? I think I could listen to a Rendered Event
Any hint?
Do you mean something like this?
Basically, you use interactor.CreateRepeatingTimer(interval)
, then interactor.AddObserver("TimerEvent", callback_func)
. In callback_func
you change your actor a little and update. If the interval is small enough—and the change small enough—then you get a smooth animation.
2 Likes
Ill give it a try. Thanks
Worked perfectly. Thumbs up. The CSharp equivalent looks like: Interactor.TimerEvt += rotate; private void rotate(vtkObject sender, vtkObjectEventArgs e) {actor.Rotate(__)}