Hi,<br><br>David,<br>I think that ParaView opens a 2D file in a 2D render by default. Just check the &quot;visibility&quot; icon (eye) in the pipeline when your 3D render window is active. It should work. if not, ask the ParaView mailing list ;)<br>
<br>Abdalrahman,<br>I really don&#39;t understand your question : vtkPNGReader is an vtkAlgorithm with no input and a vtkImageData output. You can then plug your reader output to any filter that takes vtkImageData as input ! What do you mean exactly by &quot;how to pass data&quot; ? May your formulation be more precise ?<br>
<br>Regards,<br>Jérôme<br><br><div class="gmail_quote">2009/5/19 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On Tue, May 19, 2009 at 3:09 PM, abdalrahman eweiwi <span dir="ltr">&lt;<a href="mailto:abdalrahman.eweiwi@googlemail.com" target="_blank">abdalrahman.eweiwi@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br clear="all">hello guys <br><br>small question ... how to pass data from vtkPNGreader to a vtkImageData Object ?<br><font color="#888888">-- <br>Regards<br><br>Abdalrahman Eweiwi<br>Msc in Media Informatics<br>RWTH-AACHEN <br>

B-it</font></blockquote></div></div><div><br>You mean something like this?<br>
<br>
    vtkPNGReader* reader = vtkPNGReader::New();<br>
    reader-&gt;SetFileName(&quot;Test.png&quot;);<br>
    reader-&gt;Update();<br>
    <br>
    vtkImageData* imagedata = reader-&gt;GetOutput();<br>
    <br>
    vtkXMLImageDataWriter* writer = vtkXMLImageDataWriter::New();<br>
    writer-&gt;SetInput(imagedata);<br>
    writer-&gt;SetFileName(&quot;Test.vti&quot;);<br>
    writer-&gt;Update();<br><br>What I don&#39;t understand is how to actually load this resulting file in Paraview. If I open it like I normally do vtp files, it opens in a separate window rather than in the normal &quot;model space&quot; where everything else opens. Anyone know how to open it as if it was a slice of a volume data set?<br>

<br clear="all">Thanks,<br><br>David <br></div></div>
<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>
<br></blockquote></div><br>