<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Yes, the TIME_LABEL_ANNOTATION is
      called via another function, but in the RequestInformation
      function. The plugin code can be found here:
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a
href="https://github.com/mantidproject/mantid/blob/6540_time_axis_labeling/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDEWNexusReader/vtkMDEWNexusReader.cxx">https://github.com/mantidproject/mantid/blob/6540_time_axis_labeling/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDEWNexusReader/vtkMDEWNexusReader.cxx</a>.
      Line 154 starts the RequestInformation function and the function
      that calls TIME_LABEL_ANNOTATION is at Line 200. Our reader deals
      with both 3D (no "time") and 4D ("time") datasets. The file I am
      testing on is a known 4D dataset. <br>
      <br>
      Can you try this exercise since you don't have my code set up? I
      modified the vtkExodusIIReader.cxx in my git checkout of ParaView
      to call TIME_LABEL_ANNOTATION in the AdvertiseTimeSteps function
      call. After compiling, I used the can.ex2 file to check to see if
      the time label got passed to the time control widget. For me, it
      did not. However, the information properties panel shows the new
      time label. The patch is attached.<br>
      <br>
      M<br>
      <br>
      <br>
      On 02/12/2013 04:05 PM, Sebastien Jourdain wrote:<br>
    </div>
    <blockquote
cite="mid:CABObKxewAXCwsWbgCo8sGvaGvOQX7n5fRejo-mt5jmJ-RyD6_g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Are you sure you are providing the time label at
        the right time. (information request) ?
        <div style="">Does your field value is valid at that time of
          request ?</div>
        <div style=""><br>
        </div>
        <div style="">Don't have much idea of what could be the issue
          here.</div>
        <div style=""><br>
        </div>
        <div style="">Seb</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Feb 12, 2013 at 3:51 PM,
          Reuter, Michael A. <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:reuterma@ornl.gov"
              target="_blank">reuterma@ornl.gov</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, my
            reader is the only source and the label does not update.<br>
            <div class="im"><br>
              M<br>
              <br>
              From: Sebastien Jourdain &lt;<a moz-do-not-send="true"
                href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&lt;mailto:<a
                moz-do-not-send="true"
                href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&gt;&gt;<br>
            </div>
            Date: Tuesday, February 12, 2013 1:34 PM<br>
            <div class="im">To: Michael Reuter &lt;<a
                moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
                moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&gt;<br>
              Cc: "<a moz-do-not-send="true"
                href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&lt;mailto:<a
                moz-do-not-send="true"
                href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;"
              &lt;<a moz-do-not-send="true"
                href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&lt;mailto:<a
                moz-do-not-send="true"
                href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;&gt;<br>
              Subject: Re: [Paraview-developers] Using
              TIME_LABEL_ANNOTATION<br>
              <br>
            </div>
            <div class="im">Have you got only your reader in the
              pipeline browser ?<br>
              Because if several reader report different time annotation
              then only "Time" will win in the global UI while based on
              the selection the information panel will report the
              current value for the selected filter/source.<br>
              <br>
              Seb<br>
              <br>
              <br>
            </div>
            <div class="im">On Tue, Feb 12, 2013 at 1:23 PM, Reuter,
              Michael A. &lt;<a moz-do-not-send="true"
                href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
                moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&gt;
              wrote:<br>
              Hi Seb,<br>
              <br>
              Yes, the ShearedSource plugin works as expected. My reader
              only has one time source, so I don't think there can be a
              problem with a label mismatch.<br>
              <br>
              Cheers,<br>
              M<br>
              <br>
            </div>
            From: Sebastien Jourdain &lt;<a moz-do-not-send="true"
              href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&gt;&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&gt;&gt;&gt;<br>
            <div class="im">Date: Tuesday, February 12, 2013 11:24 AM<br>
            </div>
            To: Michael Reuter &lt;<a moz-do-not-send="true"
              href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
              moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&lt;mailto:<a
              moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
              moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&gt;&gt;<br>
            Cc: "<a moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;&gt;"
            &lt;<a moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;&gt;&gt;<br>
            <div class="im">Subject: Re: [Paraview-developers] Using
              TIME_LABEL_ANNOTATION<br>
              <br>
              This looks like a bug. Unless you have another time source
              that does not provide the same name for the annotation.<br>
              <br>
              Seb<br>
              <br>
              PS: Does it work with the vtkShearedCubeSource.cxx ?<br>
              <br>
              <br>
            </div>
            <div class="im">On Tue, Feb 12, 2013 at 10:44 AM, Michael
              Reuter &lt;<a moz-do-not-send="true"
                href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
                moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&lt;mailto:<a
                moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
                moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&gt;&gt;
              wrote:<br>
              Hi,<br>
              <br>
              I'm trying to use the
              vtkStreamingDemandDrivenPipeline::TIME_LABEL_ANNOTATION()
              property in my reader plugin via ParaView 3.98.0 using the
              vtkShearedCubeSource.cxx as the example. I'm getting a
              good string to the property and the Information tab in the
              properties panel shows the new label name I provided.
              However, the pqAnimationTimeToolbar widget in the GUI is
              not showing the new label. The example ShearedCube source
              plugin implies that the new label should be shown there. I
              tried to make sure it wasn't my plugin so I added
              vtkStreamingDemandDrivenPipeline::TIME_LABEL_ANNOTATION()
              calls to the vtkExodusIIReader.cxx before the
              vtkStreamingDemandDrivenPipeline::TIME_STEPS() calls.
              Using the can.ex2 file, I see that the information tab has
              the new label I provided but the pqAnimationTimeToolbar
              widget doesn't change. Is this a bug or am I missing an
              extra step that would allow my plugin change the GUI
              widget like the ShearedCube source does?<br>
              <br>
              Thanks,<br>
              M<br>
              <br>
              Dr. Michael Reuter<br>
              Data Analysis and Visualization Group<br>
              Neutron Data Analysis and Visualization Division<br>
              Oak Ridge National Laboratory<br>
              <br>
            </div>
            Office: <a moz-do-not-send="true" href="tel:1-865-241-7216"
              value="+18652417216">1-865-241-7216</a>&lt;tel:<a
              moz-do-not-send="true" href="tel:1-865-241-7216"
              value="+18652417216">1-865-241-7216</a>&gt;&lt;tel:<a
              moz-do-not-send="true" href="tel:1-865-241-7216"
              value="+18652417216">1-865-241-7216</a>&lt;tel:<a
              moz-do-not-send="true" href="tel:1-865-241-7216"
              value="+18652417216">1-865-241-7216</a>&gt;&gt;<br>
            Fax: <a moz-do-not-send="true" href="tel:1-865-574-6080"
              value="+18655746080">1-865-574-6080</a>&lt;tel:<a
              moz-do-not-send="true" href="tel:1-865-574-6080"
              value="+18655746080">1-865-574-6080</a>&gt;&lt;tel:<a
              moz-do-not-send="true" href="tel:1-865-574-6080"
              value="+18655746080">1-865-574-6080</a>&lt;tel:<a
              moz-do-not-send="true" href="tel:1-865-574-6080"
              value="+18655746080">1-865-574-6080</a>&gt;&gt;<br>
            Email: <a moz-do-not-send="true"
              href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
              moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&lt;mailto:<a
              moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&lt;mailto:<a
              moz-do-not-send="true" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>&gt;&gt;<br>
            <br>
            _______________________________________________<br>
            Paraview-developers mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a>&gt;&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a>&lt;mailto:<a
              moz-do-not-send="true"
              href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a>&gt;&gt;<br>
            <a moz-do-not-send="true"
              href="http://public.kitware.com/mailman/listinfo/paraview-developers"
              target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
            <br>
            <br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Michael Reuter
Data Analaysis and Visualization Group
Neutron Data Analysis and Visualization Division
Oak Ridge National Laboratory

Office: 1-865-241-7216
Fax: 1-865-574-6080
Email: <a class="moz-txt-link-abbreviated" href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a></pre>
  </body>
</html>