[vtkusers] Two Interaction Styles: Mouse and Keypress

John Drescher drescherjm at gmail.com
Thu Apr 8 08:02:59 EDT 2010


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



More information about the vtkusers mailing list