I think the problem maybe more on the ParaView side. Attached is a
patch. Can you verify if that resolves the issue?
Utkarsh
On Mon, Mar 28, 2011 at 5:16 AM, <[email protected]> wrote:
> Hi,
>
>
>
> I have a filter which executes some code in a third-party library, which
> takes a considerable time to run. I therefore use UpdateProgress and
> SetProgress text method calls to inform the users about the progress. This
> works fine the first time I ‘Apply’ my filter, correctly displaying both the
> progress percent and the supplied text. However, if I modify and then apply
> my filter again I do not get either progress or status text updates in the
> Paraview GUI. I’m definitely making the same calls to UpdateProgress and
> SetProgress text, but they are ignored on every execution apart from the
> first one.
>
>
>
> Is there some sort of refresh operation I need to apply in my filter to get
> the Paraview GUI to display the progress?
>
>
>
> Thanks in advance,
>
>
>
> Owen.
>
> --
> Scanned by iCritical.
>
> _______________________________________________
> 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
>
>
diff --git a/Servers/ServerManager/vtkSMViewProxy.cxx b/Servers/ServerManager/vtkSMViewProxy.cxx
index ca52c70..631669b 100644
--- a/Servers/ServerManager/vtkSMViewProxy.cxx
+++ b/Servers/ServerManager/vtkSMViewProxy.cxx
@@ -173,11 +173,13 @@ void vtkSMViewProxy::Update()
{
vtkClientServerStream stream;
vtkProcessModule* pm = vtkProcessModule::GetProcessModule();
+ pm->SendPrepareProgress(this->ConnectionID);
stream << vtkClientServerStream::Invoke
<< this->GetID()
<< "Update"
<< vtkClientServerStream::End;
pm->SendStream(this->ConnectionID, this->Servers, stream);
+ pm->SendCleanupPendingProgress(this->ConnectionID);
}
}
_______________________________________________
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