Hi<br><br><br>Thanks so much for the reply! My previous post was indeed rather vague, so here are some clarifications:<br><br>1) I would like to read data over the same regular grid from multiple files (at each point in a 3D regular grid I have several physical fields such as temperature, pressure, etc, stored each in a separate file)<br>
<br>2) I am now using vtkImageAppendComponent to construct a multidimensional data object defined over a 3D regular grid:<br>*<br> vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New();<br> reader->SetFileName(fname);<br>
reader->Update();<br> vtkStructuredPointsReader *reader1 = vtkStructuredPointsReader::New();<br> reader1->SetFileName(fname2);<br> reader1->Update();<br> vtkImageAppendComponents *readerBundle = vtkImageAppendComponents::New ();<br>
readerBundle->AddInput (reader->GetOutput ());<br> readerBundle->AddInput (reader1->GetOutput ());<br>*<br>However, I don't know how to access the individual data fields from this object to manipulate them. Any suggestions?<br>
<br>3) This multifield object I want to pass to a class that is subclassed from vtkScalarsToColors that could compute a transfer function for volume rendering based on this data. Is there a way to achieve that via the SetInputPort(myObject->GetOutputPort()) mechanism? <br>
<br>4) If I were to use vtkPointData or vtkCellData, how can I store the outputs of several vtkStructuredPointsReader (which operate on one file only) into a single vtkPointData object?<br><br>5) Does vtkFixedPointVolumeRayCastMapper accept a vtkPointData->GetOutputPort() at its input port?<br>
<br>Thanks again for helping!<br><br>Adrian<br><br><div class="gmail_quote">On Mon, Apr 7, 2008 at 9:34 AM, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank">mathieu.malaterre@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Adrian,<br>
<div><br>
On Thu, Apr 3, 2008 at 10:10 AM, Adrian Albert<br>
<<a href="mailto:a.albert@jacobs-university.de" target="_blank">a.albert@jacobs-university.de</a>> wrote:<br>
> Does anyone know how to read data from multiple files into the same<br>
> vtkImageData object?<br>
<br>
</div>what file format are you talking about ?<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK_FAQ#What_image_file_formats_can_VTK_read_and_write.3F" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ#What_image_file_formats_can_VTK_read_and_write.3F</a><br>
<div><br>
> Does VTK even support multi-dimensional fields defined<br>
> over a 3D domain?<br>
<br>
</div>yes, see the vtkPointData / vtkCellData classes.<br>
<br>
> --<br>
<div>> ---------------------------------------------------<br>
> Adrian Albert<br>
> School of Engineering and Science<br>
> Jacobs University Bremen<br>
> Germany<br>
> Tel.: 00494212003258<br>
</div>> _______________________________________________<br>
> This is the private VTK discussion list.<br>
> Please keep messages on-topic. Check the FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>
><br>
<br>
<br>
<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------<br>Adrian Albert<br>School of Engineering and Science<br>Jacobs University Bremen<br>Germany<br>Tel.: 00494212003258