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: [email protected]
** *** ** phone: (505) 844-8919
*** web: http://www.cs.unm.edu/~kmorel
From: "Andreyev, Andrey" <[email protected]<mailto:[email protected]>>
Date: Fri, 3 Jun 2011 16:38:13 +0000
To: Robert Maynard
<[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
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
[[email protected]<mailto:[email protected]>]
Sent: Friday, June 03, 2011 12:27 PM
To: Andreyev, Andrey
Cc: [email protected]<mailto:[email protected]>
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
<[email protected]<mailto:[email protected]>> 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
_______________________________________________
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