<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Ok. I will
give it a try.<br>
What about the fact that the keypress-interactor uses <b>one </b>macro:<br>
<br>
<font face="Courier New, Courier, monospace">vtkStandardNewMacro(KeyPressInteractorStyle);</font><br>
<br>
while the the mouse-interactor uses <b>two</b>:<br>
<br>
<font face="Courier New, Courier, monospace">vtkCxxRevisionMacro(MouseInteractorStyle,
"$Revision: 1.1 $");<br>
vtkStandardNewMacro(MouseInteractorStyle);</font><br>
</font></font><br>
Am 06.04.2010 14:45, schrieb John Drescher:
<blockquote
cite="mid:y2t387ee2021004060545p856996d9nd7fe10216a5b1bb9@mail.gmail.com"
type="cite">
<blockquote type="cite">
<pre wrap="">I wan't to have both mouse and keypress interaction in my code.
I worked with both the classes seperately
Mouse-Interaction:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Interaction/DoubleClick">http://www.vtk.org/Wiki/VTK/Examples/Interaction/DoubleClick</a>
Keypress-Interaction:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Interaction/KeypressEvents">http://www.vtk.org/Wiki/VTK/Examples/Interaction/KeypressEvents</a>
But now I want to merge them to one interaction style.
Does anybody know how to add both to the Render Window Interactor?
</pre>
</blockquote>
<pre wrap="">
They both derive from the same base class
vtkInteractorStyleTrackballCamera. Merge the code from the two.
John
</pre>
</blockquote>
</body>
</html>