Thanks to all.<br>I solved my problem.<br>I will send you soon my pluginreader which is based on hdf5 file.<br>But what is the procedure for sending a plugin ?<br><br>Merry christmas,<br>Didier<br><br><div class="gmail_quote">
2009/12/16 Biddiscombe, John A. <span dir="ltr"><<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Didier,<br>
<br>
The find_if thing is really becuase in older paraview versions when the UPDATE_TIME_STEP was sent, it was sometimes rounded to float/double and slightly different from the declared value of time that the reader (for example) had really generated. All it does is find the closest time value to the ones you should have (actually, not closest, but one equal to or larger) - you don't rellay need it - at some point I'll update the tutorial. Leaving it in won't hurt and will at least ensure you get something meaningful.<br>
<br>
JB<br>
<br>
<br>
________________________________________<br>
From: <a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> [<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a>] On Behalf Of Didier Roissé [<a href="mailto:didier.roisse@gmail.com">didier.roisse@gmail.com</a>]<br>
Sent: 16 December 2009 17:31<br>
To: Moreland, Kenneth<br>
Cc: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Subject: Re: [Paraview] time series<br>
<div class="im"><br>
Thanks, I forgot the include.<br>
<br>
<br>
</div>2009/12/16 Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a><mailto:<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>>><br>
<div class="im">This problem sounds totally unrelated to the first problem you reported.<br>
<br>
Do you have #include <vtkstd/algorithm> at the top of your reader? find_if is declared in this header.<br>
<br>
-Ken<br>
<br>
<br>
<br>
</div><div class="im">On 12/16/09 9:02 AM, "Didier Roissé" <<a href="mailto:didier.roisse@gmail.com">didier.roisse@gmail.com</a><<a href="http://didier.roisse" target="_blank">http://didier.roisse</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>>> wrote:<br>
<br>
Thanks John.<br>
<br>
I try , but I have problem with this:<br>
<br>
this->ActualTimeStep = vtkstd::find_if(<br>
this->TimeStepValues.begin(), this->TimeStepValues.end(),<br>
vtkstd::bind2nd( WithinTolerance( ), requestedTimeValue ))<br>
- this->TimeStepValues.begin();<br>
<br>
<br>
I have always this following build error :<br>
error : 'find_if' is not a member of std.<br>
<br>
I don't understand what I'm doing wrong.<br>
<br>
<br>
<br>
</div>2009/12/16 Biddiscombe, John A. <<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a><<a href="http://biddisco" target="_blank">http://biddisco</a>@<a href="http://cscs.ch" target="_blank">cscs.ch</a>>><br>
<div class="im">Have a look at the time presentation on the paraview wiki under IEEE 2008 tutorial. you need XML + RequestInformation and then it should work<br>
<br>
JB<br>
<br>
<br>
</div>From: <a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a><<a href="http://paraview-bounces" target="_blank">http://paraview-bounces</a>@<a href="http://paraview.org" target="_blank">paraview.org</a>> [mailto:<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a>] On Behalf Of Didier Roissé<br>
<div class="im">Sent: 16 December 2009 13:04<br>
</div>To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><<a href="http://paraview" target="_blank">http://paraview</a>@<a href="http://paraview.org" target="_blank">paraview.org</a>><br>
<div><div></div><div class="h5">Subject: [Paraview] time series<br>
<br>
<br>
Hello,<br>
I write a plugin reader. And this reader reads data which is time dependent.<br>
So in RequestInformation I set the different values for steps and the min and max value of time like this :<br>
<br>
for(int i=0;i<nbtimesteps;i++)<br>
outInfo->Append(vtkStreamingDemandDrivenPipeline::TIME_STEPS(),timeStep[i]);<br>
<br>
timeRange[0]=time_min;<br>
timeRange[1]=time_max;<br>
outInfo->Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(), timeRange, 2);<br>
<br>
nbtimsteps is the number of steps.<br>
and timeSteps[i] is the value of the time at the step i.<br>
<br>
<br>
<br>
In RequestData I write the following line to see the value of UPDATE_TIME_STEPS.<br>
if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS()))<br>
{<br>
double step = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS())[0];<br>
int nSteps =<br>
outInfo->Length(vtkStreamingDemandDrivenPipeline::TIME_STEPS());<br>
double* steps =<br>
outInfo->Get(vtkStreamingDemandDrivenPipeline::TIME_STEPS());<br>
std::cout << "Step : "<<step<<endl;<br>
for(int i=0;i<nSteps;i++)<br>
{<br>
std::cout << "steps : "<<steps[i]<<endl;<br>
}<br>
}<br>
<br>
when I display outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS())[0] for the first time value,<br>
I expected to have my first value of my timeStep, but I have 0.<br>
And if I click on the next frame button in paraview, the next value is 0.1111111.<br>
<br>
I don't understand what I am doing wrong.<br>
<br>
Thanks,<br>
Didier<br>
<br>
PS : I use paraview 3.7<br>
<br>
<br>
<br>
<br>
<br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
***********<br>
</div></div>*** *** *** email: <a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a><<a href="http://kmorel" target="_blank">http://kmorel</a>@<a href="http://sandia.gov" target="_blank">sandia.gov</a>><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><<a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/%7Ekmorel</a>><br>
<br>
<br>
</blockquote></div><br>