[Paraview-developers] How to force an update of the time information?

anton.piccardo-selg at stfc.ac.uk anton.piccardo-selg at stfc.ac.uk
Fri Feb 27 12:05:09 EST 2015


Hi Utkarsh, 

Thanks a lot for that explanation.  Knowing that the time steps are a union of both sources helped me to resolve our issue. 

Many thanks and best regards, 

Anton
________________________________________
From: Utkarsh Ayachit [utkarsh.ayachit at kitware.com]
Sent: 27 February 2015 12:41
To: Piccardo-Selg, Anton (-,RAL,ISIS)
Cc: ParaView Developers; paraview at paraview.org
Subject: Re: [Paraview-developers] How to force an update of the time information?

ParaVIew has a global "time" and it will request the same time from
all sources in the application when updating. When you create the
first source, ParaView internal clock realizes that there are a set of
timesteps available, say A and will change the global time to the
first timestep in A and also update the animation to iterate through
timesteps in A sequentially. When you add another source with another
set of timesteps, say B, ParaView updates the internal clock to be a
union of timesteps provided by all the sources by both the sources
thus (A U B). The current clock time isn't updated since it's in this
set of timesteps available.

If you're only interested in the second source, try removing the first
source before adding the second, rather than the other way. If you
want to simply set a specific timestep, get access to the animation
scene and then directly change its animation time.

Utkarsh

On Wed, Feb 25, 2015 at 11:17 AM,  <anton.piccardo-selg at stfc.ac.uk> wrote:
> Hi,
>
> I am currently working on a customization of ParaView (PV 3.98.1) which uses its animation capabilities. Hence I need to set TIME_STEPS in the  requestInformation method of my source plugin. It works quite nicely in fact.
>
> An issue occurs, when I create a second instance of the same type of source. The second source has different time information compared to the original source. I would like to use this second time information. But it seems that the time information is not updated when the requestInformation method is called for the new  source. In the requestData method I retrieve the time information via
>
> time =outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
>
> This returns the old time information. How can I enforce an update in ParaView? I believe something similar was discussed in:  http://public.kitware.com/pipermail/paraview/2010-November/019492.html. But unfortunately the answer seems to be cut off.
>
> Any ideas or help is very much appreciated.
>
> Many thanks and best regards,
>
> Anton
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers


More information about the Paraview-developers mailing list