[vtkusers] How to define custom user interaction in vtk ? Please Help !!! Urgent

Deepak Roy cdeepakroy at yahoo.com
Thu Oct 27 12:08:53 EDT 2005


hello,
 
I working on 3D triangular surface meshes. I am using VTK with QT and the VTK_QT library.
 
The default behaviour defined by vtkRenderWindowInteractor is not suitable for my project.
 
I want to define my own interaction behaviour. 
 
I have no idea how to do this ? 
 
I could not find any examples as such on this either. 
 
I am looking for a clean object oriented way to achieve this. 
 
Should I derive any subclasses for this purpose ? 
 
In specific should i derive vtkInteractorStyle ? 
 
Which class defines the actual user interaction, is it vtkRenderWindowInteractor or vtkInteractorStyle ?
 
For my application i want two types of interaction behaviour:
 
--- for visulalizing the model, the default interaction functionality provided by 
    vtkRenderWindowInteractor is good but i want to change the interaction and remove all 
    keyboard usage if possible, to make it more convenient for my users.
 
--- Another interaction behaviour should allow my user to specify(pick) some feature points on 
    the surface using the mouse ( left button would be more appropriate ).
 
 
Can anyone show me an example, so i can get the general idea of how to achieve the custom interaction ?
 
 i will figure out the rest of the details specific to my application. 
 
Thanks in advance.
 
Regards,
 
Deepak Roy
    a bit 
 

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051027/8b9e2388/attachment.htm>


More information about the vtkusers mailing list