try this: print reader2.GetClientSideObject().GetClassName()
Is that the class you were expecting? On Thu, Jun 7, 2012 at 6:56 AM, Tuan Ha Tran <[email protected]> wrote: > 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 <[email protected]> > To: Tuan Ha Tran <[email protected]> > Cc: [email protected], [email protected] > 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 >> > _______________________________________________ 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
