[Paraview] Using vtkFileSeriesReader with vtkSpyPlotReader

Moreland, Kenneth kmorel at sandia.gov
Mon Jun 6 14:03:02 EDT 2011


I've never used the file series reader outside of ParaView proxies, but I'm guessing you need to set the FileNameMethod ivar.

restartedReader->SetFileNameMethod("SetFileName");

might do the trick.

-Ken

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

From: "Andreyev, Andrey" <AAndreyev at hpti.com<mailto:AAndreyev at hpti.com>>
Date: Fri, 3 Jun 2011 16:38:13 +0000
To: Robert Maynard <robert.maynard at kitware.com<mailto:robert.maynard at kitware.com>>
Cc: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: Re: [Paraview] Using vtkFileSeriesReader with vtkSpyPlotReader

Hi Robert,

Thank you for the response. I can read in individual files. But I have a sample data set which has a text file named sample.spct-timeseries. When I give that file to SpyPlotReader, it doesn't recognize and when I ran Paraview through the debugger while opening that file it instantiated a vtkFileSeriesReader. This is now the source of my confustion.

Thank you,
Andrey Andreyev
________________________________
From: Robert Maynard [robert.maynard at kitware.com<mailto:robert.maynard at kitware.com>]
Sent: Friday, June 03, 2011 12:27 PM
To: Andreyev, Andrey
Cc: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: Re: [Paraview] Using vtkFileSeriesReader with vtkSpyPlotReader

Hi,

The SpyPlotReader already handle file series. The file extension just need to be a numeric value ie, spcth-a.0,spcth-a.1,spcth-a.2 while the name of the file start with spct.

On Fri, Jun 3, 2011 at 12:11 PM, Andreyev, Andrey <AAndreyev at hpti.com<mailto:AAndreyev at hpti.com>> wrote:
Hi,

I'm trying to read in a restarted CTH Data set using vtkSpyPlotReader with vtkFileSeriesReader. But I cannot figure out how to transfer the information from the meta file (*.spcth-timeseries) to the spyplot reader.

a section of my code:

vtkFileSeriesReader* restartReader=vtkFileSeriesReader::New();
vtkSpyPlotReader* cthReader=vtkSpyPlotReader::New();
vtkDummyController* controller=vtkDummyController::New();
cthReader->SetGlobalController(controller);

restartReader->UseMetaFileOn();
restartReader->SetMetaFileName(filename.c_str());

restartReader->SetReader(cthReader);

But the spyplot reader doesn't have the information it needs; so it will not let me update the pipeline.

Any suggestions? Thank you in advance.

Andrey Andreyev
Software Engineer

_______________________________________________
Powered by www.kitware.com<http://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




--
Robert Maynard
_______________________________________________ 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110606/bdefbf5c/attachment.htm>


More information about the ParaView mailing list