[vtkusers] Two Interaction Styles: Mouse and Keypress

David Doria daviddoria+vtk at gmail.com
Thu Apr 8 10:04:37 EDT 2010


On Thu, Apr 8, 2010 at 8:24 AM, Sebastian Gatzka
<sebastian.gatzka at stud.tu-darmstadt.de> wrote:
> 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
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>

Sebastian,

I didn't omit the macro on purpose, I just forgot it. As far as I
know, it should/can be there. I added it to the example:
http://www.vtk.org/Wiki/VTK/Examples/Interaction/KeypressEvents

Thanks,

David



More information about the vtkusers mailing list