<br><br><blockquote>Hi..<br><br>Cant we simply replace the point value by the mouse pointer position, using the ID which we get ..?? Once we replace the values, old position is gone and new mouse pointer position will be available.. Then refresh the render window.. Does is sound correct..?? <br><br>Thanks<br>---------- Original message ----------<br>From:David Doria&lt; daviddoria+vtk@gmail.com &gt;<br>Date: 24 Feb 10 19:00:05<br>Subject:  Re: [vtkusers] Moving a node using mouse<br>To: rakeshthp@in.com<br><br><div><div class="gmail_quote">On Wed, Feb 24, 2010 at 6:19 AM, Rakesh Patil <span dir="ltr">&lt;<a target=\"_blank\" target="\&quot;_blank\&quot;" href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>&gt;</span> wrote:<br><font color="#000000"></font><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#000000"> <br>Well,<br><br>If you observe the way rubberbandInteractorstyle works during zooming, I guess it redraws the new rectangle by replacing old one.. Am i right.??<br>This happens in mouse drag event.. (mouse move event).. <br>
<br>So similarly, can i move the selected node or vertex in the mouse move event..?? Any how when I pick a node or vertex, i get the ID of that particular node..?? So cant i change the value of this point (node or vertex) everytime on mouse move event..??<br>
<br>Please correct me if am going wrong somewhere..<br><br>Thanks<br><br></font></blockquote><div><br></div><div>You can get the ID of a particular point using some of this: </div><div> </div><a target=\"_blank\" target="\&quot;_blank\&quot;" href="http://www.vtk.org/Wiki/VTK/Examples/HighlightSelectedPoints">http://www.vtk.org/Wiki/VTK/Examples/HighlightSelectedPoints</a><div>
<br></div><div>You can then create a new point/vertex/mapper/actor to "move" the point, but you will have to figure out a good way to update the old set of points so that the point in the old position is deleted.</div>
<div><br clear="all">Thanks,<br><br></div><div>David</div></div></div>
</blockquote> <br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>