[vtkusers] read from multiple files

Cally K kalpana0611 at gmail.com
Mon Apr 7 07:01:17 EDT 2008


Hi, I have the same question as Adrian, but my dataset are all in one file,
xyz, temperature, pressure and ..  what reader should I use to display the
points.

On 4/7/08, Adrian Albert <a.albert at jacobs-university.de> wrote:
>
> Hi
>
>
> Thanks so much for the reply! My previous post was indeed rather vague, so
> here are some clarifications:
>
> 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)
>
> 2) I am now using vtkImageAppendComponent to construct a multidimensional
> data object defined over a 3D regular grid:
> *
>   vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New();
>   reader->SetFileName(fname);
>   reader->Update();
>   vtkStructuredPointsReader *reader1 = vtkStructuredPointsReader::New();
>   reader1->SetFileName(fname2);
>   reader1->Update();
>   vtkImageAppendComponents *readerBundle = vtkImageAppendComponents::New
> ();
>   readerBundle->AddInput (reader->GetOutput ());
>   readerBundle->AddInput (reader1->GetOutput ());
> *
> However, I don't know how to access the individual data fields from this
> object to manipulate them. Any suggestions?
>
> 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?
>
> 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?
>
> 5) Does vtkFixedPointVolumeRayCastMapper accept a
> vtkPointData->GetOutputPort() at its input port?
>
> Thanks again for helping!
>
> Adrian
>
> On Mon, Apr 7, 2008 at 9:34 AM, Mathieu Malaterre <
> mathieu.malaterre at gmail.com> wrote:
>
> > Hi Adrian,
> >
> > On Thu, Apr 3, 2008 at 10:10 AM, Adrian Albert
> > <a.albert at jacobs-university.de> wrote:
> > > Does anyone know how to read data from multiple files into the same
> > > vtkImageData object?
> >
> >
> > what file format are you talking about ?
> >
> >
> > http://www.vtk.org/Wiki/VTK_FAQ#What_image_file_formats_can_VTK_read_and_write.3F
> >
> > > Does VTK even support multi-dimensional fields defined
> > > over a 3D domain?
> >
> >
> > yes, see the vtkPointData / vtkCellData classes.
> >
> > > --
> > > ---------------------------------------------------
> > >  Adrian Albert
> > > School of Engineering and Science
> > > Jacobs University Bremen
> > > Germany
> > > Tel.: 00494212003258
> >
> > > _______________________________________________
> > >  This is the private VTK discussion list.
> > >  Please keep messages on-topic. Check the FAQ at:
> > > http://www.vtk.org/Wiki/VTK_FAQ
> > >  Follow this link to subscribe/unsubscribe:
> > >  http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> > >
> >
> >
> >
> > --
> > Mathieu
> >
>
>
>
> --
> ---------------------------------------------------
> Adrian Albert
> School of Engineering and Science
> Jacobs University Bremen
> Germany
> Tel.: 00494212003258
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080407/10f14003/attachment-0001.htm>


More information about the vtkusers mailing list