[Paraview] Time-Varying Input Sources
Moreland, Kenneth
kmorel at sandia.gov
Mon Sep 29 12:20:06 EDT 2008
Uhhhh... I dunno. It should report all of the time steps. Are you sure
your RequestInformation method is reporting all of the time steps, and not
just 2?
-Ken
On 9/29/08 10:13 AM, "Randall Hand" <randall.hand at gmail.com> wrote:
> Ok, that gets it to display 2 timesteps (0 and 1). How do I get it to display
> all 48 so that the user can flip between them with the spinner up top?
>
> It still works with the Animation view if I manually configure it to show 48
> frames between 0 and 47.
> ----------------------------------------
> Randall Hand
> Visualization Scientist
> ERDC MSRC-ITL
>
>
> On Mon, Sep 29, 2008 at 10:42 AM, Moreland, Kenneth <kmorel at sandia.gov> wrote:
>> Did you add the special TimestepValues property to the reader's server
>> manager XML definition?
>>
>> <DoubleVectorProperty name="TimestepValues"
>> repeatable="1"
>> information_only="1">
>> <TimeStepsInformationHelper/>
>> <Documentation>
>> Available timestep values.
>> </Documentation>
>> </DoubleVectorProperty>
>>
>> -Ken
>>
>>
>> On 9/29/08 9:38 AM, "Randall Hand" <randall.hand at gmail.com> wrote:
>>
>>>> I've written a VTK File Reader that supports multiple timesteps (48 in my
>>>> tests). But when I load the data, it shows me no timestep data in the
>>>> properties panel, and the time increment thing at the top toolbar is greyed
>>>> out. However, if I use the Animation tools to animate from timestep0 to 47
>>>> >> in
>>>> 48 steps, it properly animates through time.
>>>>
>>>> What am I doing wrong? My RequestInformation (where I think this
>>> information
>>>> comes from) is shown below:
>>>>
>>>>
>>> //--------------------------------------------------------------------------
>>> --
>>>> int vtkAdhfaNetwork::RequestInformation(
>>>> vtkInformation* reqInfo,
>>>> vtkInformationVector** inVector,
>>>> vtkInformationVector* outVector
>>>> )
>>>> {
>>>> if(!this->Superclass::RequestInformation(reqInfo,inVector,outVector))
>>>> {
>>>> return 0;
>>>> }
>>>>
>>>> vtkInformation *info=outVector->GetInformationObject(0);
>>>> double tRange[2];
>>>> tRange[0] = this->Steps[0];
>>>> tRange[1] = this->Steps[this->NumSteps-1];
>>>> info->Set(
>>>> vtkStreamingDemandDrivenPipeline::TIME_RANGE(),
>>>> tRange,
>>>> 2);
>>>> info->Set(
>>>> vtkStreamingDemandDrivenPipeline::TIME_STEPS(),
>>>> this->Steps,
>>>> this->NumSteps);
>>>> return 1;
>>>> }
>>>>
>>>> ----------------------------------------
>>>> Randall Hand
>>>> Visualization Scientist
>>>> ERDC MSRC-ITL
>>
>>
>> **** Kenneth Moreland
>> *** Sandia National Laboratories
>> ***********
>> *** *** *** email: kmorel at sandia.gov
>> ** *** ** phone: (505) 844-8919
>> *** fax: (505) 845-0833
>>
>>
>>
>
**** Kenneth Moreland
*** Sandia National Laboratories
***********
*** *** *** email: kmorel at sandia.gov
** *** ** phone: (505) 844-8919
*** fax: (505) 845-0833
More information about the ParaView
mailing list