immediate_update is not supported for information only properties, for that would mean the ParaView has to constantly keep on fetching values from the server side as there&#39;s no way to know exactly when the server side ivar would change.<br>
<br>Utkarsh<br><br><div class="gmail_quote">On Sun, Jun 7, 2009 at 1:35 PM, Nehme Bilal <span dir="ltr">&lt;<a href="mailto:nehmebilal@gmail.com">nehmebilal@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I am trying to do a progress bar in a filter. I did the following steps:<br>
1- add an information only property to my xml to pass the progress<br>
status to the client:<br>
<br>
      &lt;IntVectorProperty<br>
        name=&quot;currentIteration&quot;<br>
        command=&quot;GetcurrentIteration&quot;<br>
        number_of_elements=&quot;1&quot;<br>
        information_only=&quot;1&quot;<br>
        default_values=&quot;0&quot;<br>
        immediate_update=&quot;1&quot;&gt;<br>
        &lt;SimpleIntInformationHelper/&gt;<br>
      &lt;/IntVectorProperty&gt;<br>
<br>
2 - connect this property to a slot in the client to update the<br>
progress bar value:<br>
<br>
        this-&gt;currentIteration = vtkSMIntVectorProperty::SafeDownCast(<br>
                this-&gt;proxy()-&gt;GetProperty(&quot;currentIteration&quot;));<br>
        this-&gt;QVTKConnect = vtkSmartPointer&lt;vtkEventQtSlotConnect&gt;::New();<br>
        this-&gt;QVTKConnect-&gt;Connect(currentIteration, vtkCommand::ModifiedEvent,<br>
                this, SLOT(updateProgressBar()),0,0, Qt::DirectConnection);<br>
<br>
3- I update the value of the progress bar in the Slot:<br>
void pqMyFilter::updateProgressBar()<br>
{<br>
        this-&gt;progressBar-&gt;setValue(this-&gt;currentIteration-&gt;GetElement(0));<br>
        QCoreApplication::processEvents();<br>
}<br>
<br>
The value of the progress bar is updated only when requestData is<br>
done. Is that mean the immediate_update of an<br>
information only property doesn&#39;t work ?<br>
<br>
Thank you !<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 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>
</blockquote></div><br>