<HTML>
<HEAD>
<TITLE>Re: [vtkusers] TemporalDataSet examples</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hey John,<BR>
Sounds like I need to take a step back and rethink my data import. I thought I could just translate my data offline to vtk and then read the VTK files into a vtkTemporalDataset. But from what you are saying, it sounds like this isn’t the intention of the class. If I understand you correctly, I actually need to modify/create a reader class that handles reading in “n” timesteps (similar to Exodus reader) and override the appropriate interfaces to allow the executive to query the reader for the appropriate timestep...Is this what you mean?<BR>
Gerrick<BR>
<BR>
<BR>
On 9/1/08 4:22 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>
In general, it's better to output a dataset, and not a temporal dataset. The reason is because the pipeline handles the execution of the algorithms and tells the algorithm which time it wants, internally a temporal dataset is constructed. You need to set the DATA_TIME_blah keys and you can't (afaik) do this from java. You should write the important code in c+++ and provide wrappers only in java.<BR>
<BR>
If all is working in c++ and you just want to request a particular time, you need to set the UPDATE_TIME in java in order to make the pipeline update. I have not tried to do this and I'm not sure if information keys are wrapped. you wrote : but how do I make this call to “vtkInformation:::Set()” that is a good question, I have not tried it, but you can look at the wrappers ghenerated and see if the interface exists. If not, you'll need to modify the wrapper generation stuff to handle it. Nasty job. Good luck! The easiest solution is to write a small class that does everything in c++ and use JNI to wrap that using your own simple interface.<BR>
<BR>
ttfn<BR>
<BR>
JB<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> Re: [vtkusers] TemporalDataSet examples 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>
<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>
<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>
<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>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> Re: [vtkusers] TemporalDataSet examples <BR>
<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></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
<BR>
</SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>