[vtkusers] Why the baggage in vtkInteractorStyle?
elvis.stansvik at orexplore.com
Mon Aug 8 09:30:12 EDT 2016
This is a bit of a general question about the interactor style system in
Why does vtkInteractorStyle, which is described as the superclass of all
interactor styles, have things functions like Dolly, Pan, Zoom et.c.? And
why does it have keypress behaviors at all (e.g. 'j', 't', 'c', 'a', ...)?
If it's supposed to be a general base class for interactor styles, why
should it make assumptions like this about the camera movements the
subclasser want to provide, and assumptions about keybindings?
I'm looking for a base class to use, which is not making any such
assumptions, since I want to provide a completely custom behavior, without
having to guard myself against unwanted behavior coming from the base class.
I've looked at, and even used vtkInteractorStyleUser, for this purpose
(even if it's described as something mostly for the scripting languages),
but I'm just wondering about the VTK design, why it was made this way?
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers