[Paraview-developers] How to get active session from a plugin ?
Sebastien Jourdain
sebastien.jourdain at kitware.com
Thu Aug 6 10:32:03 EDT 2015
Try that:
vtkSMProxyManager::GetProxyManager()->GetActiveSession()
On Thu, Aug 6, 2015 at 2:50 AM, houssen <houssen at ipgp.fr> wrote:
> Hello,
>
> In ParaView, from an exporter plugin, how can I get the active session ?
> (= session associated to the plugin in order later on to scan over
> vtkSMProxy)
>
> Following some code samples found in
> /ParaViewCore/ClientServerCore/Rendering, I tried to do :
> vtkProcessModule * pProcMgr = vtkProcessModule::GetProcessModule ();
> vtkSMSession * pSession = ( pProcMgr ) ? vtkSMSession::SafeDownCast (
> pProcMgr -> GetActiveSession () ) : NULL;
> I get pProcMgr != NULL but pSession = NULL
>
> Franck
>
> PS : I run Ubuntu-14.04 and use ParaView-4.3.1 (built from source).
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150806/2023a057/attachment.html>
More information about the Paraview-developers
mailing list