[vtkusers] Two Interaction Styles: Mouse and Keypress

Sebastian Gatzka sebastian.gatzka at stud.tu-darmstadt.de
Thu Apr 8 03:50:21 EDT 2010


Ok. I will give it a try.
What about the fact that the keypress-interactor uses *one *macro:

vtkStandardNewMacro(KeyPressInteractorStyle);

while the the mouse-interactor uses *two*:

vtkCxxRevisionMacro(MouseInteractorStyle, "$Revision: 1.1 $");
vtkStandardNewMacro(MouseInteractorStyle);

Am 06.04.2010 14:45, schrieb John Drescher:
>> I wan't to have both mouse and keypress interaction in my code.
>> I worked with both the classes seperately
>> Mouse-Interaction:
>> http://www.vtk.org/Wiki/VTK/Examples/Interaction/DoubleClick
>> Keypress-Interaction:
>> http://www.vtk.org/Wiki/VTK/Examples/Interaction/KeypressEvents
>>
>> But now I want to merge them to one interaction style.
>> Does anybody know how to add both to the Render Window Interactor?
>>
>>      
> They both derive from the same base class
> vtkInteractorStyleTrackballCamera. Merge the code from the two.
>
> John
>
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100408/950a7b85/attachment.htm>


More information about the vtkusers mailing list