[vtkusers] java interactorstyle question

Henrik Westerberg henrik.westerberg at crg.es
Fri Dec 4 10:18:15 EST 2009


Hi Folks,

I would like to change the scaling behavior on the right mouse button,
to be uniform on y and z and variable on x. I would like to do this
from java as well.

I thought I would be able to do something like this:

public class ResizeXInteractorStyle extends vtkInteractorStyleTrackballActor {
    public void UniformScale() {
        // do my code instead
    }
} 

and then set this interactor style to the Interactive renderer.

But this doesn't seem to do anything. Do I have to subclass vtkInteractorStyle from
c++ and include it in vtk somehow? 

I think what I want do is something like this example:
http://www.vtk.org/Wiki/Handle_keypress_events

but in Java.

thanks,
Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091204/7654b5ea/attachment.htm>


More information about the vtkusers mailing list