Actually I take some of that back. You can do it via the gui with the following hack.<div><br></div><div>Use Sources -&gt; &quot;Time Source&quot; with default properties and save it to create a template file. Ascii pvd format or xdmf should work. Edit the cell values in the vtu files to contain what you have in column 2 and the pvd time entries to contain what you have in column 2.</div>

<div><br></div><div>Since we don&#39;t have arbitrary text display yet, use surface selection to pick the cell. Turn on annotation at the bottom of the selection inspector and choose the array that has your values.</div>
<div>
<div><br></div><div>This is still a big hack, but it doesn&#39;t involve coding per se, just file formatting.</div><div><br></div><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>

Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Wed, Jun 1, 2011 at 5:53 PM, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Please keep the discussion on the list so that everyone can contribute to and benefit from the answers.<div><br></div><div>I am not sure what you mean by create a container.</div><div><br></div><div>I do not think you can do what you want purely via using GUI (hopefully someone out there will correct me) so unfortunately you will have to write some code. The easiest way to do that is via the python programmable filter, which lets you write code at run time and obviates the need for compilation.</div>



<div><br></div><div>The first example demonstrates how one might go about writing a &quot;reader&quot; to get some arbitrary data (your text file with time in column 1 and the time dependent Numeric Value in column two) into ParaView.</div>



<div><br></div><div>The second example demonstrates what a you have to do to make your reader understand ParaView&#39;s concept of time. The reader has to announce what time range it has data for and then must respond to any given time request that the pipeline gives it. (<a href="http://www.vtk.org/Wiki/VTK/Time_Support" target="_blank">http://www.vtk.org/Wiki/VTK/Time_Support</a>).  In your case the reader would produce the particular entry from column two whenevery ParaView asks it for the corresponding time in column 1.</div>



<div><br></div><div>Unfortunately there is one more hurdle, which you pointed out and reminded me of in you second email. That is, how do you get the value to show up on the screen in text format?</div><div><br></div><div>



ParaView&#39;s textual annotation support is weak in my opinion, and we plan to improve upon that in future releases. Until them you have to three options:</div><div>1) use a plot filter to show the value in its own view window</div>



<div>2) have your reader produce a vtkPolyData with a single VTK_VOXEL cell at some arbitrary location, then use selection to select the voxel. Then use selection annotation in the selection inspector panel to show the value as text</div>



<div>3) derive a new class from or modify the annotate time filter to show your value of interest instead of the time on the screen</div><div><br></div><div>Of the three I think #2 is quickest but #3 is best, but both require even more coding (3 involves C++ coding).</div>



<div><div class="im"><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-371-3971%20x109" value="+15183713971" target="_blank">518-371-3971 x109</a><br>



<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Wed, Jun 1, 2011 at 3:06 PM, Andre Phillion <span dir="ltr">&lt;<a href="mailto:andre.phillion@ubc.ca" target="_blank">andre.phillion@ubc.ca</a>&gt;</span> wrote:<br>

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





<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Hi David,<br>
<br>
Thank you for these links. But, could you provide a little more information. I do not really understand the code in the links — especially the second link.<br>
I mean, I can input the labels, as a vtkTextSource, and can create a container that will hold each of the text values over the time series. But, how do I actually have these values displayed on to the screen? <br>
Cheers,<div><br>
<br>
André<br>
---------------------------------------<br>
André Phillion, Ph.D, P. Eng<br>
Assistant Professor<br>
<br>
Okanagan School of Engineering<br>
University of British Columbia<br>
<br>
</div><hr align="CENTER" size="3" width="95%"><b>From: </b>David E DeMarle &lt;<a href="http://dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>&gt;<br>
<b>Date: </b>Wed, 1 Jun 2011 11:16:32 -0400<br>
<b>To: </b>Andre Phillion &lt;<a href="http://andre.phillion@ubc.ca" target="_blank">andre.phillion@ubc.ca</a>&gt;<br>
<b>Cc: </b>&lt;<a href="http://paraview@paraview.org" target="_blank">paraview@paraview.org</a>&gt;<br>
<b>Subject: </b>Re: [Paraview] Time Annotation of a single global number (or text)<div><br>
<br>
I would use a python programmable source to read the file and produce the appropriate value (s) when it is asked by the pipeline.<br>
<br>
See <br>
<a href="http://paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#CSV_Reader_.28Source.29" target="_blank">http://paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#CSV_Reader_.28Source.29</a><br>




and<br>
<a href="http://paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29" target="_blank">http://paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29</a><br>




for ideas on how to get started.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&amp;D Engineer<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-371-3971%20x109" value="+15183713971" target="_blank">518-371-3971 x109</a><br>
<br>
<br>
On Tue, May 31, 2011 at 6:41 PM, Andre Phillion &lt;<a href="http://andre.phillion@ubc.ca" target="_blank">andre.phillion@ubc.ca</a>&gt; wrote:<br>
</div></span></font><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><div>Hello,<br>
<br>
I am using paraview to examine models relating to the solidification of metallic alloys. I would like to add a time-dependent parameter similar to AnnotateTime Source that uses as input a text file with, in column 1 the time, and in column 2 the time-dependent Numeric Value.<br>




<br>
Does anyone have ideas as to how to do this?<br>
Thank you<br>
André<br>
---------------------------------------<br>
André Phillion, Ph.D, P. Eng<br>
Assistant Professor<br>
<br>
Okanagan School of Engineering<br>
University of British Columbia<br>
<a href="http://web.ubc.ca/okanagan/engineering/faculty/aphillion.html" target="_blank">http://web.ubc.ca/okanagan/engineering/faculty/aphillion.html</a><br>
<br>
<br>
_______________________________________________<br></div>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt; <br><div>
<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</div></span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
<br>
</span></font>
</div>


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