[Paraview] Function PrintfSelf - Utilisation in ParaView

Tuan Ha Tran tuan-ha.tran at insa-lyon.fr
Thu Jun 7 06:56:28 EDT 2012


Hi Utkarsh,

Thank you for your reply
.
I tried to add a small code into Prinself function to know it's good.
So I add : 
os << extent << " Here is my attribute  : " << this->myAttribute << "\n";

Recompiled, load the plugin into Paraview.
I tried print reader2.GetClientSideObject() (reader 2 is a output type vtkImageData);

There is something, but I din't find any information about "myAttribute"

I wonder if we have to modify the .xml file, for exemple command="PrintSelf" to acces to this function?

Thank you very much again for your help.

Tuan Ha

----- Original Message -----
From: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
To: Tuan Ha Tran <tuan-ha.tran at insa-lyon.fr>
Cc: paraview-developers at paraview.org, paraview at paraview.org
Sent: Thu, 07 Jun 2012 12:36:45 +0200 (CEST)
Subject: Re: [Paraview] Function PrintfSelf - Utilisation in ParaView

If you're not running in client-server mode, you can simply do the
following in the Python shell to call the PrintSelf method:

> print proxy.GetClientSideObject()

On Thu, Jun 7, 2012 at 4:26 AM, Tuan Ha Tran  wrote:
> Hi everybody,
>     PrintSelf is a function that every vtk Class can have to write out
> something.
>     I wonder how can we use that class in ParaView, then Python Shell?
>     Do we have to write the .xml Server Manager file to use PrintSelf. And
> if yes, can anyone tell me how?
>     Thank you very much in advance.
>
> _______________________________________________
> 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120607/53c4c6e7/attachment.htm>


More information about the ParaView mailing list