<HTML>
<HEAD>
<TITLE>Re: [vtkusers] &nbsp;TemporalDataSet examples</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I ran into a snag here. I was able to get my sample code working with the sample Exodus dataset, &#8220;can.ex2&#8221;. I think I understand how to update the pipeline to display the requested timestep appropriately (Thanks Jon!).<BR>
&nbsp;So I&#8217;ve started trying to replace the exodus data with my own data and create a temporal dataset but the temporal pipelines aren&#8217;t executing. I think it&#8217;s because I need to set the time information (DATA_TIME_STEPS, DATA_TIME_RANGE)I&#8217;m programming in Java and I don&#8217;t quite understand how to set information. For example:<BR>
VtkTemporalDataSet td = new vtkTemporalDataSet();<BR>
&nbsp;td.GetInformation().Set( td.DATA_TIME_STEPS(),numSteps,1.0,0.0);//&lt;==I know this isn&#8217;t correct but how do I make this call to &#8220;vtkInformation:::Set()&#8221; <BR>
&nbsp;in Java?<BR>
<BR>
Gerrick<BR>
<BR>
<BR>
On 7/22/08 9:13 AM, &quot;John Biddiscombe&quot; &lt;<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Gerrick <BR>
<BR>
No problem. Glad to be of help.<BR>
<BR>
NB. I just noticed a mistake as I looked through it <BR>
<BR>
&nbsp;&nbsp;inter-&gt;UpdateInformation();<BR>
should be<BR>
&nbsp;&nbsp;algorithm-&gt;UpdateInformation();<BR>
<BR>
since I was using interpolation, the bug had not (yet) manifested itself on me :)<BR>
<BR>
JB<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> Re: [vtkusers] &nbsp;TemporalDataSet examples Hey John, thanks. This is definitely useful for me. <BR>
I&#8217;d since put the Temporal adventures on the back burner for a bit but just started looking at it again this week so your response is right on time!<BR>
:) <BR>
Gerrick<BR>
&nbsp;<BR>
&nbsp;<BR>
On 7/22/08 6:04 AM, &quot;John Biddiscombe&quot; &lt;<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>&gt; &lt;<a href="mailto:biddisco@cscs.ch">mailto:biddisco@cscs.ch</a>&gt; &nbsp;wrote:<BR>
&nbsp;<BR>
&nbsp;&nbsp;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Gerrick <BR>
&nbsp;<BR>
I realise that it is a few weeks since you asked, but I couldn't find an example program that does time looping manually. However, I had to convert some data to vtk format recently and added some time looping with interpolation to my existing converter - you may find the program useful for getting some hints on forcing time etc. The program is a little more complicated than might seem necessary, but it allows for with/without interpolation and so handles temporal/non temporal datasets and checks types accordingly (plus the data is multiblock anyway).<BR>
&nbsp;<BR>
Attached is code. You won't be able to compile it (missing classes plus changed vtkAPI), but have a look at the TIME_keys etc. I hope it helps.<BR>
&nbsp;<BR>
JB<BR>
&nbsp;<BR>
&nbsp;&nbsp;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;Re: [vtkusers] TemporalDataSet examples <BR>
&nbsp;<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
</SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>