<br>Hi David,<br><br>That is exactly what i want.. But how can i get the points or lines which are traced..?? And also it should work without any actor..<br> I mean this class works only for some actors. But i need for with actor and without actor..<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><blockquote><br>---------- Original message ----------<br>From:David Doria< daviddoria+vtk@gmail.com ><br>Date: 06 Apr 10 17:59:52<br>Subject: Re: [vtkusers] Drawing objects interactively in VTK..??<br>To: Rakesh Patil <rakeshthp@in.com><br><br>On Tue, Apr 6, 2010 at 5:13 AM, Rakesh Patil <rakeshthp@in.com> wrote:<br>> Hello,<br>><br>> I am trying to draw a polyline interactively (with help of mouse). What i'm<br>> doing is at every left button down event, i get the mouse position and store<br>> it is a vector list. Later using this points am displaying on the rendering<br>> window.<br>><br>> But when i do this, i noticed the following:<br>><br>>
The mouse position values are totally different from the the points which<br>> are displayed.. I mean, i click at one location, and it is displayed at far<br>> end another location..<br>><br>> I tried changing the coordinate system also.. Still the result is<br>> unchanged..<br>><br>> Any suggestions how it is to be done..??<br>><br>> Thanks<br>> Rakesh Patil<br>><br><br>Sounds like you may need a coordinate system conversion in there<br>somewhere, check out:<br>http://vtk.org/Wiki/VTK/Examples/Coordinate<br><br>It also sounds like you are trying to duplicate already working code in:<br>http://vtk.org/Wiki/VTK/Examples/Widgets/ImageTracerWidget<br><br>Thanks,<br><br>David<br></rakeshthp@in.com></rakeshthp@in.com></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; te
xt-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>