<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">On Fri, Aug 26, 2011 at 10:53 AM, Xiaopeng Yang <span dir="ltr">&lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi David,<br>
<br>
Last time you sent me this example to change the location of a 3D point. In<br>
this example, I cannot rotate, translate the image through mouse event. Only<br>
thing that I can do is to drag the point to a new position. I found that<br>
using vtkInteractorStyleTrackballActor does not allow the default vtk<br>
interaction. So I changed it into vtkInteractorStyleTrackballCamera which<br>
allows the default vtk interaction. However, error occurred when I debugged<br>
the code. The error comes from &quot; this-&gt;InteractionProp = this-&gt;MoveActor;&quot;:<br>
the InteractionProp is not a member of vtkInteractorStyleTrackballCamera.<br>
<br>
So what should I do to not only change the point location, but also rotate,<br>
translate, and zoom in/out the image?<br>
<br>
Thanks,<br>
<div class="im">Xiaopeng<br></div></blockquote><div><br></div><div>I don&#39;t think there is a particularly nice solution. You could use this:</div><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/StyleSwitch">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/StyleSwitch</a></div>
<div class="gmail_quote"><br></div><div class="gmail_quote">to switch between TrackballCamera and TrackballActor. Then once you are in TrackballActor mode, I would hold a key (i.e. control):</div><div class="gmail_quote">
<meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ShiftAndControl">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ShiftAndControl</a></div>
<div class="gmail_quote"><br></div><div class="gmail_quote">to indicate that you want to override the functionality of the left mouse button only when you have that key held down.</div><div class="gmail_quote"><br clear="all">
Good luck,<br><br><div>David</div></div>