[Paraview] Problem using FileSeriesReader and multiple output ports

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Dec 7 09:56:05 EST 2011


vtkFileSeriesReader cannot support multiple output ports. Number of
output ports has to be defined in the constructor of a class. Since
the internal reader to use is not set until much later,
vtkFileSeriesReader cannot report but 1 output port in the construtor
and that cannot be changed afterwords.

Maybe you can try supclassing the vtkFileSeriesReader to add support
for that, but I'm not sure how much effort would it be to support
requests from multiple output ports. Alternatively, you may just want
to implemented file-series support in your reader.

Utkarsh

On Tue, Dec 6, 2011 at 7:09 PM, Oliver Behm <oliverbehm at googlemail.com> wrote:
> Hello,
>
> I have implemented reader using multiple (at the moment two) output ports.
> This works fine for single files, both outputs are read as they should be
> and
> display nicely in Paraview.
>
> Now I want to add time series support via vtkFileSeriesReader, but this only
> gives me the output from the first port. I did some tests and while the
> RequestInformation of my own reader is called two times for the first file
> and
> is able to supply information to the second port on the second call,
> RequestData
> is only called once with no object in the second component of the output
> InformationVector.
>
> I did some digging and vtkFileSeriesReader only has one output port
> hardcoded.
> Is this relevant? If not, how would I go about getting my second output port
> filled?
>
> Help with this would be very appreciated.
>
> Kind regards
> Oliver
>
> PS: Paraview version is 3.10.1
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list