[Paraview] time aware custom reader

Dominik Szczerba dominik at itis.ethz.ch
Tue Aug 5 10:43:05 EDT 2008


This works, thanks a lot!
-- Dominik

David E DeMarle wrote:
> Add this to the XML for the reader (taken from vtkTimeSourceExample),
> ParaView needs the helper to recognize what the time steps are to
> populate the GUI with.
> 
>       <DoubleVectorProperty
>           name="TimeStepValues"
>           repeatable="1"
>           information_only="1">
>         <TimeStepsInformationHelper/>
>       </DoubleVectorProperty>
> 
> cheers,
> Dave DeMarle
> 
> On Mon, Aug 4, 2008 at 5:18 PM, Dominik Szczerba <dominik at itis.ethz.ch> wrote:
>> In my RequestInformation() I do:
>>
>>
>>
>> outInfo->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(),
>> &TimeStepValues.front(), (vtkTypeUInt32)numTimesteps);
>>
>> outInfo->Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(), timeRange, 2);
>>
>>
>>
>> TimeStepValues and timeRange are sure valid, I display them for a check in
>> RequestData.
>>
>> However, Paraview does not see this info upon file load, the Information tab
>> does not list any time steps. What am I doing wrong?
>>
>> Dominik
>>
>> --
>> Dominik Szczerba, Ph.D.
>> Foundation for Research
>> on Information Technologies in Society
>> http://www.itis.ethz.ch
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
> 

-- 
Dominik Szczerba, Ph.D.
Foundation for Research
on Information Technologies in Society
http://www.itis.ethz.ch


More information about the ParaView mailing list