<div dir="ltr">Not really, no. This reader is a bit unusual because it's not really a reader. It reads a simple 2D Geometry from disk, and then uses 2 other files to run a Neural Network simulation on that grid. The number of timesteps isn't known until after the network is run, which requires all files to be loaded from disk.<br>
<br clear="all">----------------------------------------<br>Randall Hand <br>Visualization Scientist<br>ERDC MSRC-ITL<br>
<br><br><div class="gmail_quote">On Mon, Sep 29, 2008 at 12:01 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Having gone through this a few times myself, is there a way in the RequestInformation to get the Time information from the file? On some of my custom files that involved opening the file to do a partial read just to get the time information (and a few other pieces of information) for the pipeline.<br>
<br>
I have some source code that you can look at if you need it.<br>
<br>
Mike Jackson<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
On Sep 29, 2008, at 12:42 PM, Randall Hand wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Seems that was the final issue. I was initializing those variables in RequestData, but RequestInformation is called before then. I wound up simply making RequestInformation call RequestData, and now it works! :)<br>
----------------------------------------<br>
Randall Hand<br>
Visualization Scientist<br>
ERDC MSRC-ITL<br>
<br>
<br>
On Mon, Sep 29, 2008 at 11:20 AM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>> wrote:<br>
Uhhhh... I dunno. It should report all of the time steps. Are you sure<br>
your RequestInformation method is reporting all of the time steps, and not<br>
just 2?<br>
<br>
-Ken<br>
<br>
<br>
On 9/29/08 10:13 AM, "Randall Hand" <<a href="mailto:randall.hand@gmail.com" target="_blank">randall.hand@gmail.com</a>> wrote:<br>
<br>
> Ok, that gets it to display 2 timesteps (0 and 1). How do I get it to display<br>
> all 48 so that the user can flip between them with the spinner up top?<br>
><br>
> It still works with the Animation view if I manually configure it to show 48<br>
> frames between 0 and 47.<br>
> ----------------------------------------<br>
> Randall Hand<br>
> Visualization Scientist<br>
> ERDC MSRC-ITL<br>
><br>
><br>
> On Mon, Sep 29, 2008 at 10:42 AM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>> wrote:<br>
>> Did you add the special TimestepValues property to the reader's server<br>
>> manager XML definition?<br>
>><br>
>> <DoubleVectorProperty name="TimestepValues"<br>
>> repeatable="1"<br>
>> information_only="1"><br>
>> <TimeStepsInformationHelper/><br>
>> <Documentation><br>
>> Available timestep values.<br>
>> </Documentation><br>
>> </DoubleVectorProperty><br>
>><br>
>> -Ken<br>
>><br>
>><br>
>> On 9/29/08 9:38 AM, "Randall Hand" <<a href="mailto:randall.hand@gmail.com" target="_blank">randall.hand@gmail.com</a>> wrote:<br>
>><br>
>>>> I've written a VTK File Reader that supports multiple timesteps (48 in my<br>
>>>> tests). But when I load the data, it shows me no timestep data in the<br>
>>>> properties panel, and the time increment thing at the top toolbar is greyed<br>
>>>> out. However, if I use the Animation tools to animate from timestep0 to 47<br>
>>>> >> in<br>
>>>> 48 steps, it properly animates through time.<br>
>>>><br>
>>>> What am I doing wrong? My RequestInformation (where I think this<br>
>>> information<br>
>>>> comes from) is shown below:<br>
>>>><br>
>>>><br>
>>> //--------------------------------------------------------------------------<br>
>>> --<br>
>>>> int vtkAdhfaNetwork::RequestInformation(<br>
>>>> vtkInformation* reqInfo,<br>
>>>> vtkInformationVector** inVector,<br>
>>>> vtkInformationVector* outVector<br>
>>>> )<br>
>>>> {<br>
>>>> if(!this->Superclass::RequestInformation(reqInfo,inVector,outVector))<br>
>>>> {<br>
>>>> return 0;<br>
>>>> }<br>
>>>><br>
>>>> vtkInformation *info=outVector->GetInformationObject(0);<br>
>>>> double tRange[2];<br>
>>>> tRange[0] = this->Steps[0];<br>
>>>> tRange[1] = this->Steps[this->NumSteps-1];<br>
>>>> info->Set(<br>
>>>> vtkStreamingDemandDrivenPipeline::TIME_RANGE(),<br>
>>>> tRange,<br>
>>>> 2);<br>
>>>> info->Set(<br>
>>>> vtkStreamingDemandDrivenPipeline::TIME_STEPS(),<br>
>>>> this->Steps,<br>
>>>> this->NumSteps);<br>
>>>> return 1;<br>
>>>> }<br>
>>>><br>
>>>> ----------------------------------------<br>
>>>> Randall Hand<br>
>>>> Visualization Scientist<br>
>>>> ERDC MSRC-ITL<br>
>><br>
>><br>
>> **** Kenneth Moreland<br>
>> *** Sandia National Laboratories<br>
>> ***********<br>
>> *** *** *** email: <a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
>> ** *** ** phone: (505) 844-8919<br>
>> *** fax: (505) 845-0833<br>
>><br>
>><br>
>><br>
><br>
<br>
<br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
***********<br>
*** *** *** email: <a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** fax: (505) 845-0833<br>
<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
ParaView mailing list<br>
<a href="mailto:ParaView@paraview.org" target="_blank">ParaView@paraview.org</a><br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote>
<br>
</blockquote></div><br></div>