Thanks for your answers! John, where on the gui-side do I need to pass that string? Do I need to modify the ParaView sources? Because I only want to write a plugin which should be redistributable to colleagues which have only the ParaView binaries installed. And your suggestion assumes that I only want to export one actor right? What I want is to export all actors in one step.
Lars Am Mittwoch, 17. August 2011 um 15:45 schrieb Biddiscombe, John A.: > It'd probably be easier to add a method to the vtk-exporter class which > accepts a string, and from the gui, pass the string in just before export - > because you can get it the proxy name from the gui end. Make sure the > SetProxyName(char*...) method doesn't call Modified. (ie don't use > SetStringMacro) > > JB > > -----Original Message----- > From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On > Behalf Of Utkarsh Ayachit > Sent: 17 August 2011 15:16 > To: Lars Bilke > Cc: ParaView Mailliste > Subject: Re: [Paraview] Get name of object in Pipeline Browser > > It's not possible, not from a simple exporter plugin.The exporter > lives entirely in the VTK world without any knowledge of proxies. A > unconventional approach would be explicitly make the exporter plugin > link agains the pqCore library, then you can access the > pqApplicationCore and other singletons (like ProxyManager) and get > information about what sources are present and what their names are > (this is acceptable since exporter work entirely on the client-side). > It is still, however, non trivial to determine which actor corresponds > to what source proxy. > > > > On Wed, Aug 17, 2011 at 3:40 AM, Lars Bilke <lars.bi...@ufz.de > (mailto:lars.bi...@ufz.de)> wrote: > > Dear ParaView users, > > is it possible to programmatically get the name of an object in the Pipeline > > Browser? To be more specific I need to get this name from a vtkActor. I am > > writing a exporter plugin > > (see http://www.mail-archive.com/paraview@paraview.org/msg12939.html) and > > want to name my objects in the exported file. > > Thanks for your help, > > Lars. > > > > > > _______________________________________________ > > Powered by www.kitware.com (http://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 (http://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