[vtkusers] Two Interaction Styles: Mouse and Keypress

Sebastian Gatzka sebastian.gatzka at stud.tu-darmstadt.de
Thu Apr 8 08:24:42 EDT 2010


Yes. This worked!
Thank you!

Am 08.04.2010 14:02, schrieb John Drescher:
> On Thu, Apr 8, 2010 at 3:50 AM, Sebastian Gatzka
> <sebastian.gatzka at stud.tu-darmstadt.de>  wrote:
>    
>> 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);
>>
>>      
> That is because the header for the mouse interactor defines
>
> vtkTypeRevisionMacro(MouseInteractorStyle, vtkInteractorStyleTrackballCamera);
>
> Use all the macros like in the mouse-interactor example.
>
> John
>
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100408/259a15e0/attachment.htm>


More information about the vtkusers mailing list