<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div><span style="font-size:12.8px">I used vtkLineWidget2 to draw the lines.</span></div><div><span style="font-size:12.8px">I'm using a vtkImageViewer2 for displaying dicom images and the lines should be rendered over the images</span><span style="font-size:12.8px"> .</span><div style="font-size:12.8px">But <span style="font-size:12.8px">vtkLineWidget2  </span>lines are rendering below the image displayed in the vtkImageViewer2. </div><div style="font-size:12.8px">I need to render the lines over the displayed image, have any solution for this?, have any method to control the rendering order(like bottom to top)?</div><div style="font-size:12.8px">I also using <span style="color:rgb(128,0,128)">vtkAngleWidget and </span><span style="color:rgb(128,0,128)">vtkDistanceWidget, but these are displaying above the image, only </span>vtkLineWidget2 (and <span style="font-size:12.8px">vtkLineWidget</span><span style="font-size:12.8px">)  have the issue. </span></div><div style="font-size:12.8px">please help....</div><div style="font-size:12.8px">(attached screenshot of the viewer, line rendered is marked inside the red circle) </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 5:50 PM, Sankhesh Jhaveri <span dir="ltr"><<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_6725312598328363721markdown-here-wrapper" style="font-family:"Lucida Sans",Verdana,sans-serif;color:rgb(11,83,148)"><p style="margin:0px 0px 1.2em!important">Hi,</p>
<p style="margin:0px 0px 1.2em!important"><code style="font-size:0.95em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(218,218,218);background-color:rgb(232,232,232);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">vtkLineWidget2</code> follows the new <code style="font-size:0.95em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(218,218,218);background-color:rgb(232,232,232);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">widget <-> representation</code> model of widgets in VTK; where the representation determines how the widget is drawn on screen and the widget is responsible for interactions with the representation.</p>
<p style="margin:0px 0px 1.2em!important">Hope that helps.<br>Sankhesh</p>
<div title="MDH:SGksPGRpdj48YnI+PC9kaXY+PGRpdj5gdnRrTGluZVdpZGdldDJgIGZvbGxvd3MgdGhlIG5ldyBg
d2lkZ2V0ICZsdDstJmd0OyByZXByZXNlbnRhdGlvbmAgbW9kZWwgb2Ygd2lkZ2V0cyBpbiBWVEs7
IHdoZXJlIHRoZSByZXByZXNlbnRhdGlvbiBkZXRlcm1pbmVzIGhvdyB0aGUgd2lkZ2V0IGlzIGRy
YXduIG9uIHNjcmVlbiBhbmQgdGhlIHdpZGdldCBpcyByZXNwb25zaWJsZSBmb3IgaW50ZXJhY3Rp
b25zIHdpdGggdGhlIHJlcHJlc2VudGF0aW9uLjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+SG9w
ZSB0aGF0IGhlbHBzLjwvZGl2PjxkaXY+U2Fua2hlc2g8L2Rpdj4=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 18, 2017 at 6:36 AM K O ranjith <<a href="mailto:kor1581@gmail.com" target="_blank">kor1581@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <div>Thanks very much for the help.</div><div>What is the difference between vtk line widgets "vtkLineWidget" and "vtkLineWidget2 "?<br></div><div>I have to draw the lines above a dicom image displayed in an vtkImageViewer2 </div><div><br></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 15, 2017 at 6:15 PM, Sankhesh Jhaveri <span dir="ltr"><<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_6725312598328363721m_3287108237103417890m_-5142845473461179779markdown-here-wrapper" style="font-family:"Lucida Sans",Cantarell,Verdana,sans-serif;color:rgb(11,83,148)"><p style="margin:0px 0px 1.2em!important">Hi,</p>
<p style="margin:0px 0px 1.2em!important">You should use the widget if you think you would like to <strong>interactively</strong> place/draw and edit the line. If your goal is to just display a line given a set of parameters and update it without interaction, a simple cell based approach should work. See <a href="https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/LongLine/" target="_blank">https://lorensen.github.io/<wbr>VTKExamples/site/Cxx/<wbr>GeometricObjects/LongLine/</a></p>
<p style="margin:0px 0px 1.2em!important">Hope that helps.<br>Sankhesh</p>
<div title="MDH:SGksPGRpdj48YnI+PC9kaXY+PGRpdj5Zb3Ugc2hvdWxkIHVzZSB0aGUgd2lkZ2V0IGlmIHlvdSB0
aGluayB5b3Ugd291bGQgbGlrZSB0byAqKmludGVyYWN0aXZlbHkqKiBwbGFjZS9kcmF3IGFuZCBl
ZGl0IHRoZSBsaW5lLiBJZiB5b3VyIGdvYWwgaXMgdG8ganVzdCBkaXNwbGF5IGEgbGluZSBnaXZl
biBhIHNldCBvZiBwYXJhbWV0ZXJzIGFuZCB1cGRhdGUgaXQgd2l0aG91dCBpbnRlcmFjdGlvbiwg
YSBzaW1wbGUgY2VsbCBiYXNlZCBhcHByb2FjaCBzaG91bGQgd29yay4gU2VlJm5ic3A7PGEgaHJl
Zj0iaHR0cHM6Ly9sb3JlbnNlbi5naXRodWIuaW8vVlRLRXhhbXBsZXMvc2l0ZS9DeHgvR2VvbWV0
cmljT2JqZWN0cy9Mb25nTGluZS8iPmh0dHBzOi8vbG9yZW5zZW4uZ2l0aHViLmlvL1ZUS0V4YW1w
bGVzL3NpdGUvQ3h4L0dlb21ldHJpY09iamVjdHMvTG9uZ0xpbmUvPC9hPjwvZGl2PjxkaXY+PGJy
PjwvZGl2PjxkaXY+SG9wZSB0aGF0IGhlbHBzLjwvZGl2PjxkaXY+U2Fua2hlc2g8L2Rpdj4=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><br><div class="gmail_quote"><div><div class="m_6725312598328363721m_3287108237103417890h5"><div dir="ltr">On Fri, Sep 15, 2017 at 7:19 AM K O ranjith <<a href="mailto:kor1581@gmail.com" target="_blank">kor1581@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_6725312598328363721m_3287108237103417890h5"><div dir="ltr">Hello,<div>I need to draw a couple of lines in an image viewer (vtkImageViewer2) for MRI slice planning application. Also should have to perform few operations (move, roatate)on the lines with mouse interactions and need to retrieve line properties (new coordinates after movement, width etc).</div><div>I have found examples with  two methods while searching </div><div>with <span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,monospace;font-size:1em">vtkLineWidget2 and with vtkLine </span></div><div>which approach will be more suitable?</div><div> what is the difference?have any difficulties for manipulation operations  if use <span style="font-size:13px;background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,monospace">vtkLineWidget2</span><span style="font-size:13px;background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,monospace">?</span></div><div><span style="font-size:13px;background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,monospace">Please help</span></div><div><br></div></div></div></div>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><span class="m_6725312598328363721m_3287108237103417890HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="m_6725312598328363721m_3287108237103417890HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div class="m_6725312598328363721m_3287108237103417890m_-5142845473461179779gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div class="m_6725312598328363721m_3287108237103417890m_-5142845473461179779inbox-markdown-here-wrapper" style="font-family:'proza libre',sans-serif;color:rgb(0,56,107)"><h5 id="m_6725312598328363721m_3287108237103417890m_-5142845473461179779inbox-sankhesh-jhaveri" style="margin:1.3em 0px 1em;padding:0px;font-size:1.1em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)">Sankhesh Jhaveri</h5>
<h6 id="m_6725312598328363721m_3287108237103417890m_-5142845473461179779inbox--sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417" style="margin:1.3em 0px 1em;padding:0px;font-size:1em;color:rgb(11,83,148);font-family:'open sans',sans-serif;font-weight:normal"><em>Sr. Research & Development Engineer</em> | <a href="http://www.kitware.com/" target="_blank">Kitware</a> | <a href="tel:(518)%20881-4417" value="+15188814417" target="_blank">(518) 881-4417</a></h6>
<div title="MDH:PGIgc3R5bGU9ImZvbnQtZmFtaWx5OiB2ZXJkYW5hLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDEx
LCA4MywgMTQ4KTsiPjxmb250IHNpemU9IjIiPiMjIyMjU2Fua2hlc2ggSmhhdmVyaTwvZm9udD48
L2I+PGRpdj48Zm9udCBjb2xvcj0iIzBiNTM5NCIgZmFjZT0idmVyZGFuYSwgc2Fucy1zZXJpZiIg
c2l6ZT0iMiI+PGI+PGJyPjwvYj48L2ZvbnQ+PGRpdj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6
IGFyaWFsLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxzcGFuIHN0eWxl
PSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsiPjxpPiMjIyMjIypTci4gUmVzZWFy
Y2ggJmFtcDsgRGV2ZWxvcG1lbnQgRW5naW5lZXIqPC9pPiZuYnNwO3wmbmJzcDs8L3NwYW4+PC9z
cGFuPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsgY29sb3I6
IHJnYigxMSwgODMsIDE0OCk7Ij48YSBocmVmPSJodHRwOi8vd3d3LmtpdHdhcmUuY29tLyIgdGFy
Z2V0PSJfYmxhbmsiIHN0eWxlPSJjb2xvcjogcmdiKDE3LCA4NSwgMjA0KTsiPktpdHdhcmU8L2E+
Jm5ic3A7fCZuYnNwOzwvc3Bhbj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6IHZlcmRhbmEsIHNh
bnMtc2VyaWY7IGNvbG9yOiByZ2IoMTEsIDgzLCAxNDgpOyI+KDUxOCkgODgxLTQ0MTc8L3NwYW4+
PGJyPjwvZGl2PjxkaXY+PGRpdj48ZGl2PjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFu
YSwgc2Fucy1zZXJpZjsgY29sb3I6IHJnYigxMSwgODMsIDE0OCk7Ij48L3NwYW4+PC9kaXY+PC9k
aXY+PC9kaXY+PC9kaXY+" style="height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div></div></div></div>
</font></span></blockquote></div><br></div>
</blockquote></div><div dir="ltr">-- <br></div><div class="m_6725312598328363721gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div class="m_6725312598328363721inbox-markdown-here-wrapper" style="font-family:'proza libre',sans-serif;color:rgb(0,56,107)"><h5 id="m_6725312598328363721inbox-sankhesh-jhaveri" style="margin:1.3em 0px 1em;padding:0px;font-size:1.1em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)">Sankhesh Jhaveri</h5>
<h6 id="m_6725312598328363721inbox--sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417" style="margin:1.3em 0px 1em;padding:0px;font-size:1em;color:rgb(11,83,148);font-family:'open sans',sans-serif;font-weight:normal"><em>Sr. Research & Development Engineer</em> | <a href="http://www.kitware.com/" target="_blank">Kitware</a> | (518) 881-4417</h6>
<div title="MDH:PGIgc3R5bGU9ImZvbnQtZmFtaWx5OiB2ZXJkYW5hLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDEx
LCA4MywgMTQ4KTsiPjxmb250IHNpemU9IjIiPiMjIyMjU2Fua2hlc2ggSmhhdmVyaTwvZm9udD48
L2I+PGRpdj48Zm9udCBjb2xvcj0iIzBiNTM5NCIgZmFjZT0idmVyZGFuYSwgc2Fucy1zZXJpZiIg
c2l6ZT0iMiI+PGI+PGJyPjwvYj48L2ZvbnQ+PGRpdj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6
IGFyaWFsLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxzcGFuIHN0eWxl
PSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsiPjxpPiMjIyMjIypTci4gUmVzZWFy
Y2ggJmFtcDsgRGV2ZWxvcG1lbnQgRW5naW5lZXIqPC9pPiZuYnNwO3wmbmJzcDs8L3NwYW4+PC9z
cGFuPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsgY29sb3I6
IHJnYigxMSwgODMsIDE0OCk7Ij48YSBocmVmPSJodHRwOi8vd3d3LmtpdHdhcmUuY29tLyIgdGFy
Z2V0PSJfYmxhbmsiIHN0eWxlPSJjb2xvcjogcmdiKDE3LCA4NSwgMjA0KTsiPktpdHdhcmU8L2E+
Jm5ic3A7fCZuYnNwOzwvc3Bhbj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6IHZlcmRhbmEsIHNh
bnMtc2VyaWY7IGNvbG9yOiByZ2IoMTEsIDgzLCAxNDgpOyI+KDUxOCkgODgxLTQ0MTc8L3NwYW4+
PGJyPjwvZGl2PjxkaXY+PGRpdj48ZGl2PjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFu
YSwgc2Fucy1zZXJpZjsgY29sb3I6IHJnYigxMSwgODMsIDE0OCk7Ij48L3NwYW4+PC9kaXY+PC9k
aXY+PC9kaXY+PC9kaXY+" style="height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div></div></div></div>
</div></div></blockquote></div><br></div>