<div><div class="gmail_quote">On Wed, Feb 24, 2010 at 6:19 AM, Rakesh Patil <span dir="ltr"><<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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></blockquote><div><br></div><div>You can get the ID of a particular point using some of this: </div><div> </div><a 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>