<div dir="ltr">The reason I asked what you are doing with temporal data was to figure out if you really needed a temporal reader (VTK driven animation? particle tracking? etc.) or if you could manage time in your application and not worry about a temporal reader. vtkFileSeriesReader would work for you but would require porting since it uses ParaView API to work on various types of readers. Porting it to VTK would require hard coding the XML readers. The PVD reader would certainly work and is easier to port. Note that the PVD write does not support time so you&#39;d have to write the pvd file manually.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 8:33 AM, Gerrick Bivins <span dir="ltr">&lt;<a href="mailto:Gerrick.Bivins@halliburton.com" target="_blank">Gerrick.Bivins@halliburton.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Berk,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Basically, I’m trying to visualize time varying data in a VTK application (ie not in Paraview).
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I have pipelines setup to take a source/reader and then update the pipeline executive for a user specified time.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I was hoping to avoid writing a custom reader for this because the application is in Java.  I’ve done this<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">in the past but it I ended up having to maintain two versions of a translator for the same file type, one in pure java for static data (and legacy reasons)<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">and a temporal version which was native and then wrapped using JNI.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It worked but was obviously not optimal. Because my data is in VTK format, this time,I was hoping there were some existing API’s (readers)<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I could leverage to handle the time varying aspect of my data and yesterday this looked very promising.  <u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The approach you mentioned sounds like what I’ve found “googling” but it requires readers defined in ParaView or<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">loading my data into ParaView,  via
<a href="http://www.paraview.org/ParaView3/Doc/Nightly/html/classvtkFileSeriesReader.html#details" target="_blank">
vtkFileSeriesReader</a> for example or the .pvd ,vtkXMLCollectionReader approach.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Are there any plans to pull these type readers into VTK?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">What are your suggestions here?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Gerrick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Berk Geveci [mailto:<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>]
<br>
<b>Sent:</b> Monday, May 13, 2013 7:30 PM<br>
<b>To:</b> Gerrick Bivins<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] multiblock time series file writing<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Gerrick,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The time support that is in the single dataset XML writers was never extended to support multi-block dataset. There are several ways of doing what you want. The simplest would be to write out a time series (1 vtm file per time step) and
 then use a reader that can handle that. Before I get into more details, what are you trying to accomplish? What will you do with the time series?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-berk<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, May 13, 2013 at 5:33 PM, Gerrick Bivins &lt;<a href="mailto:Gerrick.Bivins@halliburton.com" target="_blank">Gerrick.Bivins@halliburton.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<p class="MsoNormal">After seeing a post this morning about “<a href="http://vtk.1045678.n5.nabble.com/Separation-of-lt-Points-gt-and-lt-Cells-gt-datablocks-from-Unstructured-Grid-vtu-files-td5720669.html" target="_blank">Seperation
 of &lt;Points&gt; and &lt;Cells&gt; datablock from UnstructuredGrid (.vtu) files</a>”,<u></u><u></u></p>
<p class="MsoNormal">I thought it might be possible to use this to write out MultiBlock/Composite files temporally . Unfortunately, it looks like the settings<u></u><u></u></p>
<p class="MsoNormal">from the root CompositeDataWriter aren’t passed to the data writers for the leaves. It also seems to ignore putting the<u></u><u></u></p>
<p class="MsoNormal">“TimeValues”  type information in the meta file (root xml file for the multiblock dataset).<u></u><u></u></p>
<p class="MsoNormal">For the leaves, the settings issue causes problems with the writing of those blocks:<u></u><u></u></p>
<p class="MsoNormal">1)Time information is not present<u></u><u></u></p>
<p class="MsoNormal">2) written files are invalid xml as the file begins with a broken offset tag something like:<u></u><u></u></p>
<p class="MsoNormal">   offset=&quot;6468764&quot;0&quot;?&gt;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Issue 2  can be seen by simply attempting to write out an xml multiblock file.<u></u><u></u></p>
<p class="MsoNormal">I worked around it by setting the code writer to Binary mode explicitly.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Are these bugs or known limitations of multiblock format?<u></u><u></u></p>
<p class="MsoNormal">Gerrick<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal">This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the
 intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>