[Paraview] Using vtkFileSeriesReader with vtkSpyPlotReader

Andreyev, Andrey AAndreyev at hpti.com
Fri Jun 3 12:38:13 EDT 2011


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]
Sent: Friday, June 03, 2011 12:27 PM
To: Andreyev, Andrey
Cc: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110603/cd204316/attachment.htm>


More information about the ParaView mailing list