[Paraview] access to the filter object from the panel object and vice versa

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Sep 23 09:00:32 EDT 2010


You cannot call a function on  the panel from the reader. ParaView is
designed to work in client-server configurations. In that case the
reader object is located on the server process with the panel is
located on the client and there's no way for the reader to call a
method on the client. If there's some information that you want to
pass from the reader to the panel, we have information_only properties
for that. At opportune times, the panel can call
vtkSMProxy::UpdatePropertyInformation() and have the information_only
properties repopulated by fetching server-side values.

To call a method on the reader from the panel, we have properties for
that. You define a property in XML and then update it from the panel
and call vtkSMPRoxy::UpdateVTKObjects() to push the property value.

Utkarsh

On Thu, Sep 23, 2010 at 8:33 AM, Felipe Bordeu
<felipe.bordeu at ec-nantes.fr> wrote:
> Hello,
>
> I am writing a Reader (plugin) with a custom panel.
>
> I will like to know, how can I transfer information (call a member function)
> from the Reader class (vtkMyReader) to my panel class (pqMyReaderPanel) and
> vice versa.
>
> Right now I use the information stored in the gui (not very convenient).
>
> Thanks
>
> --
>
> 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
> Intitut GeM - UMR CNRS 6183
> École Centrale de 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