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" <[email protected]> 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: [email protected]
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

_______________________________________________
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
      • R... Moreland, Kenneth
        • ... Karl König
          • ... Sven Buijssen
            • ... Utkarsh Ayachit
          • ... Moreland, Kenneth
            • ... Karl König
              • ... Moreland, Kenneth
      • [... Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP]
        • ... Utkarsh Ayachit
  • Re: [Parav... Karl König
    • Re: [... Moreland, Kenneth

Reply via email to