<HTML>
<HEAD>
<TITLE>Re: [Paraview] 4D datasource</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Basically, yes, you will write your data out in time slices. &nbsp;However, you can also advertise time in the reader and VTK/ParaView can request particular time slices.<BR>
<BR>
To do this, add vtkInformationDoubleVectorKey::TIME_STEPS() and vtkInformationDoubleVectorKey::TIME_RANGE() key/value pairs to the output information object during the RequestInformation call. &nbsp;Then, in RequestData, look for vtkInformationDoubleVectorKey::UPDATE_TIME_STEPS() in the output information and use the value to load the requested time slice into the output.<BR>
<BR>
To get ParaView to recognize the time, you also need to add this magical property into the XML for your reader proxy:<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'> &nbsp;&nbsp;&nbsp;&lt;DoubleVectorProperty name=&quot;TimestepValues&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeatable=&quot;1&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;information_only=&quot;1&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;TimeStepsInformationHelper/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/DoubleVectorProperty&gt;<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
This will alert ParaView to read the time steps reported from RequestInformation and set up the animation and related GUI elements.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 7/28/10 6:05 AM, &quot;<a href="owen.arnold@stfc.ac.uk">owen.arnold@stfc.ac.uk</a>&quot; &lt;<a href="owen.arnold@stfc.ac.uk">owen.arnold@stfc.ac.uk</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><FONT COLOR="#595959">Hi,<BR>
&nbsp;<BR>
I have put together various plugin datasources based on vtkStructuredGrid and vtkUnstructuredGrids. I now need to provide some way of visualizing 4D data for my vtkStructuredGrid datasources. Is it possible to provide the fourth dimension along the time axes? Has anyone done this, and does it involve generating new vtkStructuredGrids for each time increment?<BR>
&nbsp;<BR>
Thanks,<BR>
&nbsp;<BR>
Owen<BR>
</FONT><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>