Perhaps the viewer is occluding it. Try setting a transparency on the image actor, <br>Alternatively, it could be that the line is positioned somewhere in space and you haven&#39;t initialized the point1 and point2 positions in your snippet below to reasonable values.<br>
<br>There are multiple tests in the repository testing the line widget. Please take a look at those<br><br><div class="gmail_quote">On Thu, May 20, 2010 at 4:45 PM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</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;"><div dir="ltr">Hi all,<br><br>Has anyone used vtkLineWidget2 with vtkImageViewer2 before?  I am having problem in interacting with it and It does not show line between two end points.<br>
<br>here is my code <br><br>LineA=vtk.vtkLineWidget2()<br>
LineA.CreateDefaultRepresentation()<br>LineA.SetInteractor(self.frameA.GetRenderWindow().GetInteractor())<br>LineA.On()<br><br>And there is no example on the wiki.<br><br>Probably if someone helps me to fix this, I will add one.<br>

<br>Thanks,<br><br>Jothy<br></div>
<br>_______________________________________________<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>
<br></blockquote></div><br><br clear="all"><br><br>