[Paraview-developers] How to read time data in custom reader plugin
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Oct 2 16:10:54 EDT 2014
Michael,
I think you may just need a "TimestepValues" property like follows:
<DoubleVectorProperty information_only="1"
name="TimestepValues"
repeatable="1">
<TimeStepsInformationHelper />
<Documentation>Available timestep values.</Documentation>
</DoubleVectorProperty>
Refer to readers.xml[1] for examples of other readers that do the same.
Utkarsh
[1] https://github.com/Kitware/ParaView/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml
On Thu, Oct 2, 2014 at 11:30 AM, Schlottke, Michael
<M.Schlottke at aia.rwth-aachen.de> wrote:
> Dear Utkarsh,
>
> OK, this seems to work! Is there any way I can make this work (display of time) when I read a single file, i.e. bypassing the vtkFileSeriesReader?
>
> Michael
>
> On 28 Aug 2014, at 17:05 , Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>
>> What you can do is make your internal reader which is used to read a
>> timestep put out a correct value for
>> vtkStreamingDemandDrivenPipeline::TIME_STEPS()/TIME_RANGE() keys in
>> the outInfo in its RequestInformation(). The vtkFileSeriesReader
>> iterates over all files in the series to gather that information is
>> possible ( see vtkFileSeriesReader::RequestInformation).
>>
>> Utkarsh
>>
>> On Thu, Jul 31, 2014 at 5:45 AM, Schlottke, Michael
>> <M.Schlottke at aia.rwth-aachen.de> wrote:
>>> Hi folks,
>>>
>>> How can I make my custom plugin reader be aware of the simulation time,
>>> which is stored in the solution files I want to read? Thanks to the
>>> vtkFileSeriesReader (?) plugin I can already read in a series of files (i.e.
>>> solution_000*) and traverse through them in the correct order. However, in
>>> the “time” field only the time step number is displayed, but not the actual
>>> simulation time. How can I make ParaView use the correct time? I guess it's
>>> something I have to add to the “RequestInformation(..)” method in my reader.
>>> Is anyone there who has already solved this problem for her/himself?
>>>
>>> Thank you very much in advance
>>>
>>> Michael
>>>
>>> P.S.: I’m sure that this must have been asked here before, but I wasn’t able
>>> to find anything in the archives. If I missed something I’d greatly
>>> appreciate a link to the correct thread.
>>>
>>>
>>> --
>>> Michael Schlottke
>>>
>>> SimLab Highly Scalable Fluids & Solids Engineering
>>> Jülich Aachen Research Alliance (JARA-HPC)
>>> RWTH Aachen University
>>> Wüllnerstraße 5a
>>> 52062 Aachen
>>> Germany
>>>
>>> Phone: +49 (241) 80 95188
>>> Fax: +49 (241) 80 92257
>>> Mail: m.schlottke at aia.rwth-aachen.de
>>> Web: http://www.jara.org/jara-hpc
>>>
>>>
>>> _______________________________________________
>>> Paraview-developers mailing list
>>> Paraview-developers at paraview.org
>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>
>
More information about the Paraview-developers
mailing list