<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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 : <font
 face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;">but how do I make this call to
&#8220;vtkInformation:::Set()&#8221;</span></font> 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>
<blockquote cite="mid:C4E0F3A2.1E16%25gbivins@objectreservoir.com"
 type="cite">
  <title>Re: [vtkusers] &nbsp;TemporalDataSet examples</title>
  <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, "John Biddiscombe" &lt;<a moz-do-not-send="true"
 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, "John Biddiscombe" &lt;<a moz-do-not-send="true"
 href="biddisco@cscs.ch">biddisco@cscs.ch</a>&gt; &lt;<a
 moz-do-not-send="true" 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>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="78">-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
<a class="moz-txt-link-freetext" href="http://www.cscs.ch/">http://www.cscs.ch/</a>
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82</pre>
</body>
</html>