[vtkusers] TemporalDataSet examples

Gerrick Bivins gbivins at objectreservoir.com
Mon Sep 1 02:19:30 EDT 2008


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!).
 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:
VtkTemporalDataSet td = new vtkTemporalDataSet();
 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()²
 in Java?

Gerrick


On 7/22/08 9:13 AM, "John Biddiscombe" <biddisco at cscs.ch> wrote:

> Gerrick 
> 
> No problem. Glad to be of help.
> 
> NB. I just noticed a mistake as I looked through it
> 
>   inter->UpdateInformation();
> should be
>   algorithm->UpdateInformation();
> 
> since I was using interpolation, the bug had not (yet) manifested itself on me
> :)
> 
> JB
> 
>>  Re: [vtkusers]  TemporalDataSet examples Hey John, thanks. This is
>> definitely useful for me.
>> 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!
>> :) 
>> Gerrick
>>  
>>  
>> On 7/22/08 6:04 AM, "John Biddiscombe" <biddisco at cscs.ch>
>> <mailto:biddisco at cscs.ch>  wrote:
>>  
>>   
>>> Gerrick 
>>>  
>>> 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).
>>>  
>>> 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.
>>>  
>>> JB
>>>  
>>>   
>>>>    Re: [vtkusers] TemporalDataSet examples
>>>>  
>>>  
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080901/49c3f22e/attachment.htm>


More information about the vtkusers mailing list