<div class="gmail_quote">On Thu, Apr 15, 2010 at 10:01 AM, Erkang Cheng <span dir="ltr"><<a href="mailto:ekyaya@gmail.com">ekyaya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi David:<br><br>Thanks for your quick reply.<br><br>Could you go further help me?<br><br>The story is that, I want to interact the window which display a image or one slice of 3D data (like DICOM). <br><br>The operation is that when I click one point, and mouse move on the window, then LeftButtonUp. These action could related to a line. <br>
<br>I want to save the positions of all the points on the line and draw this line on the window.<br><br>I follow the example in InsightApplication titled "LiverTumorSegmentation". In this application, I can get the point when I click on the window, also, I can get the points when mouse move.<br>
<br>So, I want to draw this line on the window. How to do this?<br><br>My idea is that, suppose that there are two points p1 and p2, p1 is the point I click on the window, when mouse move, p2 is current point, I want to draw a line from p1 to p2. Then update p1 as p2. This could turn into a line. I use this method in MFC which can draw a line.<br>
<br>But, I don't know how to draw a line in a vtkRenderWindow? what's the coordinate of the vtkRenderWindow?<br><br>Is there is example similar to my question? <br><br>Thanks a lot.<div><div></div><div class="h5">
</div></div></blockquote></div><br><div>Erkang,</div><div><br>Please keep the discussion on the mailing list so that everyone can benefit and help.</div><div><br></div><div>I am not particularly familiar with doing this, or any of the examples in ITK (namely LiverTumorSegmentation), so maybe someone who is can point you in the right direction.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br clear="all">Sorry I can't be of more help,<br><br>David</div>