Re: [Paraview] Press Apply Button from Toolbar
Finally, I got it. I had to use UpdateSelfAndAllInputs( ) from the vtkSMProxy, then set a representation of that proxy to visible (create one if necessary), then call render() on the application core instance and finally set the modified state of the underlying pqPipelineSource to UNMODIFIED (that switch off the Apply button). Well, sorry for that soliloquy. 'Hope it will help someone other than me! Jerome 2010/3/21 Jérôme > OK, let's go further on my investigations : I found that > pqObjectInspectorWidget > is responsible of emitting the 'accept' signal and implements also the > 'onaccept' > slot. The latter seems to do what I want! But I didn't find, for now, how > to get > an instance of the pqObjectInspectorWidget. > > Work and see... > Jerome > > 2010/3/20 Jérôme > > Hi, >> >> I dig out this old thread when searching how to Update the pipeline from >> code. In my >> case, I don't want an auto-apply behaviour. But as soon as a special >> interaction occurs, >> I want the whole pipeline to update. >> I tried different things I though suitable, but it was not: >> - renderAllViews( true ) from a newly object-builder-created >> pqPipelineSource >> - UpdatePipeline from the same proxy >> - Render from the underlying vtkRenderWindowInteractor >> >> I didn't find in the code what the click-apply-button signal actually >> does. >> What I want is to embed in a single clck on a image the following >> interaction steps: >> 1) add a PointSource to the server >> 2) set the position in the image >> 3) click the Apply button >> >> The first 2 steps are OK. Still remain the 3rd, which I have to do by >> hand. >> Reminder: I am *very* lazy! >> >> Thanks for your suggestions >> Jerome >> >> 2009/2/3 Michael Geppert >> >> Hi David, >>> >>> 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? >>> >>> Best regards, >>> Michael >>> >>> David E DeMarle schrieb: >>> >>> Does the Auto Accept toggle work for you? It is under Options->General On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert < michaelgepp...@gmx.net> wrote: > Hi everyone, > > I wrote a toolbar plugin with a copy & paste function for filter > pipelines. > My toolbar button just copies the selected part of the pipeline to the > selected source. Now I would like my filter to auto-press the apply > button > of every newly-created filter, is this possible somehow? > > Thanks! > > Michael Geppert > ___ > ParaView mailing list > ParaView@paraview.org > http://www.paraview.org/mailman/listinfo/paraview > > > >>> >>> ___ >>> ParaView mailing list >>> ParaView@paraview.org >>> http://www.paraview.org/mailman/listinfo/paraview >>> >> >> > ___ 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
Re: [Paraview] Press Apply Button from Toolbar
OK, let's go further on my investigations : I found that pqObjectInspectorWidget is responsible of emitting the 'accept' signal and implements also the 'onaccept' slot. The latter seems to do what I want! But I didn't find, for now, how to get an instance of the pqObjectInspectorWidget. Work and see... Jerome 2010/3/20 Jérôme > Hi, > > I dig out this old thread when searching how to Update the pipeline from > code. In my > case, I don't want an auto-apply behaviour. But as soon as a special > interaction occurs, > I want the whole pipeline to update. > I tried different things I though suitable, but it was not: > - renderAllViews( true ) from a newly object-builder-created > pqPipelineSource > - UpdatePipeline from the same proxy > - Render from the underlying vtkRenderWindowInteractor > > I didn't find in the code what the click-apply-button signal actually does. > What I want is to embed in a single clck on a image the following > interaction steps: > 1) add a PointSource to the server > 2) set the position in the image > 3) click the Apply button > > The first 2 steps are OK. Still remain the 3rd, which I have to do by hand. > Reminder: I am *very* lazy! > > Thanks for your suggestions > Jerome > > 2009/2/3 Michael Geppert > > Hi David, >> >> 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? >> >> Best regards, >> Michael >> >> David E DeMarle schrieb: >> >> Does the Auto Accept toggle work for you? >>> It is under Options->General >>> >>> >>> On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert >>> wrote: >>> >>> Hi everyone, I wrote a toolbar plugin with a copy & paste function for filter pipelines. My toolbar button just copies the selected part of the pipeline to the selected source. Now I would like my filter to auto-press the apply button of every newly-created filter, is this possible somehow? Thanks! Michael Geppert ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview >>> >>> >>> >>> >>> >> >> ___ >> ParaView mailing list >> ParaView@paraview.org >> http://www.paraview.org/mailman/listinfo/paraview >> > > ___ 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
Re: [Paraview] Press Apply Button from Toolbar
Hi, I dig out this old thread when searching how to Update the pipeline from code. In my case, I don't want an auto-apply behaviour. But as soon as a special interaction occurs, I want the whole pipeline to update. I tried different things I though suitable, but it was not: - renderAllViews( true ) from a newly object-builder-created pqPipelineSource - UpdatePipeline from the same proxy - Render from the underlying vtkRenderWindowInteractor I didn't find in the code what the click-apply-button signal actually does. What I want is to embed in a single clck on a image the following interaction steps: 1) add a PointSource to the server 2) set the position in the image 3) click the Apply button The first 2 steps are OK. Still remain the 3rd, which I have to do by hand. Reminder: I am *very* lazy! Thanks for your suggestions Jerome 2009/2/3 Michael Geppert > Hi David, > > 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? > > Best regards, > Michael > > David E DeMarle schrieb: > > Does the Auto Accept toggle work for you? >> It is under Options->General >> >> >> On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert >> wrote: >> >> >>> Hi everyone, >>> >>> I wrote a toolbar plugin with a copy & paste function for filter >>> pipelines. >>> My toolbar button just copies the selected part of the pipeline to the >>> selected source. Now I would like my filter to auto-press the apply >>> button >>> of every newly-created filter, is this possible somehow? >>> >>> Thanks! >>> >>> Michael Geppert >>> ___ >>> ParaView mailing list >>> ParaView@paraview.org >>> http://www.paraview.org/mailman/listinfo/paraview >>> >>> >>> >> >> >> >> >> > > ___ > ParaView mailing list > ParaView@paraview.org > http://www.paraview.org/mailman/listinfo/paraview > ___ 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
Re: [Paraview] Press Apply Button from Toolbar
Hi David, 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? Best regards, Michael David E DeMarle schrieb: Does the Auto Accept toggle work for you? It is under Options->General On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert wrote: Hi everyone, I wrote a toolbar plugin with a copy & paste function for filter pipelines. My toolbar button just copies the selected part of the pipeline to the selected source. Now I would like my filter to auto-press the apply button of every newly-created filter, is this possible somehow? Thanks! Michael Geppert ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Press Apply Button from Toolbar (Michael Geppert)
Hi Michael, I think you need to look on: - pqProxy::setModifiedState(ModifiedState modified); - vtkSMProxy::Modified(); - vtkSMProperty::SetImmediateUpdate(); I did a similar copy/paste application but also you can copy and paste sources and readers on the root. I didn't try to add the auto-apply because some time the users wants to changes a value before applying. I have a question: Is your copy/paste work on clip filter ? I mean is the widget position copying working or the widget always reset it's position ? Nehme Message: 1 Date: Mon, 02 Feb 2009 16:40:55 +0100 From: Michael Geppert Subject: [Paraview] Press Apply Button from Toolbar To: paraview@paraview.org Message-ID: <49871407.3050...@gmx.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hi everyone, I wrote a toolbar plugin with a copy & paste function for filter pipelines. My toolbar button just copies the selected part of the pipeline to the selected source. Now I would like my filter to auto-press the apply button of every newly-created filter, is this possible somehow? Thanks! Michael Geppert -- ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview End of ParaView Digest, Vol 58, Issue 1 *** ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Press Apply Button from Toolbar
Does the Auto Accept toggle work for you? It is under Options->General On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert wrote: > Hi everyone, > > I wrote a toolbar plugin with a copy & paste function for filter pipelines. > My toolbar button just copies the selected part of the pipeline to the > selected source. Now I would like my filter to auto-press the apply button > of every newly-created filter, is this possible somehow? > > Thanks! > > Michael Geppert > ___ > ParaView mailing list > ParaView@paraview.org > http://www.paraview.org/mailman/listinfo/paraview > -- David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Press Apply Button from Toolbar
Hi everyone, I wrote a toolbar plugin with a copy & paste function for filter pipelines. My toolbar button just copies the selected part of the pipeline to the selected source. Now I would like my filter to auto-press the apply button of every newly-created filter, is this possible somehow? Thanks! Michael Geppert ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview