<HTML>
<HEAD>
<TITLE>Re: [vtkusers] 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, “can.ex2”. I think I understand how to update the pipeline to display the requested timestep appropriately (Thanks Jon!).<BR>
So I’ve started trying to replace the exodus data with my own data and create a temporal dataset but the temporal pipelines aren’t executing. I think it’s because I need to set the time information (DATA_TIME_STEPS, DATA_TIME_RANGE)I’m programming in Java and I don’t quite understand how to set information. For example:<BR>
VtkTemporalDataSet td = new vtkTemporalDataSet();<BR>
td.GetInformation().Set( td.DATA_TIME_STEPS(),numSteps,1.0,0.0);//<==I know this isn’t correct but how do I make this call to “vtkInformation:::Set()” <BR>
in Java?<BR>
<BR>
Gerrick<BR>
<BR>
<BR>
On 7/22/08 9:13 AM, "John Biddiscombe" <<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>> 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>
inter->UpdateInformation();<BR>
should be<BR>
algorithm->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] TemporalDataSet examples Hey John, thanks. This is definitely useful for me. <BR>
I’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>
<BR>
<BR>
On 7/22/08 6:04 AM, "John Biddiscombe" <<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>> <<a href="mailto:biddisco@cscs.ch">mailto:biddisco@cscs.ch</a>> wrote:<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Gerrick <BR>
<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>
<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>
<BR>
JB<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> Re: [vtkusers] TemporalDataSet examples <BR>
<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>