[Paraview] Problem with custom time-aware reader

Moreland, Kenneth kmorel at sandia.gov
Tue Sep 8 12:17:35 EDT 2009


The file series reader should already be maintaining that for you.  It should only be calling the foo reader's RequestInformation when the file name changes.

There are some subtleties about when the FileName changes.  For example, after vtkFileSeriesReader::RequestInformation finishes, the last RequestInformation called will be for the last file.  Typically you end up reading the first file first, so on that first call to RequestData vtkFooReader::RequestInformation will be called again for the first file.

-Ken


On 9/8/09 9:47 AM, "Karl König" <kkoenig11 at web.de> wrote:

Thanks for the explanation. So, I guess it shouldn't harm to add some code to prevent re-parsing the same file again in RequestInformation in case this->FileName hasn't changed since the last time RequestData has been called.


   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090908/ee2d10fc/attachment.htm>


More information about the ParaView mailing list