<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Sounds good!</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Cheers</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Jothy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 19, 2016 at 2:40 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.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">Great. I've made one more minor change, I renamed<div>SetCurrentImageToNthImage() to SetCurrentImageNumber().<br></div><div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1421/diffs" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/1421/diffs</a><br></div><div><br></div><div>I'll try to get this change merged into VTK.</div><div><br></div><div>Cheers,</div><div> - David</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 12:42 AM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.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="gmail_default" style="font-family:verdana,sans-serif">Hi David</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Yup, it works on my system. <br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks a lot!</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Jothy</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 15, 2016 at 11:46 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.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">Hi Jothy,<div><br></div><div>Have you had a chance to test the changes yet?</div><span><font color="#888888"><div><br></div><div> - David</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 5:53 PM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.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="gmail_default" style="font-family:verdana,sans-serif">Great!</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks very much!</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Jothy</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 9:08 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.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">Hi Jothy,<div><br></div><div>I've added a change so that SetCurrentImageToNthImage is public:</div><div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1421/diffs" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/1421/diffs</a><br></div><div><br></div><div>If you're not sure about how to get the changes with git, then you can download the files here:</div><div><a href="https://gitlab.kitware.com/vtk/vtk/raw/81d49118/Interaction/Style/vtkInteractorStyleImage.h" target="_blank">https://gitlab.kitware.com/vtk/vtk/raw/81d49118/Interaction/Style/vtkInteractorStyleImage.h</a><br></div><div><a href="https://gitlab.kitware.com/vtk/vtk/raw/81d49118/Interaction/Style/vtkInteractorStyleImage.cxx" target="_blank">https://gitlab.kitware.com/vtk/vtk/raw/81d49118/Interaction/Style/vtkInteractorStyleImage.cxx</a><br></div><div><br></div><div>Please test to see if this solves the issue.</div><span><font color="#888888"><div><br></div><div> - David</div><div><br></div><div><br></div><div><br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 6:18 PM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.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="gmail_default" style="font-family:verdana,sans-serif">I would rather like to have this <span style="color:rgb(0,0,0);font-size:12.8px;font-family:arial,sans-serif">SetCurrentImageToNthImage to be public and user definable.</span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-size:12.8px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-size:12.8px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-size:12.8px;font-family:arial,sans-serif">Jothy</span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 10:15 AM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.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="gmail_default" style="font-family:verdana,sans-serif">Hi David</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I am not familiar with using Gitlab. So, I subclassed vtkInteractorStyleImage and override <span style="color:rgb(0,0,0);font-family:arial,sans-serif">SetCurrentImageToNthImage().</span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><br></span></div><div class="gmail_default"><span style="font-family:arial,sans-serif;color:rgb(0,0,0)">Still it didn't work, because the layer number is hardcoded into </span><font color="#000000">StartWindowLevel() with this->SetCurrentImageToNthImage(-1); So the mouse only interacts with the last image. I changed it to "0" so that it pick the first image. </font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">It solves my problem. I only want to interact with the first image :).</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">Thank a lot for your inputs.</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">Cheers</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">Jothy</font></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 8:42 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.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">Hi Jothy,<div><br></div><div>Can you try the code change in the following merge request to</div><div>see if it fixes the problem?</div><div><br></div><div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1421" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/1421</a><span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div> - David</div><div><br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 4:05 PM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.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="gmail_default" style="font-family:verdana,sans-serif">Yes, I use vtkInteractorStyleImage.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Cheers</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Jothy</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 10:16 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.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">Hi Jothy,<div><br></div><div>Are you using vtkInteractionStyleImage? I checked the code, and it doesn't</div><div>seem to check the pickability of the image. Specifically, I mean the code in</div><div>SetCurrentImageToNthImage(), which is called by StartWindowLevel().<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div> - David</div></font></span><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 12:44 AM, Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif">Dear All</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">I an image overlaid on another image. I only want mouse interaction such as window level change on only one image. How do I do that?</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">I tried pickable off,on the second image but it doesn't work.</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">Any help is highly appreciated!</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">Regards</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">Jothy</div></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>