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'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"><<a href="mailto:nehmebilal@gmail.com">nehmebilal@gmail.com</a>></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>
<IntVectorProperty<br>
name="currentIteration"<br>
command="GetcurrentIteration"<br>
number_of_elements="1"<br>
information_only="1"<br>
default_values="0"<br>
immediate_update="1"><br>
<SimpleIntInformationHelper/><br>
</IntVectorProperty><br>
<br>
2 - connect this property to a slot in the client to update the<br>
progress bar value:<br>
<br>
this->currentIteration = vtkSMIntVectorProperty::SafeDownCast(<br>
this->proxy()->GetProperty("currentIteration"));<br>
this->QVTKConnect = vtkSmartPointer<vtkEventQtSlotConnect>::New();<br>
this->QVTKConnect->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->progressBar->setValue(this->currentIteration->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'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>