Re: Modify surf output (axes, scaling)

Thomas Königstein wrote:
> And on another note: Can I somehow change the behavior of the 
> camera/mouse interaction? I'd like the system to rorate only about two 
> axes, the vertical and the horizontal one. In other words, the axis 
> which is separately activated when I press ctrl should be disabled when 
> moving the viewport with the mouse normally. Is that possible?

There are a few options.

  1. You can change the interaction style of a render window interactor 
using a pre-built interactor style provided by VTK.

  2. There is a nice VTK example that demonstrates how to create your 
own interaction behavior using event handlers.  Look in 
Examples/GUI/Python/CustomInteraction.py.  It is VTK code that could 
rather easily be translated to TVTK.

Unfortunately, there isn't a simple way of doing this and at the moment 
I am completely swamped to help.  This would make for a very nice 
contribution though.  If no one else volunteers for this I can see if I 
can have a student work on this, it would be a very nice learning exercise.

cheers,
prabhu

Gmane