Thanks, I forgot the include.<br><br><br><div class="gmail_quote">2009/12/16 Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</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;">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">This problem sounds totally unrelated to the first problem you reported.<br>
<br>
Do you have </span></font><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;">#include <vtkstd/algorithm></span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"> at the top of your reader? find_if is declared in this header.<br>
<br>
-Ken<div><div></div><div class="h5"><br>
<br>
<br>
On 12/16/09 9:02 AM, "Didier Roissé" <<a href="http://didier.roisse@gmail.com" target="_blank">didier.roisse@gmail.com</a>> wrote:<br>
<br>
</div></div></span></font><div><div></div><div class="h5"><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">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>
2009/12/16 Biddiscombe, John A. <<a href="http://biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>><br>
</span></font><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">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>
</span><font size="2"><span style="font-size: 10pt;"><b>From:</b> <a href="http://paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a> [<a href="mailto:paraview-bounces@paraview.org" target="_blank">mailto:paraview-bounces@paraview.org</a>] <b>On Behalf Of </b>Didier Roissé<br>
<b>Sent:</b> 16 December 2009 13:04<br>
<b>To:</b> <a href="http://paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> [Paraview] time series<br>
</span></font><span style="font-size: 11pt;"><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>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></div></div><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@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><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>
</div>
</blockquote></div><br>