<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Seb,<div class=""><br class=""></div><div class="">Thanks for the response.  When you say the zooming action, are you referencing the ‘scroll event’? Frankly, that would be a preferable way for me to scroll through the slices, and I was actually wondering if there was a way to customize those events to whatever action the user wanted (scroll vs. ctl+drag vs. ctl+shift etc.).  </div><div class=""><br class=""></div><div class="">Anyway, the ctl+drag event still doesn’t seem to work, so I will go ahead and open the issue on GitHub. I’m working on an MBP and tried both 'control+drag' and 'command+drag’; command+drag fired a window/level event while control+drag didn’t do anything.  The issue appears in all browsers as well.  </div><div class=""><br class=""></div><div class="">I’ll open the issue on GitHub, and in the mean time if anyone has any thoughts or ideas I’m all ears! </div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">-Logan</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 16, 2017, at 1:19 PM, Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com" class="">sebastien.jourdain@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Logan,<div class=""><br class=""></div><div class="">I think the zooming action is going through the slices.</div><div class="">Ctrl + drag seems to do the trick for me.</div><div class=""><br class=""></div><div class="">If you want, you can report an issue on the project itself. </div><div class=""><a href="https://github.com/kitware/vtk-js/issues" class="">https://github.com/kitware/vtk-js/issues</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Seb</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jun 16, 2017 at 12:11 PM, Logan Langholz <span dir="ltr" class=""><<a href="mailto:llangholz89@gmail.com" target="_blank" class="">llangholz89@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br class="">
<br class="">
I’ve been playing around with the vtk.js library and am currently stuck when trying to scroll through slices of a volume using the vtkInteractorStyleImage class. Using the examples as a guide and the ‘LIDC2.vti’ example volume, I can get various slices to show up on loading with ‘mapper.setZSclice()’, but am then unable to scroll through.  Here’s that bit of the code:<br class="">
<br class="">
        const mapper = vtkImageMapper.newInstance();<br class="">
        mapper.setInputData(data);<br class="">
        mapper.setZSlice(50);<br class="">
<br class="">
        const iStyle = vtkInteractorStyleImage.<wbr class="">newInstance();<br class="">
        iStyle.setInteractionMode(‘<wbr class="">IMAGE_SLICING’);<br class="">
        renderWindow.getInteractor().<wbr class="">setInteractorStyle(iStyle);<br class="">
<br class="">
Looking at the source code, clicking while holding ‘control’ should allow me to scroll through, but I’m not getting that event.  If I switch the interaction mode to ‘IMAGE3D’ and hold shift, I can get the expected rotation event.<br class="">
<br class="">
I’m not sure if it’s just something simple that I’m overlooking in the setup (which is likely given that I’m still relatively new to this), but I appreciate any help and pointers!<br class="">
<br class="">
Cheers,<br class="">
<br class="">
-Logan<br class="">
______________________________<wbr class="">_________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/<wbr class="">opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank" class="">http://www.vtk.org/Wiki/VTK_<wbr class="">FAQ</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=<wbr class="">vtkusers</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank" class="">http://public.kitware.com/<wbr class="">mailman/listinfo/vtkusers</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>