[Paraview] Get name of object in Pipeline Browser
Biddiscombe, John A.
biddisco at cscs.ch
Wed Aug 17 09:45:21 EDT 2011
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-bounces at paraview.org [mailto:paraview-bounces at 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.bilke at 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
>
> 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
More information about the ParaView
mailing list