<div dir="ltr">Hi Logan,<div><br></div><div>I think the zooming action is going through the slices.</div><div>Ctrl + drag seems to do the trick for me.</div><div><br></div><div>If you want, you can report an issue on the project itself. </div><div><a href="https://github.com/kitware/vtk-js/issues">https://github.com/kitware/vtk-js/issues</a></div><div><br></div><div>Thanks,</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 16, 2017 at 12:11 PM, Logan Langholz <span dir="ltr"><<a href="mailto:llangholz89@gmail.com" target="_blank">llangholz89@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
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>
<br>
const mapper = vtkImageMapper.newInstance();<br>
mapper.setInputData(data);<br>
mapper.setZSlice(50);<br>
<br>
const iStyle = vtkInteractorStyleImage.<wbr>newInstance();<br>
iStyle.setInteractionMode(‘<wbr>IMAGE_SLICING’);<br>
renderWindow.getInteractor().<wbr>setInteractorStyle(iStyle);<br>
<br>
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>
<br>
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>
<br>
Cheers,<br>
<br>
-Logan<br>
______________________________<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><br>
</blockquote></div><br></div>