Finally, I got it. I had to use UpdateSelfAndAllInputs( ) from the vtkSMProxy,<br>then set a representation of that proxy to visible (create one if necessary),<br>then call render() on the application core instance and finally set the modified<br>
state of the underlying pqPipelineSource to UNMODIFIED (that switch off the<br>Apply button).<br><br>Well, sorry for that soliloquy. 'Hope it will help someone other than me!<br><br>Jerome<br><br><div class="gmail_quote">
2010/3/21 Jérôme <span dir="ltr"><<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK, let's go further on my investigations : I found that pqObjectInspectorWidget<br>is responsible of emitting the 'accept' signal and implements also the 'onaccept'<br>slot. The latter seems to do what I want! But I didn't find, for now, how to get<br>
an instance of the pqObjectInspectorWidget.<br><br>Work and see...<br>Jerome<br><br><div class="gmail_quote">2010/3/20 Jérôme <span dir="ltr"><<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I dig out this old thread when searching how to Update the pipeline from code. In my <br>
case, I don't want an auto-apply behaviour. But as soon as a special interaction occurs, <br>
I want the whole pipeline to update.<br>
I tried different things I though suitable, but it was not:<br>
- renderAllViews( true ) from a newly object-builder-created pqPipelineSource<br>
- UpdatePipeline from the same proxy<br>
- Render from the underlying vtkRenderWindowInteractor<br>
<br>
I didn't find in the code what the click-apply-button signal actually does.<br>
What I want is to embed in a single clck on a image the following interaction steps:<br>
1) add a PointSource to the server<br>
2) set the position in the image<br>
3) click the Apply button<br>
<br>
The first 2 steps are OK. Still remain the 3rd, which I have to do by hand.<br>
Reminder: I am *very* lazy!<br>
<br>
Thanks for your suggestions<br>
Jerome<br><br><div class="gmail_quote">2009/2/3 Michael Geppert <span dir="ltr"><<a href="mailto:MichaelGeppert@gmx.net" target="_blank">MichaelGeppert@gmx.net</a>></span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi David,<br>
<br>
thanks, I haven't tried the Auto Accept yet, I'm going to try it as soon as possible... It is still a workaround, is there any other possibility?<br>
<br>
Best regards,<br>
Michael<br>
<br>
David E DeMarle schrieb:<div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Does the Auto Accept toggle work for you?<br>
It is under Options->General<br>
<br>
<br>
On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert <<a href="mailto:MichaelGeppert@gmx.net" target="_blank">MichaelGeppert@gmx.net</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br>
<br>
I wrote a toolbar plugin with a copy & paste function for filter pipelines.<br>
My toolbar button just copies the selected part of the pipeline to the<br>
selected source. Now I would like my filter to auto-press the apply button<br>
of every newly-created filter, is this possible somehow?<br>
<br>
Thanks!<br>
<br>
Michael Geppert<br>
_______________________________________________<br>
ParaView mailing list<br>
<a href="mailto:ParaView@paraview.org" target="_blank">ParaView@paraview.org</a><br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
ParaView mailing list<br>
<a href="mailto:ParaView@paraview.org" target="_blank">ParaView@paraview.org</a><br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div></div></div><br>
</blockquote></div><br>