[vtkusers] ActiViz | vtkRenderWindowInteractor Start event

David Cole dlrdave at aol.com
Tue Apr 1 16:03:57 EDT 2014


You can sign up for VTK events using AddObserver before calling Start. 
Then, when they occur, your observer will be called.

Whether you call Start or not depends on whether you are building an 
application using some framework or not. If you are, it probably has 
its own way to do message loops, and you should use that.

Start is provided as a convenience mechanism in order to try things out 
with VTK, and use the same code in a simplistic cross-platform manner. 
If you're building a serious application, you'll probably want to use 
something more comprehensive as a UI framework (Qt, MFC, WinForms, 
Metro, Apple's UIKit, ...)  But if you're just doing a one-off 
visualization of something, perhaps the built-in VTK stuff is 
sufficient for you.

It's your call based on what you're building. I think you probably know 
that better than I do.


D



More information about the vtkusers mailing list