<div dir="ltr"><div><div><div>Hi Ruff,<br><br></div>have a look at the documentation for vtkVolume16Reader: it inherits from vtkImageAlgorithm, therefore<br>it only reads and produces vtkImageData . If you need a different kind of image reader for reading<br>
</div>3D images, which is the kind of data used by vtkImagePlaneWidget, try using vtkImageReader2 and<br>its subclasses. vtkImagePlaneWidget will not work with unstructured grid data.<br><br>regards,<br></div>Dean<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 7, 2013 at 9:17 AM, Ruff <span dir="ltr"><<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Im looking at the Examples/GUI/ImagePlaneWidget and would like to change the<br>
input data to vtkUnstructuredGrid or vtkImageData, instead of whichever<br>
structure SetFilePrefix takes, as the example uses vtkVolume16Reader<br>
Can vtkVolume16Reader read UnstructuredGrid or ImageData somehow, and how<br>
would I change the code so that works, or do I need to use some different<br>
reader (and in that case; which one)?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813.html" target="_blank">http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>