<HTML>
<HEAD>
<TITLE>Re: [Paraview] time series</TITLE>
</HEAD>
<BODY>
<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<BR>
<BR>
<BR>
On 12/16/09 9:02 AM, "Didier Roissé" <<a href="didier.roisse@gmail.com">didier.roisse@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><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="biddisco@cscs.ch">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="paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> [<a href="mailto:paraview-bounces@paraview.org">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="paraview@paraview.org">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><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="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">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>
</BODY>
</HTML>