[Paraview] trigger a custom panel function/slot after apply button
Yumin Yuan
yumin.yuan at kitware.com
Wed Dec 5 11:46:30 EST 2012
Hi Felipe,
If you customized panel is derived from pqProxyPanel, you can either
override the accept() method, or do a connection like this:
QObject::connect(this->propertyManager(), SIGNAL(accepted()), this,
SLOT(finish()));
HTH,
Yumin
On Tue, Dec 4, 2012 at 5:18 AM, Felipe Bordeu
<felipe.bordeu at ec-nantes.fr> wrote:
> Hello,
>
> I have custom panel (c++filter), and I want to recover some data from the
> filter AFTER the filter is applied.
> for example, set a position in the custom panel, Apply button, search the
> closest point in the input mesh, and (this is the difficult part), show the
> point position in the panel.
>
> I tried something like this in my panel but it does not work.
>
> QObject::connect(this , SIGNAL(onaccept()), this, SLOT(finish()));
>
> Is there a way to trigger a slot/ function in the panel after the filter has
> finished. ????
>
> Thanks
> Felipe
>
>
>
> --
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> -------------------------------------
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06
> Felipe.Bordeu at ec-nantes.fr
> Institut GeM - UMR CNRS 6183
> École Centrale Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> -------------------------------------
>
> _______________________________________________
> 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
More information about the ParaView
mailing list