[Paraview-developers] Using TIME_LABEL_ANNOTATION

Michael Reuter reuterma at ornl.gov
Tue Feb 12 16:45:37 EST 2013


Yes, the TIME_LABEL_ANNOTATION is called via another function, but in 
the RequestInformation function. The plugin code can be found here: 
https://github.com/mantidproject/mantid/blob/6540_time_axis_labeling/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDEWNexusReader/vtkMDEWNexusReader.cxx. 
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.

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.

M


On 02/12/2013 04:05 PM, Sebastien Jourdain wrote:
> Are you sure you are providing the time label at the right time. 
> (information request) ?
> Does your field value is valid at that time of request ?
>
> Don't have much idea of what could be the issue here.
>
> Seb
>
>
> On Tue, Feb 12, 2013 at 3:51 PM, Reuter, Michael A. <reuterma at ornl.gov 
> <mailto:reuterma at ornl.gov>> wrote:
>
>     Yes, my reader is the only source and the label does not update.
>
>     M
>
>     From: Sebastien Jourdain <sebastien.jourdain at kitware.com
>     <mailto:sebastien.jourdain at kitware.com><mailto:sebastien.jourdain at kitware.com
>     <mailto:sebastien.jourdain at kitware.com>>>
>     Date: Tuesday, February 12, 2013 1:34 PM
>     To: Michael Reuter <reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>>>
>     Cc: "paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org>>"
>     <paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org>>>
>     Subject: Re: [Paraview-developers] Using TIME_LABEL_ANNOTATION
>
>     Have you got only your reader in the pipeline browser ?
>     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.
>
>     Seb
>
>
>     On Tue, Feb 12, 2013 at 1:23 PM, Reuter, Michael A.
>     <reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>>> wrote:
>     Hi Seb,
>
>     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.
>
>     Cheers,
>     M
>
>     From: Sebastien Jourdain <sebastien.jourdain at kitware.com
>     <mailto:sebastien.jourdain at kitware.com><mailto:sebastien.jourdain at kitware.com
>     <mailto:sebastien.jourdain at kitware.com>><mailto:sebastien.jourdain at kitware.com
>     <mailto:sebastien.jourdain at kitware.com><mailto:sebastien.jourdain at kitware.com
>     <mailto:sebastien.jourdain at kitware.com>>>>
>     Date: Tuesday, February 12, 2013 11:24 AM
>     To: Michael Reuter <reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>>>>
>     Cc: "paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org>><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org>>>"
>     <paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org>><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org><mailto:paraview-developers at paraview.org
>     <mailto:paraview-developers at paraview.org>>>>
>     Subject: Re: [Paraview-developers] Using TIME_LABEL_ANNOTATION
>
>     This looks like a bug. Unless you have another time source that
>     does not provide the same name for the annotation.
>
>     Seb
>
>     PS: Does it work with the vtkShearedCubeSource.cxx ?
>
>
>     On Tue, Feb 12, 2013 at 10:44 AM, Michael Reuter
>     <reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>>>> wrote:
>     Hi,
>
>     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?
>
>     Thanks,
>     M
>
>     Dr. Michael Reuter
>     Data Analysis and Visualization Group
>     Neutron Data Analysis and Visualization Division
>     Oak Ridge National Laboratory
>
>     Office: 1-865-241-7216 <tel:1-865-241-7216><tel:1-865-241-7216
>     <tel:1-865-241-7216>><tel:1-865-241-7216
>     <tel:1-865-241-7216><tel:1-865-241-7216 <tel:1-865-241-7216>>>
>     Fax: 1-865-574-6080 <tel:1-865-574-6080><tel:1-865-574-6080
>     <tel:1-865-574-6080>><tel:1-865-574-6080
>     <tel:1-865-574-6080><tel:1-865-574-6080 <tel:1-865-574-6080>>>
>     Email: reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov><mailto:reuterma at ornl.gov
>     <mailto:reuterma at ornl.gov>>>
>
>     _______________________________________________
>     Paraview-developers mailing list
>     Paraview-developers at paraview.org
>     <mailto:Paraview-developers at paraview.org><mailto:Paraview-developers at paraview.org
>     <mailto:Paraview-developers at paraview.org>><mailto:Paraview-developers at paraview.org
>     <mailto:Paraview-developers at paraview.org><mailto:Paraview-developers at paraview.org
>     <mailto:Paraview-developers at paraview.org>>>
>     http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
>
>


-- 
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: reuterma at ornl.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130212/e010a1e2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exodus_reader.patch
Type: text/x-patch
Size: 1433 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130212/e010a1e2/attachment.bin>


More information about the Paraview-developers mailing list