Perhaps you are referring to actor2D&#39;s that lie on the overlay plane and don&#39;t move with the rest of the scene during interaction ? If so, to pick it, you should us a vtkPropPicker. Cell pickers won&#39;t pick actor2D&#39;s<br>
<br><div class="gmail_quote">On Wed, Nov 4, 2009 at 8:16 AM, Cory Quammen <span dir="ltr">&lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Piotr,<br>
<br>
Perhaps you could clarify what you mean by moving an actor. It doesn&#39;t<br>
sound like you have an interactor style that is manipulating the<br>
actors by picking with the mouse. If you did, however, you could call<br>
PickableOff() on the actor, which will prevent you from picking it and<br>
thereby prevent movement of the actor.<br>
<br>
How exactly are you moving the actors now?<br>
<br>
Cory<br>
<div><div></div><div class="h5"><br>
On Wed, Nov 4, 2009 at 7:21 AM, Piotr Byzia &lt;<a href="mailto:piotr.byzia@gmail.com">piotr.byzia@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I want to set an actor to be movable or non-movable, depending on settings<br>
&gt; which I control through PyQT GUI.<br>
&gt; In other words, having a few actors on the scene I want to set checkboxes in<br>
&gt; my GUI that would freeze a given actor, and the rest of them to react as<br>
&gt; usual to the mouse movements / clicks.<br>
&gt;<br>
&gt; Regarding visibility of the actor I&#39;m using GetProperty().SetOpacity(0.0) on<br>
&gt; an instance of any given actor.<br>
&gt; I can&#39;t see anything related to movement in the GetProperty() properties, I<br>
&gt; believe it&#39;s somewhere else?<br>
&gt;<br>
&gt; Here are most important parts of the code I&#39;m using to generate a single<br>
&gt; actor:<br>
&gt;<br>
&gt; self.ren = vtk.vtkRenderer()<br>
&gt; self.ren.SetBackground(0, 0, 0)<br>
&gt; self.widget_3d.GetRenderWindow().AddRenderer(self.ren)<br>
&gt;<br>
&gt; apd=vtk.vtkAppendPolyData()<br>
&gt;<br>
&gt; for i in xrange(len(coordinates)):<br>
&gt;    line=vtk.vtkLineSource()<br>
&gt;<br>
&gt;    line.SetPoint1(coordinates[i][0]) # 1st atom coordinates for a given bond<br>
&gt;    line.SetPoint2(coordinates[i][1]) # 2nd atom coordinates for a given bond<br>
&gt;    line.SetResolution(21)<br>
&gt;    apd.AddInput(line.GetOutput())<br>
&gt;<br>
&gt; mapper = vtk.vtkPolyDataMapper()<br>
&gt; mapper.SetInput(apd.GetOutput())<br>
&gt; lines_actor = vtk.vtkActor()<br>
&gt; lines_actor.SetMapper(mapper)<br>
&gt; lines_actor.GetProperty().SetColor(0.7, 0.0, 0.0)<br>
&gt; lines_actor.GetProperty().SetOpacity(1.0)<br>
&gt;<br>
&gt; self.ren.AddActor(lines_actor)<br>
&gt;<br>
&gt;<br>
&gt; I found SetCurrentStyleToTrackballActor(), but I want to control this<br>
&gt; behavior from my GUI.<br>
&gt; Besides, trackball mode is very inconvenient in my case, with molecules in<br>
&gt; &quot;lines&quot; representation (it&#39;s hard to pick a single line).<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Piotr Byzia<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Cory Quammen<br>
Center for Computer Integrated Systems for Microscopy and Manipulation (CISMM)<br>
Department of Computer Science<br>
University of North Carolina at Chapel Hill<br>
<a href="http://www.cs.unc.edu/%7Ecquammen" target="_blank">http://www.cs.unc.edu/~cquammen</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>_________________________________<br>Karthik Krishnan<br>R&amp;D Engineer,<br>Kitware Inc.<br>Ph: +1 5188814919, +91 9538477060<br>Fax: 518 371 4573<br>