[Paraview] immediate_update for an information only property
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Sun Jun 7 13:47:54 EDT 2009
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.
Utkarsh
On Sun, Jun 7, 2009 at 1:35 PM, Nehme Bilal <nehmebilal at gmail.com> wrote:
> Hi all,
>
> I am trying to do a progress bar in a filter. I did the following steps:
> 1- add an information only property to my xml to pass the progress
> status to the client:
>
> <IntVectorProperty
> name="currentIteration"
> command="GetcurrentIteration"
> number_of_elements="1"
> information_only="1"
> default_values="0"
> immediate_update="1">
> <SimpleIntInformationHelper/>
> </IntVectorProperty>
>
> 2 - connect this property to a slot in the client to update the
> progress bar value:
>
> this->currentIteration = vtkSMIntVectorProperty::SafeDownCast(
> this->proxy()->GetProperty("currentIteration"));
> this->QVTKConnect = vtkSmartPointer<vtkEventQtSlotConnect>::New();
> this->QVTKConnect->Connect(currentIteration,
> vtkCommand::ModifiedEvent,
> this, SLOT(updateProgressBar()),0,0, Qt::DirectConnection);
>
> 3- I update the value of the progress bar in the Slot:
> void pqMyFilter::updateProgressBar()
> {
> this->progressBar->setValue(this->currentIteration->GetElement(0));
> QCoreApplication::processEvents();
> }
>
> The value of the progress bar is updated only when requestData is
> done. Is that mean the immediate_update of an
> information only property doesn't work ?
>
> Thank you !
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090607/5de735a2/attachment.htm>
More information about the ParaView
mailing list